| 
    rippled
    
   | 
 
Holds unparsed configuration information. More...
#include <BasicConfig.h>


Public Member Functions | |
| bool | exists (std::string const &name) const | 
Returns true if a section with the given name exists.   | |
| void | overwrite (std::string const §ion, std::string const &key, std::string const &value) | 
| Overwrite a key/value pair with a command line argument If the section does not exist it is created.   | |
| void | deprecatedClearSection (std::string const §ion) | 
| Remove all the key/value pairs from the section.   | |
| void | legacy (std::string const §ion, std::string value) | 
| Set a value that is not a key/value pair.   | |
| std::string | legacy (std::string const §ionName) const | 
| Get the legacy value of a section.   | |
| bool | had_trailing_comments () const | 
| Section & | section (std::string const &name) | 
| Returns the section with the given name.   | |
| Section const & | section (std::string const &name) const | 
| Section const & | operator[] (std::string const &name) const | 
| Section & | operator[] (std::string const &name) | 
Protected Member Functions | |
| void | build (IniFileSections const &ifs) | 
Private Attributes | |
| std::unordered_map< std::string, Section > | map_ | 
Friends | |
| std::ostream & | operator<< (std::ostream &ss, BasicConfig const &c) | 
Holds unparsed configuration information.
The raw data sections are processed with intermediate parsers specific to each module instead of being all parsed in a central location.
Definition at line 217 of file BasicConfig.h.
| bool ripple::BasicConfig::exists | ( | std::string const & | name | ) | const | 
Returns true if a section with the given name exists. 
Definition at line 130 of file BasicConfig.cpp.
| Section & ripple::BasicConfig::section | ( | std::string const & | name | ) | 
Returns the section with the given name.
If the section does not exist, an empty section is returned.
Definition at line 136 of file BasicConfig.cpp.
| Section const & ripple::BasicConfig::section | ( | std::string const & | name | ) | const | 
Definition at line 142 of file BasicConfig.cpp.
| Section const & ripple::BasicConfig::operator[] | ( | std::string const & | name | ) | const | 
Definition at line 238 of file BasicConfig.h.
| Section & ripple::BasicConfig::operator[] | ( | std::string const & | name | ) | 
Definition at line 244 of file BasicConfig.h.
| void ripple::BasicConfig::overwrite | ( | std::string const & | section, | 
| std::string const & | key, | ||
| std::string const & | value | ||
| ) | 
Overwrite a key/value pair with a command line argument If the section does not exist it is created.
The previous value, if any, is overwritten.
Definition at line 152 of file BasicConfig.cpp.
| void ripple::BasicConfig::deprecatedClearSection | ( | std::string const & | section | ) | 
Remove all the key/value pairs from the section.
Definition at line 165 of file BasicConfig.cpp.
| void ripple::BasicConfig::legacy | ( | std::string const & | section, | 
| std::string | value | ||
| ) | 
Set a value that is not a key/value pair.
The value is stored as the section's first value and may be retrieved through section::legacy.
| section | Name of the section to modify. | 
| value | Contents of the legacy value. | 
Definition at line 173 of file BasicConfig.cpp.
| std::string ripple::BasicConfig::legacy | ( | std::string const & | sectionName | ) | const | 
Get the legacy value of a section.
A section with a single-line value may be retrieved as a legacy value.
| sectionName | Retrieve the contents of this section's legacy value. | 
Definition at line 179 of file BasicConfig.cpp.
| bool ripple::BasicConfig::had_trailing_comments | ( | ) | const | 
Definition at line 294 of file BasicConfig.h.
      
  | 
  protected | 
Definition at line 185 of file BasicConfig.cpp.
      
  | 
  friend | 
Definition at line 197 of file BasicConfig.cpp.
      
  | 
  private | 
Definition at line 220 of file BasicConfig.h.