sbuild
1.6.10
|
Basic keyfile parser template. More...
#include <sbuild-basic-keyfile.h>
Public Types | |
typedef keyfile_base::error | error |
Exception type. | |
Public Member Functions | |
basic_keyfile_parser () | |
The constructor. | |
virtual | ~basic_keyfile_parser () |
The destructor. | |
virtual void | begin () |
Start processing input. More... | |
virtual void | parse_line (std::string const &line) |
Parse a line of input. More... | |
virtual void | end () |
Stop processing input. More... | |
Public Attributes | |
K::group_name_type | group |
Group name. | |
bool | group_set |
Group name is set. | |
K::key_type | key |
Key name. | |
bool | key_set |
Key name is set. | |
K::value_type | value |
Value. | |
bool | value_set |
Value is set. | |
K::comment_type | comment |
Comment. | |
bool | comment_set |
Comment is set. | |
K::size_type | line_number |
Line number. | |
Basic keyfile parser template.
|
inlinevirtual |
Start processing input.
Any setup may be done here.
Referenced by sbuild::basic_keyfile< K, P >::set_object_list_value(), and sbuild::basic_keyfile< K, P >::set_object_set_value().
|
inlinevirtual |
Stop processing input.
Any cleanup may be done here. For example, any cached group or item may be set here.
Referenced by sbuild::basic_keyfile< K, P >::set_list_value(), sbuild::basic_keyfile< K, P >::set_object_list_value(), and sbuild::basic_keyfile< K, P >::set_object_set_value().
|
inlinevirtual |
Parse a line of input.
This function will be called for every line of input in the source file. The input line, line, is parsed appropriately. Any of the group, key, value, and comment members are set as required. If any of these members are ready for insertion into the keyfile, then the corresponding _set member must be set to true to signal the fact to the caller.
line | the line to parse. |
Reimplemented in sbuild::keyfile_parser< K >.
References sbuild::basic_keyfile_parser< K >::line_number.
Referenced by sbuild::keyfile_parser< K >::parse_line().