OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimGpkgContentsRecord.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // File: ossimGpkgContentsRecord.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 gpkg_contents table.
10 //
11 //----------------------------------------------------------------------------
12 // $Id$
13 
14 #ifndef ossimGpkgContentsRecord_HEADER
15 #define ossimonGpkgContentsRecord_HEADER 1
16 
19 
20 class ossimDpt;
21 class ossimMapProjection;
22 struct sqlite3;
23 
25 {
26 public:
27 
30 
31  /* @brief copy constructor */
33 
34  /* @brief assignment operator= */
36 
38  virtual ~ossimGpkgContentsRecord();
39 
44  static const std::string& getTableName();
45 
51  virtual bool init( sqlite3_stmt* pStmt );
52 
62  bool init( const std::string& tableName,
63  ossim_int32 srs_id,
64  const ossimDpt& minPt,
65  const ossimDpt& maxPt );
66 
72  static bool createTable( sqlite3* db );
73 
79  bool insert( sqlite3* db );
80 
86  virtual void saveState( ossimKeywordlist& kwl, const std::string& prefix ) const;
87 
88  std::string m_table_name;
89  std::string m_data_type;
90  std::string m_identifier;
91  std::string m_description;
92  std::string m_last_change;
98 };
99 
100 #endif /* #ifndef ossimGpkgContentsRecord_HEADER */
virtual ~ossimGpkgContentsRecord()
destructor
Represents serializable keyword/value map.
bool insert(sqlite3 *db)
Inserst this record into gpkg_spatial_ref_sys table.
static bool createTable(sqlite3 *db)
Creates table in database.
const ossimGpkgContentsRecord & operator=(const ossimGpkgContentsRecord &copy_this)
double ossim_float64
virtual bool init(sqlite3_stmt *pStmt)
Initialize from database.
virtual void saveState(ossimKeywordlist &kwl, const std::string &prefix) const
Saves the state of object to keyword list.
ossimGpkgContentsRecord()
default constructor
static const std::string & getTableName()
Get the table name "gpkg_contents".
int ossim_int32