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

Encapsulation of Sqlite3/Spatialite table. More...

#include <DatabaseColumn.h>

Collaboration diagram for agroeye::handlers::DbColumn:

Public Member Functions

 DbColumn ()
 
 DbColumn (const std::string &aName, const ColumnType &aType, bool isPrimary=false)
 Constructor setting parameters of column. More...
 
std::string getName () const
 Get the name of column. More...
 
ColumnType getType () const
 Gets the type of data stored in column. More...
 
bool isPrimaryKey () const
 Checks if column is primary key *. More...
 

Detailed Description

Encapsulation of Sqlite3/Spatialite table.

Constructor & Destructor Documentation

§ DbColumn() [1/2]

agroeye::handlers::DbColumn::DbColumn ( )
inline

§ DbColumn() [2/2]

agroeye::handlers::DbColumn::DbColumn ( const std::string &  aName,
const ColumnType aType,
bool  isPrimary = false 
)
inline

Constructor setting parameters of column.

Constructs empty column with

Parameters
aNameName of the column
aTypeType of stored data
isPrimaryIs the column PK, FALSE by default

Member Function Documentation

§ getName()

std::string agroeye::handlers::DbColumn::getName ( ) const
inline

Get the name of column.

Returns
Name of the column
Here is the caller graph for this function:

§ getType()

ColumnType agroeye::handlers::DbColumn::getType ( ) const
inline

Gets the type of data stored in column.

Returns
Type of data ColumnType

§ isPrimaryKey()

bool agroeye::handlers::DbColumn::isPrimaryKey ( ) const
inline

Checks if column is primary key *.

Returns
if TRUE column is primary key, otherwise FALSE
Here is the caller graph for this function:

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