OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Friends | List of all members
ossimGpkgDatabaseRecordBase Class Referenceabstract

#include <ossimGpkgDatabaseRecordBase.h>

Inheritance diagram for ossimGpkgDatabaseRecordBase:
ossimReferenced ossimGpkgContentsRecord ossimGpkgNsgTileMatrixExtentRecord ossimGpkgSpatialRefSysRecord ossimGpkgTileMatrixRecord ossimGpkgTileMatrixSetRecord

Public Member Functions

 ossimGpkgDatabaseRecordBase ()
 default constructor More...
 
virtual ~ossimGpkgDatabaseRecordBase ()
 virtual destructor. More...
 
virtual bool init (sqlite3_stmt *pStmt)=0
 Initialize from database. More...
 
virtual void saveState (ossimKeywordlist &kwl, const std::string &prefix) const =0
 Saves the state of object to keyword list. More...
 
virtual std::ostream & print (std::ostream &out) const
 Print method. More...
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (const ossimReferenced &)
 
void ref () const
 increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unref () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unref_nodelete () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
int referenceCount () const
 

Friends

std::ostream & operator<< (std::ostream &out, const ossimGpkgDatabaseRecordBase &obj)
 Convenience operator << function. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Definition at line 24 of file ossimGpkgDatabaseRecordBase.h.

Constructor & Destructor Documentation

◆ ossimGpkgDatabaseRecordBase()

ossimGpkgDatabaseRecordBase::ossimGpkgDatabaseRecordBase ( )

default constructor

Definition at line 17 of file ossimGpkgDatabaseRecordBase.cpp.

18  : ossimReferenced()
19 {
20 }

◆ ~ossimGpkgDatabaseRecordBase()

ossimGpkgDatabaseRecordBase::~ossimGpkgDatabaseRecordBase ( )
virtual

virtual destructor.

Definition at line 22 of file ossimGpkgDatabaseRecordBase.cpp.

23 {
24 }

Member Function Documentation

◆ init()

virtual bool ossimGpkgDatabaseRecordBase::init ( sqlite3_stmt *  pStmt)
pure virtual

Initialize from database.

Pure virtual, derived classes must implement.

Parameters
pStmtSQL statement, i.e. result of sqlite3_prepare_v2(...) call.

Implemented in ossimGpkgSpatialRefSysRecord, ossimGpkgContentsRecord, ossimGpkgNsgTileMatrixExtentRecord, ossimGpkgTileMatrixRecord, and ossimGpkgTileMatrixSetRecord.

Referenced by ossim_gpkg::getGpkgRecord(), ossim_gpkg::getGpkgRecords(), ossim_gpkg::getSrsRecord(), and ossim_gpkg::getTableRows().

◆ print()

std::ostream & ossimGpkgDatabaseRecordBase::print ( std::ostream &  out) const
virtual

Print method.

Parameters
outStream to print to.
Returns
Stream reference.

Definition at line 26 of file ossimGpkgDatabaseRecordBase.cpp.

References saveState().

Referenced by operator<<(), and ossimGpkgTileEntry::printValidate().

27 {
28  ossimKeywordlist kwl;
29  saveState(kwl, std::string(""));
30  out << kwl;
31  return out;
32 }
virtual void saveState(ossimKeywordlist &kwl, const std::string &prefix) const =0
Saves the state of object to keyword list.
Represents serializable keyword/value map.

◆ saveState()

virtual void ossimGpkgDatabaseRecordBase::saveState ( ossimKeywordlist kwl,
const std::string &  prefix 
) const
pure virtual

Saves the state of object to keyword list.

Pure virtual, derived classes must implement.

Parameters
kwlInitialized by this.
prefixe.g. "image0.". Can be empty.

Implemented in ossimGpkgTileMatrixRecord, ossimGpkgSpatialRefSysRecord, ossimGpkgContentsRecord, ossimGpkgTileMatrixSetRecord, and ossimGpkgNsgTileMatrixExtentRecord.

Referenced by print().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const ossimGpkgDatabaseRecordBase obj 
)
friend

Convenience operator << function.

Parameters
outStream to print to.
objObject to print.

Definition at line 34 of file ossimGpkgDatabaseRecordBase.cpp.

36 {
37  return obj.print( out );
38 }
virtual std::ostream & print(std::ostream &out) const
Print method.

The documentation for this class was generated from the following files: