sbuild 1.4.23
|
Keyfile parser template. More...
#include <sbuild-keyfile.h>
Public Types | |
typedef keyfile_base::error | error |
Exception type. | |
Public Member Functions | |
virtual void | parse_line (std::string const &line) |
Parse a line of input. |
Keyfile parser template.
virtual void sbuild::keyfile_parser< K >::parse_line | ( | std::string const & | line | ) | [inline, virtual] |
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::basic_keyfile_parser< K >::comment, sbuild::basic_keyfile_parser< K >::comment_set, sbuild::basic_keyfile_parser< K >::group_set, sbuild::keyfile_base::INVALID_GROUP, sbuild::keyfile_base::INVALID_LINE, sbuild::basic_keyfile_parser< K >::key, sbuild::basic_keyfile_parser< K >::key_set, sbuild::basic_keyfile_parser< K >::line_number, sbuild::keyfile_base::NO_GROUP, sbuild::keyfile_base::NO_KEY, sbuild::basic_keyfile_parser< K >::value, and sbuild::basic_keyfile_parser< K >::value_set.