#include <config-file.hpp>


Classes | |
| class | Error | 
Public Member Functions | |
| ConfigFile (UnknownConfigSectionHandler unknownSectionCallback=throwErrorOnUnknownSection) | |
| void | addSectionHandler (const std::string §ionName, ConfigSectionHandler subscriber) | 
| setup notification of configuration file sections  More... | |
| void | parse (const std::string &filename, bool isDryRun) | 
| void | parse (const std::string &input, bool isDryRun, const std::string &filename) | 
| void | parse (std::istream &input, bool isDryRun, const std::string &filename) | 
| void | parse (const ConfigSection &config, bool isDryRun, const std::string &filename) | 
Static Public Member Functions | |
| static void | throwErrorOnUnknownSection (const std::string &filename, const std::string §ionName, const ConfigSection §ion, bool isDryRun) | 
| static void | ignoreUnknownSection (const std::string &filename, const std::string §ionName, const ConfigSection §ion, bool isDryRun) | 
Definition at line 47 of file config-file.hpp.
| nfd::ConfigFile::ConfigFile | ( | UnknownConfigSectionHandler | unknownSectionCallback = throwErrorOnUnknownSection | ) | 
Definition at line 57 of file config-file.cpp.
| void nfd::ConfigFile::addSectionHandler | ( | const std::string & | sectionName, | 
| ConfigSectionHandler | subscriber | ||
| ) | 
setup notification of configuration file sections
Definition at line 63 of file config-file.cpp.
Referenced by nfd::TablesConfigSection::setConfigFile(), nfd::CommandValidator::setConfigFile(), nfd::FaceManager::setConfigFile(), and nfd::general::setConfigFile().
      
  | 
  static | 
Definition at line 49 of file config-file.cpp.
| void nfd::ConfigFile::parse | ( | const std::string & | filename, | 
| bool | isDryRun | ||
| ) | 
| filename | file to parse | 
| isDryRun | true if performing a dry run of configuration, false otherwise | 
| ConfigFile::Error | if file not found | 
| ConfigFile::Error | if parse error | 
Definition at line 70 of file config-file.cpp.
Referenced by parse().
| void nfd::ConfigFile::parse | ( | const std::string & | input, | 
| bool | isDryRun, | ||
| const std::string & | filename | ||
| ) | 
| input | configuration (as a string) to parse | 
| isDryRun | true if performing a dry run of configuration, false otherwise | 
| filename | optional convenience argument to provide more detailed error messages | 
| ConfigFile::Error | if file not found | 
| ConfigFile::Error | if parse error | 
Definition at line 85 of file config-file.cpp.
References parse().
| void nfd::ConfigFile::parse | ( | std::istream & | input, | 
| bool | isDryRun, | ||
| const std::string & | filename | ||
| ) | 
| input | stream to parse | 
| isDryRun | true if performing a dry run of configuration, false otherwise | 
| filename | optional convenience argument to provide more detailed error messages | 
| ConfigFile::Error | if parse error | 
Definition at line 93 of file config-file.cpp.
| void nfd::ConfigFile::parse | ( | const ConfigSection & | config, | 
| bool | isDryRun, | ||
| const std::string & | filename | ||
| ) | 
| config | ConfigSection that needs to be processed | 
| isDryRun | true if performing a dry run of configuration, false otherwise | 
| filename | optional convenience argument to provide more detailed error messages | 
| ConfigFile::Error | if parse error | 
Definition at line 112 of file config-file.cpp.
      
  | 
  static | 
Definition at line 36 of file config-file.cpp.
Referenced by ns3::ndn::IgnoreSections::operator()().