OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Functions | |
int | exec (sqlite3 *db, const std::string &sql) |
Preforms sqlite3_prepare_v2, sqlite3_step and sqlite3_finalize. More... | |
bool | tableExists (sqlite3 *db, const std::string &tableName) |
Checks for existance of table. More... | |
void | warn (const std::string &module, const std::string &columnName, ossim_int32 columnIndex, ossim_int32 type) |
Outputs formated warning message. More... | |
void | getTime (std::string &result) |
Gets time in the form of "%Y-%m-%dT%H:%M:%S.000Z". More... | |
int ossim_sqlite::exec | ( | sqlite3 * | db, |
const std::string & | sql | ||
) |
Preforms sqlite3_prepare_v2, sqlite3_step and sqlite3_finalize.
db | |
sql |
Definition at line 22 of file ossimSqliteUtil.cpp.
Referenced by ossimGpkgTileRecord::createTable(), ossimGpkgNsgTileMatrixExtentRecord::insert(), ossimGpkgTileMatrixSetRecord::insert(), ossimGpkgContentsRecord::insert(), ossimGpkgSpatialRefSysRecord::insert(), and ossimGpkgTileMatrixRecord::insert().
void ossim_sqlite::getTime | ( | std::string & | result | ) |
Gets time in the form of "%Y-%m-%dT%H:%M:%S.000Z".
e.g. 2015-02-10T19:32:15.000Z
result | Initialized by this. |
Definition at line 96 of file ossimSqliteUtil.cpp.
Referenced by ossimGpkgContentsRecord::init().
bool ossim_sqlite::tableExists | ( | sqlite3 * | db, |
const std::string & | tableName | ||
) |
Checks for existance of table.
db | An open database. |
tableName | e.g. "gpkg_contents" |
Definition at line 55 of file ossimSqliteUtil.cpp.
References status.
Referenced by ossimGpkgTileRecord::createTable(), ossimGpkgNsgTileMatrixExtentRecord::createTable(), ossimGpkgTileMatrixSetRecord::createTable(), ossimGpkgContentsRecord::createTable(), ossimGpkgSpatialRefSysRecord::createTable(), and ossimGpkgTileMatrixRecord::createTable().
void ossim_sqlite::warn | ( | const std::string & | module, |
const std::string & | columnName, | ||
ossim_int32 | columnIndex, | ||
ossim_int32 | type | ||
) |
Outputs formated warning message.
module | e.g. "ossimGpkgNsgTileMatrixSetRecord::init" |
columnName | e.g. "zoom_level", from sqlite3_column_name(...) |
columnIndex | zero based column index. |
type | Type from sqlite3_column_type(...) |
Definition at line 86 of file ossimSqliteUtil.cpp.
References ossimNotify(), and ossimNotifyLevel_WARN.