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

Encapsulation of table in database. More...

#include <DatabaseTable.h>

Collaboration diagram for agroeye::handlers::DbTable:

Public Member Functions

 DbTable (const std::string &name)
 Constructor of empty table. More...
 
std::string getName () const
 Gets name of the table. More...
 
size_t columnsCount () const
 Gets number of columns in table. More...
 
void addColumn (DbColumn column)
 Adds new column into table. More...
 
ColumnIteratorConst begin () const
 Gets the iterator to first column. More...
 
ColumnIteratorConst end () const
 Gets the iterator to first column behind last. More...
 
const DbColumngetKeyColumn () const
 Gets the column with Primary Key. More...
 

Detailed Description

Encapsulation of table in database.

Constructor & Destructor Documentation

§ DbTable()

agroeye::handlers::DbTable::DbTable ( const std::string &  name)

Constructor of empty table.

Parameters
nameName of table. Must be unique in database

Member Function Documentation

§ addColumn()

void agroeye::handlers::DbTable::addColumn ( DbColumn  column)

Adds new column into table.

Parameters
columnThe new column
Here is the call graph for this function:
Here is the caller graph for this function:

§ begin()

ColumnIteratorConst agroeye::handlers::DbTable::begin ( ) const

Gets the iterator to first column.

Returns
The column iterator
Here is the caller graph for this function:

§ columnsCount()

size_t agroeye::handlers::DbTable::columnsCount ( ) const

Gets number of columns in table.

Returns
Number of columns

§ end()

ColumnIteratorConst agroeye::handlers::DbTable::end ( ) const

Gets the iterator to first column behind last.

Returns
The column iterator
Here is the caller graph for this function:

§ getKeyColumn()

const DbColumn & agroeye::handlers::DbTable::getKeyColumn ( ) const

Gets the column with Primary Key.

Returns
Primary Key column
Here is the caller graph for this function:

§ getName()

std::string agroeye::handlers::DbTable::getName ( ) const

Gets name of the table.

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

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