sptk2 logo
SPTK Home Page

sptk::CFieldList Class Reference
[Utility Classes]

The list of CField objects. More...

#include <CFieldList.h>

List of all members.

Public Member Functions

 CFieldList (bool indexed, bool compactXmlMode=true)
 Default constructor.
 ~CFieldList ()
 Destructor.
void clear ()
 Clears the field list.
uint32_t size () const
 Returns the nummber of fields in the list.
void xmlMode (bool compact)
 Defines XML export mode.
CFieldpush_back (const char *fname, bool checkDuplicates)
 Adds a new field int the list.
CFieldpush_back (CField *fld)
 Adds a new field int the list without creating a new copy of the field.
CFieldfieldByName (const char *fname) const
 Finds a field by the field name.
CFieldoperator[] (uint32_t index)
 Field access by field index, non-const version.
const CFieldoperator[] (uint32_t index) const
 Field access by field index, const version.
CFieldoperator[] (const char *fname)
 Field access by field name, non-const version.
const CFieldoperator[] (const char *fname) const
CFieldoperator[] (const std::string &fname)
 Field access by field name, non-const version.
const CFieldoperator[] (const std::string &fname) const
 Field access by field name, const version.
void user_data (void *data)
 Sets user data.
void * user_data () const
 Returns user data.
void rewind ()
 Sets the field stream iterator to the first field.
CFieldnext ()
 Sets the field stream iterator to the next field.
void toXML (CXmlNode &xml) const
 Exports data into XML node.


Detailed Description

The list of CField objects.

Is used in CDataSource. Allows to access data fields by the field name or field index. Provides the streaming output, and export to XML.


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

Mon Mar 5 11:56:04 2012: SPTK 3.5.7