Agroeye  1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Attributes | List of all members
agroeye::handlers::PreparedStatement Class Reference

Class encapulating group of statements. More...

#include <DatabaseStatements.h>

Collaboration diagram for agroeye::handlers::PreparedStatement:

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
 

Detailed Description

Class encapulating group of statements.

Class contains all statements that are executed after every iteration of segmentation algorithm

Constructor & Destructor Documentation

§ PreparedStatement() [1/2]

agroeye::handlers::PreparedStatement::PreparedStatement ( )
inline

§ PreparedStatement() [2/2]

agroeye::handlers::PreparedStatement::PreparedStatement ( GeometryStatement &&  aGeomStmt)
inline

Constructor if there is geoemtry statment.

If there is no geometry statement

Parameters
aGeomStmtGeoemtry statement.
Here is the call graph for this function:

Member Function Documentation

§ addStatStmt()

void agroeye::handlers::PreparedStatement::addStatStmt ( const StatisticsTypes &  type,
StatisticStatement &&  statStmt 
)

Adds statistic statment to the group of statements.

Parameters
statStmtStatistic statement

§ flush()

void agroeye::handlers::PreparedStatement::flush ( )

Flushes all grouped statements

Here is the caller graph for this function:

§ process()

void agroeye::handlers::PreparedStatement::process ( )

Process with set values for all grouped statements

Here is the caller graph for this function:

§ setGeometry()

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

Adds geometry representation of objects.

Parameters
blobThe binary representation of object
Here is the caller graph for this function:

§ setId()

void agroeye::handlers::PreparedStatement::setId ( uint32_t  id)

Sets id for all inserting objects.

Parameters
idThe id value
Here is the caller graph for this function:

§ setStatBandValue()

void agroeye::handlers::PreparedStatement::setStatBandValue ( const StatisticsTypes &  type,
const int &  band,
const double &  value 
)

Sets statistic value to the corresponding band and statistic attribute.

Parameters
typeType of insertin statistic
bandBand with calculated statistic
valueValue to be added
Here is the caller graph for this function:

Member Data Documentation

§ geomStmt

GeometryStatement agroeye::handlers::PreparedStatement::geomStmt
protected

§ statStmts

std::vector<std::pair<StatisticsTypes, StatisticStatement> > agroeye::handlers::PreparedStatement::statStmts
protected

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