sbuild
1.6.10
|
Keyfile parser template. More...
#include <sbuild-keyfile.h>
Public Types | |
typedef keyfile_base::error | error |
![]() | |
typedef keyfile_base::error | error |
Exception type. | |
Public Member Functions | |
virtual void | parse_line (std::string const &line) |
Parse a line of input. More... | |
![]() | |
basic_keyfile_parser () | |
The constructor. | |
virtual | ~basic_keyfile_parser () |
The destructor. | |
virtual void | begin () |
Start processing input. More... | |
virtual void | end () |
Stop processing input. More... | |
Additional Inherited Members | |
![]() | |
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. | |
Keyfile parser template.
|
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 from sbuild::basic_keyfile_parser< K >.
References sbuild::keyfile_base::INVALID_GROUP, sbuild::keyfile_base::INVALID_LINE, sbuild::keyfile_base::NO_GROUP, sbuild::keyfile_base::NO_KEY, and sbuild::basic_keyfile_parser< K >::parse_line().