sbuild::basic_keyfile_parser< K > Class Template Reference

#include <sbuild-basic-keyfile.h>

Inheritance diagram for sbuild::basic_keyfile_parser< K >:

Inheritance graph
[legend]

List of all members.

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.
virtual void parse_line (std::string const &line)
 Parse a line of input.
virtual void end ()
 Stop processing input.

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.

template<typename K>
class sbuild::basic_keyfile_parser< K >


Member Typedef Documentation

template<typename K>
typedef keyfile_base::error sbuild::basic_keyfile_parser< K >::error

Exception type.

Reimplemented in sbuild::keyfile_parser< K >.


Constructor & Destructor Documentation

template<typename K>
sbuild::basic_keyfile_parser< K >::basic_keyfile_parser (  )  [inline]

The constructor.

template<typename K>
virtual sbuild::basic_keyfile_parser< K >::~basic_keyfile_parser (  )  [inline, virtual]

The destructor.


Member Function Documentation

template<typename K>
virtual void sbuild::basic_keyfile_parser< K >::begin (  )  [inline, virtual]

Start processing input.

Any setup may be done here.

References sbuild::basic_keyfile_parser< K >::line_number.

template<typename K>
virtual void sbuild::basic_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.

Parameters:
line the line to parse.

Reimplemented in sbuild::keyfile_parser< K >.

References sbuild::basic_keyfile_parser< K >::line_number.

template<typename K>
virtual void sbuild::basic_keyfile_parser< K >::end (  )  [inline, virtual]

Stop processing input.

Any cleanup may be done here. For example, any cached group or item may be set here.


Member Data Documentation

template<typename K>
K::group_name_type sbuild::basic_keyfile_parser< K >::group

Group name.

Referenced by sbuild::keyfile_parser< K >::parse_line().

template<typename K>
bool sbuild::basic_keyfile_parser< K >::group_set

Group name is set.

Referenced by sbuild::keyfile_parser< K >::parse_line().

template<typename K>
K::key_type sbuild::basic_keyfile_parser< K >::key

template<typename K>
bool sbuild::basic_keyfile_parser< K >::key_set

Key name is set.

Referenced by sbuild::keyfile_parser< K >::parse_line().

template<typename K>
K::value_type sbuild::basic_keyfile_parser< K >::value

template<typename K>
bool sbuild::basic_keyfile_parser< K >::value_set

Value is set.

Referenced by sbuild::keyfile_parser< K >::parse_line().

template<typename K>
K::comment_type sbuild::basic_keyfile_parser< K >::comment

template<typename K>
bool sbuild::basic_keyfile_parser< K >::comment_set

Comment is set.

Referenced by sbuild::keyfile_parser< K >::parse_line().

template<typename K>
K::size_type sbuild::basic_keyfile_parser< K >::line_number


The documentation for this class was generated from the following file:

Generated on Mon May 5 09:26:35 2008 for sbuild by  doxygen 1.5.5