![]() |
Agroeye
1.0
|
Class encapulating group of statements. More...
#include <DatabaseStatements.h>
Public Member Functions | |
| PreparedStatement () | |
| PreparedStatement (GeometryStatement &&aGeomStmt) | |
| Constructor if there is geoemtry statment. More... | |
| void | addStatStmt (const StatisticsTypes &type, StatisticStatement &&statStmt) |
| Adds statistic statment to the group of statements. More... | |
| void | setId (uint32_t id) |
| Sets id for all inserting objects. More... | |
| void | setGeometry (SpatialiteBlobWkb &&blob) |
| Adds geometry representation of objects. More... | |
| void | setStatBandValue (const StatisticsTypes &type, const int &band, const double &value) |
| Sets statistic value to the corresponding band and statistic attribute. More... | |
| void | process () |
| void | flush () |
Protected Attributes | |
| GeometryStatement | geomStmt |
| std::vector< std::pair< StatisticsTypes, StatisticStatement > > | statStmts |
Class encapulating group of statements.
Class contains all statements that are executed after every iteration of segmentation algorithm
|
inline |
|
inline |
Constructor if there is geoemtry statment.
If there is no geometry statement
| aGeomStmt | Geoemtry statement. |
| void agroeye::handlers::PreparedStatement::addStatStmt | ( | const StatisticsTypes & | type, |
| StatisticStatement && | statStmt | ||
| ) |
Adds statistic statment to the group of statements.
| statStmt | Statistic statement |
| void agroeye::handlers::PreparedStatement::flush | ( | ) |
Flushes all grouped statements
| void agroeye::handlers::PreparedStatement::process | ( | ) |
Process with set values for all grouped statements
| void agroeye::handlers::PreparedStatement::setGeometry | ( | SpatialiteBlobWkb && | blob | ) |
Adds geometry representation of objects.
| blob | The binary representation of object |
| void agroeye::handlers::PreparedStatement::setId | ( | uint32_t | id | ) |
Sets id for all inserting objects.
| id | The id value |
| void agroeye::handlers::PreparedStatement::setStatBandValue | ( | const StatisticsTypes & | type, |
| const int & | band, | ||
| const double & | value | ||
| ) |
Sets statistic value to the corresponding band and statistic attribute.
| type | Type of insertin statistic |
| band | Band with calculated statistic |
| value | Value to be added |
|
protected |
|
protected |
1.8.12