Table Class Reference

This class represents a table in the database. More...

#include <Table.h>

List of all members.

Public Member Functions

const std::string & tableName () const
 Returns the name of this table.
cstring getName () const
 Returns the name of this table.
virtual
FieldDefVector::const_iterator 
defbegin () const =0
 Returns an iterator to the first element of the FieldDef's of this table.
virtual
FieldDefVector::const_iterator 
defend () const =0
 Return an iterator to the 'end' iterator of the FieldDef's of this table.
virtual size_t defsize () const =0
 Returns the size of the FieldDef's of this table.
virtual std::string firstKey () const =0
 Returns the first key (it's name as an std::string).
virtual
TableMap::const_iterator 
keybegin () const =0
 Returns an iterator to the first Key definition pair.
virtual
TableMap::const_iterator 
keyend () const =0
 Returns the 'end' iterator of the Key definitions.
virtual size_t keysize () const =0
 Returns the size of the Key definitions.
virtual bool hasSingularPrimaryKey () const =0
 Returns wether this table has a singular primary key.

Protected Member Functions

 Table (std::string name)
 Creates a new table with the specified name.
virtual ~Table ()
 Destructor, a noop.

Protected Attributes

std::string m_name
 The name of this table.


Detailed Description

This class represents a table in the database.

Deprecated:
This super class might be removed since it is not used much.

Definition at line 36 of file Table.h.


Constructor & Destructor Documentation

Table::Table ( std::string  name  )  [protected]

Creates a new table with the specified name.

virtual Table::~Table (  )  [protected, virtual]

Destructor, a noop.


Member Function Documentation

const std::string& Table::tableName (  )  const

Returns the name of this table.

Deprecated:
use getName() instead.
See also:
getName

cstring Table::getName (  )  const

Returns the name of this table.

virtual FieldDefVector::const_iterator Table::defbegin (  )  const [pure virtual]

Returns an iterator to the first element of the FieldDef's of this table.

virtual FieldDefVector::const_iterator Table::defend (  )  const [pure virtual]

Return an iterator to the 'end' iterator of the FieldDef's of this table.

virtual size_t Table::defsize (  )  const [pure virtual]

Returns the size of the FieldDef's of this table.

virtual std::string Table::firstKey (  )  const [pure virtual]

Returns the first key (it's name as an std::string).

virtual TableMap::const_iterator Table::keybegin (  )  const [pure virtual]

Returns an iterator to the first Key definition pair.

virtual TableMap::const_iterator Table::keyend (  )  const [pure virtual]

Returns the 'end' iterator of the Key definitions.

virtual size_t Table::keysize (  )  const [pure virtual]

Returns the size of the Key definitions.

virtual bool Table::hasSingularPrimaryKey (  )  const [pure virtual]

Returns wether this table has a singular primary key.


Member Data Documentation

std::string Table::m_name [protected]

The name of this table.

Definition at line 85 of file Table.h.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo