OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimSqliteUtil.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 // File: ossimSqliteUtil.h
3 //
4 // License: LGPL
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Description: OSSIM SQLite utility class.
9 //
10 //----------------------------------------------------------------------------
11 // $Id
12 
13 #ifndef ossimSqliteUtil_HEADER
14 #define ossimSqliteUtil_HEADER 1
15 
17 #include <string>
18 
19 struct sqlite3;
20 
21 namespace ossim_sqlite
22 {
31  int exec( sqlite3* db, const std::string& sql );
32 
39  bool tableExists( sqlite3* db, const std::string& tableName );
40 
48  void warn( const std::string& module,
49  const std::string& columnName,
50  ossim_int32 columnIndex,
51  ossim_int32 type );
52 
58  void getTime( std::string& result );
59 
60 } // End: namespace ossim_sqlite
61 
62 #endif /* #ifndef ossimSqliteUtil_HEADER */
void warn(const std::string &module, const std::string &columnName, ossim_int32 columnIndex, ossim_int32 type)
Outputs formated warning message.
int exec(sqlite3 *db, const std::string &sql)
Preforms sqlite3_prepare_v2, sqlite3_step and sqlite3_finalize.
bool tableExists(sqlite3 *db, const std::string &tableName)
Checks for existance of table.
void getTime(std::string &result)
Gets time in the form of "%Y-%m-%dT%H:%M:%S.000Z".
int ossim_int32