Field Class Reference

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

#include <Field.h>

Inheritance diagram for Field:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Field (cstring name, bool text=false)
 Creates a new field with the specified name and 'textness'.
virtual ~Field ()
 Destructor, a noop.
const std::string & getName () const
 Returns the name of the field.
bool isText () const
 Returns whether this field is a text field.
virtual bool isKey () const
 Returns wether this field is a key.

Protected Attributes

std::string m_name
 The name of this field.
bool m_text
 Whether this field is a text field.


Detailed Description

This class represents a field in a database table.

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

Definition at line 36 of file Field.h.


Constructor & Destructor Documentation

Field::Field ( cstring  name,
bool  text = false 
)

Creates a new field with the specified name and 'textness'.

virtual Field::~Field (  )  [virtual]

Destructor, a noop.


Member Function Documentation

const std::string& Field::getName (  )  const [inline]

Returns the name of the field.

Definition at line 46 of file Field.h.

bool Field::isText (  )  const [inline]

Returns whether this field is a text field.

Definition at line 49 of file Field.h.

virtual bool Field::isKey (  )  const [inline, virtual]

Returns wether this field is a key.

Reimplemented in FieldImpl, and KeyImpl.

Definition at line 52 of file Field.h.


Member Data Documentation

std::string Field::m_name [protected]

The name of this field.

Definition at line 55 of file Field.h.

bool Field::m_text [protected]

Whether this field is a text field.

Definition at line 56 of file Field.h.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo