Agroeye  1.0
Public Member Functions | List of all members
agroeye::handlers::GeometryStatement Class Reference

#include <DatabaseStatements.h>

Inheritance diagram for agroeye::handlers::GeometryStatement:
Collaboration diagram for agroeye::handlers::GeometryStatement:

Public Member Functions

 GeometryStatement ()
 
 GeometryStatement (std::shared_ptr< sqlite3 > ptrSql3, const DbTable &table)
 Creates geometry statement. More...
 
 GeometryStatement (GeometryStatement &&)=default
 
GeometryStatementoperator= (GeometryStatement &&)=default
 
void setGeometry (SpatialiteBlobWkb &&blob)
 Sets the geometry value in the statement Until the process or flush function is not called the geometry is not inserted into database. More...
 
- Public Member Functions inherited from agroeye::handlers::GeneralStatement
void setId (const uint32_t &id)
 Sets id value of inserting row. More...
 
void process ()
 
void flush ()
 

Additional Inherited Members

- Protected Member Functions inherited from agroeye::handlers::GeneralStatement
 GeneralStatement ()
 
 GeneralStatement (std::shared_ptr< sqlite3 > aPtrSql3)
 
 GeneralStatement (GeneralStatement &&)=default
 
GeneralStatementoperator= (GeneralStatement &&)=default
 
void prepare ()
 
- Protected Attributes inherited from agroeye::handlers::GeneralStatement
std::shared_ptr< sqlite3 > ptrSql3 {nullptr}
 
std::unique_ptr< sqlite3_stmt, int(*)(sqlite3_stmt *)> ptrStmt {nullptr, [](sqlite3_stmt* pStmt) {return sqlite3_finalize(pStmt);}}
 
std::string buffer
 
size_t id_position {0}
 

Constructor & Destructor Documentation

§ GeometryStatement() [1/3]

agroeye::handlers::GeometryStatement::GeometryStatement ( )
inline
Here is the call graph for this function:

§ GeometryStatement() [2/3]

agroeye::handlers::GeometryStatement::GeometryStatement ( std::shared_ptr< sqlite3 >  ptrSql3,
const DbTable table 
)

Creates geometry statement.

Constructor creates geoemtry statement. The provided table must contain exactly one geometry column

Parameters
ptrSql3Smart pointer to the sqlite3 database
tableTable containing geometry column and id key
Here is the call graph for this function:

§ GeometryStatement() [3/3]

agroeye::handlers::GeometryStatement::GeometryStatement ( GeometryStatement &&  )
default

Member Function Documentation

§ operator=()

GeometryStatement& agroeye::handlers::GeometryStatement::operator= ( GeometryStatement &&  )
default

§ setGeometry()

void agroeye::handlers::GeometryStatement::setGeometry ( SpatialiteBlobWkb &&  blob)

Sets the geometry value in the statement Until the process or flush function is not called the geometry is not inserted into database.

Parameters
blobThe binary representation of geometry

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