Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

wx::DBI::Record< Type > Class Template Reference

The virtual base class of the two Record containers: HashRecord and ArrayRecord. More...

#include <record.h>

Inheritance diagram for wx::DBI::Record< Type >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~Record ()
long GetLong (Type typKey) const
wxString GetString (Type typKey) const
double GetDouble (Type typKey) const
virtual void GetValue (Type typKey, wxVariant &v, const wxString &sExpectedType) const=0
 Return the field indexed by 'typKey'.

virtual void Dump ()=0

Protected Member Functions

void DumpField (wxVariant &v)

Detailed Description

template<typename Type>
class wx::DBI::Record< Type >

The virtual base class of the two Record containers: HashRecord and ArrayRecord.

Provides keyed access to database records.

Definition at line 48 of file record.h.


Constructor & Destructor Documentation

template<typename Type>
virtual wx::DBI::Record< Type >::~Record  )  [inline, virtual]
 

Definition at line 51 of file record.h.


Member Function Documentation

template<typename Type>
virtual void wx::DBI::Record< Type >::Dump  )  [pure virtual]
 

Implemented in wx::DBI::ArrayRecord, and wx::DBI::HashRecord.

template<typename Type>
void wx::DBI::Record< Type >::DumpField wxVariant &  v  )  [protected]
 

template<typename Type>
double wx::DBI::Record< Type >::GetDouble Type  typKey  )  const
 

template<typename Type>
long wx::DBI::Record< Type >::GetLong Type  typKey  )  const
 

template<typename Type>
wxString wx::DBI::Record< Type >::GetString Type  typKey  )  const
 

template<typename Type>
virtual void wx::DBI::Record< Type >::GetValue Type  typKey,
wxVariant &  v,
const wxString &  sExpectedType
const [pure virtual]
 

Return the field indexed by 'typKey'.

Parameters:
typKey A key to a field. This is an int for ArrayRecord, and a wxString for HashRecord.
v Receives the value.
sExpectedType Indicates the type of field: long, string, etc
Exceptions:
Throws a wx::Exception of there is no value for the given key.
Returns:
void

Implemented in wx::DBI::ArrayRecord, and wx::DBI::HashRecord.


The documentation for this class was generated from the following file:
Generated on Wed Jan 25 08:13:18 2006 for Sherpa wxWidgets Classes by doxygen 1.3.6