#include <xml.h>
Public Member Functions | |
| virtual | ~Callback () |
| Destructor. | |
| virtual bool | database (uint16_t version)=0 |
| Sets the database information. | |
| virtual bool | add_field (char const *name, uint16_t type, size_t size, uint16_t attrs, char const *defval)=0 |
| Adds field information. | |
| virtual bool | count (uint32_t count)=0 |
| Sets the number of records in the database. | |
| virtual bool | begin_record ()=0 |
| Begins a record. | |
| virtual bool | add_value (char const *field, char const *value)=0 |
| Adds a value to the current record. | |
| virtual bool | add_ivalue (char const *field, int32_t value)=0 |
| Same as add_value(), but the value is an integer. | |
| virtual bool | add_uivalue (char const *field, uint32_t value)=0 |
| Same as add_value(), but the value is an unsigned integer. | |
| virtual bool | add_utvalue (char const *field, time_t value)=0 |
| Same as add_value(), but the value is a Unix timestamp. | |
| virtual bool | add_rivalue (char const *field, Record::identifier_type value)=0 |
| Same as add_value(), but the value is a record identifier. | |
| virtual bool | end_record ()=0 |
| Ends a record. | |
|
||||||||||||||||||||||||
|
Adds field information.
|
|
||||||||||||
|
Adds a value to the current record.
|
|
|
Begins a record. All calls to add_value() and other record-related functions until end_record() is called is relative to this record.
|
|
|
Sets the number of records in the database.
|
|
|
Sets the database information.
|
|
|
Ends a record.
|
1.4.6