OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimGpkgTileRecord.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // File: ossimGpkgTileRecord.h
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 // Description: Container class for GeoPackage tile record.
10 //
11 //----------------------------------------------------------------------------
12 // $Id$
13 
14 #ifndef ossimGpkgTileRecord_HEADER
15 #define ossimonGpkgTileRecord_HEADER 1
16 
18 #include <iosfwd>
19 #include <vector>
20 
21 class ossimIpt;
22 struct sqlite3_stmt;
23 struct sqlite3;
24 
26 {
27 public:
28 
30  {
34  };
35 
38 
39  /* @brief copy constructor */
41 
42  /* @brief assignment operator= */
43  const ossimGpkgTileRecord& operator=
44  (const ossimGpkgTileRecord& obj);
45 
48 
53  bool init( sqlite3_stmt* pStmt );
54 
61  static bool createTable( sqlite3* db, const std::string& tableName );
62 
63  void setCopyTileFlag( bool flag );
64 
73  std::ostream& print(std::ostream& out) const;
74 
81  const ossimGpkgTileRecord& obj);
82 
87  void getTileIndex( ossimIpt& index ) const;
88 
91 
93  std::string getTileMediaType() const;
94 
99  std::vector<ossim_uint8> m_tile_data;
101 };
102 
103 #endif /* #ifndef ossimGpkgTileRecord_HEADER */
static bool createTable(sqlite3 *db, const std::string &tableName)
Creates table in database.
std::vector< ossim_uint8 > m_tile_data
std::string getTileMediaType() const
bool init(sqlite3_stmt *pStmt)
Initialize from database.
friend std::ostream & operator<<(std::ostream &out, const ossimGpkgTileRecord &obj)
Convenience operator << function.
std::ostream & print(std::ostream &out) const
Print method.
void getTileIndex(ossimIpt &index) const
Get tile index.
~ossimGpkgTileRecord()
destructor
ossimGpkgTileType getTileType() const
void setCopyTileFlag(bool flag)
ossimGpkgTileRecord()
default constructor
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
int ossim_int32