MySQLaux 0.6 is free software from Langensoft written by Thomas Langen.

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

MySQLaux::Field Class Reference

A field is the lowest-level data chunk available from a database. More...

#include <Field.h>

Inheritance diagram for MySQLaux::Field

Inheritance graph
List of all members.

Public Methods

virtual ~Field ()
 Destructor. More...

virtual string to_string () const=0
 Get value as string. More...

virtual size_t size () const=0
 Get storage size of value. More...

string const& name () const
 Get type name. More...

Protected Methods

 Field (string const &name, bool const is_null=false)
 Constructor. More...

Protected Attributes

bool const _is_null

Detailed Description

A field is the lowest-level data chunk available from a database.

The Field type must not be used directly, instead use derived classes.

Definition at line 35 of file Field.h.

Constructor & Destructor Documentation

MySQLaux::Field::Field ( string const & name,
bool const is_null = false ) [inline, protected]


name   type name
is_null   flag indicating null field

Definition at line 46 of file Field.h.

00048         : _name (name),
00049           _is_null (is_null)
00050     {

MySQLaux::Field::~Field ( ) [inline, virtual]


Definition at line 57 of file Field.h.

00058     {

Member Function Documentation

string const & MySQLaux::Field::name ( ) const [inline]

Get type name.

Definition at line 74 of file Field.h.

00074                                  { return _name; }

size_t MySQLaux::Field::size ( ) const [pure virtual]

Get storage size of value.

Reimplemented in MySQLaux::TypedField.

string MySQLaux::Field::to_string ( ) const [pure virtual]

Get value as string.

Reimplemented in MySQLaux::TypedField.

Member Data Documentation

bool const MySQLaux::Field::_is_null [protected]

Definition at line 40 of file Field.h.

The documentation for this class was generated from the following file:
Generated at Fri Apr 6 11:20:14 2001 for MySQLaux by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001