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

#include <DatabaseStatements.h>

Inheritance diagram for agroeye::handlers::StatisticStatement:
Collaboration diagram for agroeye::handlers::StatisticStatement:

Public Member Functions

 StatisticStatement ()
 
 StatisticStatement (std::shared_ptr< sqlite3 > aPtrSql3, const DbTable &table)
 Creates statistic statement. More...
 
 StatisticStatement (StatisticStatement &&)=default
 
StatisticStatementoperator= (StatisticStatement &&)=default
 
void setBandValue (const int &band, const double &value)
 Set value to the appropriate band. 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

§ StatisticStatement() [1/3]

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

§ StatisticStatement() [2/3]

agroeye::handlers::StatisticStatement::StatisticStatement ( std::shared_ptr< sqlite3 >  aPtrSql3,
const DbTable table 
)

Creates statistic statement.

Created statistics statement is according to the table schema.

Parameters
ptrSql3Smart pointer to the sqlite3 database
tableTable with columns to be created
Here is the call graph for this function:

§ StatisticStatement() [3/3]

agroeye::handlers::StatisticStatement::StatisticStatement ( StatisticStatement &&  )
default

Member Function Documentation

§ operator=()

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

§ setBandValue()

void agroeye::handlers::StatisticStatement::setBandValue ( const int &  band,
const double &  value 
)

Set value to the appropriate band.

Parameters
bandRelevant band
valueValue to be added

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