|
Public Member Functions |
| ConfigSection (ConfigSection *parent, std::string sectionName) |
| Constructor.
|
| ~ConfigSection () |
| Destructor.
|
ConfigSection * | findSection (std::string sectionName) |
| Recursively find and return proper section.
|
void | printSection (int indentLevel=0, std::ostream &os=std::cout) |
| Dumps a section (and subsections) to an ostream.
|
std::string | getSectionName () |
| Simple Accessor to getSectionName.
|
std::string | getFullSectionName () |
| Prints out full name of section by recursively prependind parent name.
|
std::string | getFullVariableName (std::string variableName) |
| Prepends the full section name to a variable name.
|
ConfigSection * | getNextSection () |
| Returns a pointer to the next section in the section list.
|
std::string | getNextVariable () |
| Returns the next variable name in the variable map.
|
std::string | getValue (std::string variableName) |
| Returns the value for a variable from the map at the current section.
|
bool | hasVariable (std::string variableName) |
| Checks for the existence of a variable in section map.
|
void | resetIterators () |
| Reset the iterators to the beginning for getNextSection and getNextVariable.
|
Protected Member Functions |
ConfigSection * | addNewSection (std::string sectionName) |
| Creates a new section, adds it to the appropriate section lists.
|
void | resolveSubstitutions () |
| Resolves the variable substitutions.
|
void | addVariable (const char *varLine) |
| Parses a string, and adds variable=value into m_valueMap.
|
Static Protected Member Functions |
std::string | parseSectionName (const char *sectionName) |
| Extracts Section Name from raw string.
|
Friends |
class | ConfigFile |