Public Member Functions | Protected Member Functions

SimpleDB::StringColumn Class Reference

Class representing string values. More...

#include <Column.h>

Inheritance diagram for SimpleDB::StringColumn:
Inheritance graph
[legend]
Collaboration diagram for SimpleDB::StringColumn:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StringColumn (const int bufferSize)
 Constructor to allocate memory for this column.
 ~StringColumn ()
 Destructor frees allocated memory.
std::ostream & oStream (std::ostream &oStream)
 Function called to write a column value to the output stream.
std::string value () const
 Returns the string value of this object.

Protected Member Functions

virtual void doBind (QueryPimplData &queryPimplData, int columnNumber)

Detailed Description

Class representing string values.

Examples:

complete.cpp.


Constructor & Destructor Documentation

SimpleDB::StringColumn::StringColumn ( const int  bufferSize  ) 

Constructor to allocate memory for this column.

This function will throw an Exception if the memory cannot be allocated.

Parameters:
bufferSize The maximum number of bytes the value will hold.

Member Function Documentation

virtual void SimpleDB::StringColumn::doBind ( QueryPimplData &  queryPimplData,
int  columnNumber 
) [protected, virtual]
See also:
Column::doBind()

Implements SimpleDB::Column.

std::ostream& SimpleDB::StringColumn::oStream ( std::ostream &  oStream  )  [virtual]

Function called to write a column value to the output stream.

This function is implemented by each column type to write the value in a suitable form to the output stream.

Parameters:
oStream Output stream object.
Returns:
Output stream object to which data was written.

Implements SimpleDB::Column.

std::string SimpleDB::StringColumn::value (  )  const

Returns the string value of this object.

Returns:
The string value.

Reimplemented from SimpleDB::Column.

Examples:
complete.cpp.

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

Documentation pages generated by doxygen.
SourceForge.net Logo