This class tells us how to parse the input file. More...
#include <configuration_file.hpp>
Public Types | |
typedef std::pair< char, char > | paired_symbol |
Two symbols making a pair (like () or []). | |
Public Member Functions | |
syntax_description () | |
Default constructor. | |
Public Attributes | |
char | comment |
Symbol used to comment the rest of the line. | |
char | assignment |
Symbol used to assign a value to a field. | |
paired_symbol | section_name |
Pair of symbols around a section name. |
This class tells us how to parse the input file.
Definition at line 43 of file configuration_file.hpp.
typedef std::pair<char, char> claw::configuration_file::syntax_description::paired_symbol |
Two symbols making a pair (like () or []).
Definition at line 47 of file configuration_file.hpp.
claw::configuration_file::syntax_description::syntax_description | ( | ) |
Default constructor.
Definition at line 38 of file configuration_file.cpp.
00039 : comment('#'), assignment('='), section_name('[', ']') 00040 { 00041 00042 } // configuration_file::syntax_description::syntax_description()
Symbol used to assign a value to a field.
Definition at line 56 of file configuration_file.hpp.
Referenced by claw::configuration_file::process_line().
Symbol used to comment the rest of the line.
Definition at line 53 of file configuration_file.hpp.
Referenced by claw::configuration_file::escape_char(), and claw::configuration_file::escape_line().
Pair of symbols around a section name.
Definition at line 59 of file configuration_file.hpp.
Referenced by claw::configuration_file::process_line().