![]() |
Agroeye
1.0
|
#include <DatabaseStatements.h>
Public Member Functions | |
| StatisticStatement () | |
| StatisticStatement (std::shared_ptr< sqlite3 > aPtrSql3, const DbTable &table) | |
| Creates statistic statement. More... | |
| StatisticStatement (StatisticStatement &&)=default | |
| StatisticStatement & | operator= (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 | |
| GeneralStatement & | operator= (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} |
|
inline |
| agroeye::handlers::StatisticStatement::StatisticStatement | ( | std::shared_ptr< sqlite3 > | aPtrSql3, |
| const DbTable & | table | ||
| ) |
Creates statistic statement.
Created statistics statement is according to the table schema.
| ptrSql3 | Smart pointer to the sqlite3 database |
| table | Table with columns to be created |
|
default |
|
default |
| void agroeye::handlers::StatisticStatement::setBandValue | ( | const int & | band, |
| const double & | value | ||
| ) |
Set value to the appropriate band.
| band | Relevant band |
| value | Value to be added |
1.8.12