Field Class Reference

List of all members.

Public Member Functions

 Field (const char *name, FieldType ftype)
int AddRecord ()
void SetNumRecords (int iNum)
void SetValue (unsigned int iRecord, const char *string)
void SetValue (unsigned int iRecord, int value)
void SetValue (unsigned int iRecord, double value)
void SetValue (unsigned int iRecord, bool value)
void GetValue (unsigned int iRecord, vtString &string)
void GetValue (unsigned int iRecord, short &value)
void GetValue (unsigned int iRecord, int &value)
void GetValue (unsigned int iRecord, float &value)
void GetValue (unsigned int iRecord, double &value)
void GetValue (unsigned int iRecord, bool &value)
void CopyValue (unsigned int FromRecord, int ToRecord)
void GetValueAsString (unsigned int iRecord, vtString &str)
void SetValueFromString (unsigned int iRecord, const vtString &str)
void SetValueFromString (unsigned int iRecord, const char *str)

Public Attributes

FieldType m_type
int m_width
int m_decimals
vtString m_name
vtArray< bool > m_bool
vtArray< short > m_short
vtArray< int > m_int
vtArray< float > m_float
vtArray< double > m_double
vtStringArray m_string

Detailed Description

This class is used to store values in memory for each record.

Someday, we could use values directly from a database files instead, or even some interface for accessing very large or remote databases.


Generated on Tue Apr 22 10:10:59 2008 for vtdata library by  doxygen 1.4.5