#include <dataformbase.h>
Inherited by DataForm, DataFormItem, and DataFormReported.
Inheritance diagram for DataFormBase:

Public Types | |
| typedef std::list< DataFormField > | FieldList |
Public Member Functions | |
| DataFormBase () | |
| virtual | ~DataFormBase () |
| bool | hasField (const std::string &field) |
| DataFormField | field (const std::string &field) |
| FieldList & | fields () |
| virtual void | setFields (FieldList &fields) |
Protected Attributes | |
| FieldList | m_fields |
You shouldn't need to use this class directly. Use DataForm instead.
Definition at line 33 of file dataformbase.h.
| typedef std::list<DataFormField> FieldList |
A list of JEP-0004 Data Form Fields.
Definition at line 49 of file dataformbase.h.
| DataFormBase | ( | ) |
Creates a new DataFormBase.
Definition at line 20 of file dataformbase.cpp.
| ~DataFormBase | ( | ) | [virtual] |
Virtual destructor.
Definition at line 24 of file dataformbase.cpp.
| DataFormField field | ( | const std::string & | field | ) |
Use this function to fetch a copy of a field of the form. If no such field exists, an empty (invalid) field is returned.
| field | The name of the field (the content of the 'var' attribute). |
Definition at line 40 of file dataformbase.cpp.
| FieldList& fields | ( | ) | [inline] |
Use this function to retrieve the list of fields of a form.
Definition at line 70 of file dataformbase.h.
| bool hasField | ( | const std::string & | field | ) |
Use this function to check whether this form contains a field with the given name.
| field | The name of the field (the content of the 'var' attribute). |
Definition at line 28 of file dataformbase.cpp.
| virtual void setFields | ( | FieldList & | fields | ) | [inline, virtual] |
Use this function to set the fields the form contains.
| fields | The list of fields. |
Definition at line 77 of file dataformbase.h.
1.4.7