#include <quick.h>

Public Member Functions | |
| ConfQ (ConfLogger &logger) | |
| Constructor. | |
| ConfQ (ConfQ const &cq) | |
| Copy constructor. | |
| virtual ConfQ & | operator= (ConfQ const &right) |
| Assignment operator. | |
| virtual | ~ConfQ () |
| Destructor. | |
| virtual bool | setup () |
| Adds directives. | |
| bool | parse (ConfGlobalQ &cgq, bool reload, std::istream &is, std::string const &context) |
| Parses a stream. | |
| bool | parse_file (ConfGlobalQ &cgq, bool reload, std::string const &filename) |
| Parses a file. | |
| bool | parse_string (ConfGlobalQ &cgq, bool reload, std::string const &str, std::string const &context) |
| Parses a string. | |
| Conf & | conf () |
| Returns the configuration parser object. | |
| bool | is_setup () const |
| Has the setup() function been called? | |
Protected Attributes | |
| Conf | m_conf |
| Add directives to this object. | |
The setup() function must be called prior to using the parse(), parse_file() and parse_string() functions.
| conf::ConfQ::ConfQ | ( | ConfLogger & | logger | ) | [inline] |
Constructs the ConfQ object.
| [in] | logger | Logger used by the parser to report errors and debug messages (see Conf::Conf()). |
| virtual bool conf::ConfQ::setup | ( | ) | [inline, virtual] |
Override this function to add directives to the parser.
This function is called once per instance by parse(), parse_file() and parse_string().
Reimplemented in conf::DirectivesQ::DConfQ.
| bool conf::ConfQ::parse | ( | ConfGlobalQ & | cgq, | |
| bool | reload, | |||
| std::istream & | is, | |||
| std::string const & | context | |||
| ) |
Parses a stream. This function calls the Conf::begin(), Conf::parse() and Conf::end() functions for the parser.
| [in] | cgq | Sets the ConfGlobalQ object used to initialize the parser. |
| [in] | reload | Specifies whether the configuration is being reloaded (true) or not (false). |
| [in] | is | The input stream to parse. |
| [in] | context | An arbitrary string giving indication on the parsing location. |
| bool conf::ConfQ::parse_file | ( | ConfGlobalQ & | cgq, | |
| bool | reload, | |||
| std::string const & | filename | |||
| ) |
Parses a file. This function calls the Conf::begin(), Conf::parse_file() and Conf::end() functions for the parser.
| [in] | cgq | Sets the ConfGlobalQ object used to initialize the parser. |
| [in] | reload | Specifies whether the configuration is being reloaded (true) or not (false). |
| [in] | filename | The file to parse. |
| bool conf::ConfQ::parse_string | ( | ConfGlobalQ & | cgq, | |
| bool | reload, | |||
| std::string const & | str, | |||
| std::string const & | context | |||
| ) |
Parses a string. This function calls the Conf::begin(), Conf::parse_string() and Conf::end() functions for the parser.
| [in] | cgq | Sets the ConfGlobalQ object used to initialize the parser. |
| [in] | reload | Specifies whether the configuration is being reloaded (true) or not (false). |
| [in] | str | The string to parse. |
| [in] | context | An arbitrary string giving indication on the parsing location. |
1.5.3