|
#include <CFieldList.h>
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. | |
| CField & | push_back (const char *fname, bool checkDuplicates) |
| Adds a new field int the list. | |
| CField & | push_back (CField *fld) |
| Adds a new field int the list without creating a new copy of the field. | |
| CField * | fieldByName (const char *fname) const |
| Finds a field by the field name. | |
| CField & | operator[] (uint32_t index) |
| Field access by field index, non-const version. | |
| const CField & | operator[] (uint32_t index) const |
| Field access by field index, const version. | |
| CField & | operator[] (const char *fname) |
| Field access by field name, non-const version. | |
| const CField & | operator[] (const char *fname) const |
| CField & | operator[] (const std::string &fname) |
| Field access by field name, non-const version. | |
| const CField & | operator[] (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. | |
| CField & | next () |
| Sets the field stream iterator to the next field. | |
| void | toXML (CXmlNode &xml) const |
| Exports data into XML node. | |
Is used in CDataSource. Allows to access data fields by the field name or field index. Provides the streaming output, and export to XML.