#include <quick.h>
Inheritance diagram for conf::ConfQ:
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.
|
Constructs the ConfQ object.
|
|
Parses a stream. This function calls the Conf::begin(), Conf::parse() and Conf::end() functions for the parser.
|
|
Parses a file. This function calls the Conf::begin(), Conf::parse_file() and Conf::end() functions for the parser.
|
|
Parses a string. This function calls the Conf::begin(), Conf::parse_string() and Conf::end() functions for the parser.
|
|
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. |