A class to enable loading of configuration store from a raw text file. More...
#include "raw-text-config.h"
 Inheritance diagram for ns3::RawTextConfigLoad:
 Collaboration diagram for ns3::RawTextConfigLoad:Public Member Functions | |
| RawTextConfigLoad () | |
| default constructor  More... | |
| ~RawTextConfigLoad () override | |
| destructor  More... | |
| void | Attributes () override | 
| Load or save the attributes values.  More... | |
| void | Default () override | 
| Load or save the default values.  More... | |
| void | Global () override | 
| Load or save the global values.  More... | |
| void | SetFilename (std::string filename) override | 
| Set the file name.  More... | |
  Public Member Functions inherited from ns3::FileConfig | |
| virtual | ~FileConfig () | 
| virtual void | Attributes ()=0 | 
| Load or save the attributes values.  More... | |
| virtual void | Default ()=0 | 
| Load or save the default values.  More... | |
| virtual void | Global ()=0 | 
| Load or save the global values.  More... | |
| virtual void | SetFilename (std::string filename)=0 | 
| Set the file name.  More... | |
| void | SetSaveDeprecated (bool saveDeprecated) | 
| Set if to save deprecated attributes.  More... | |
Private Member Functions | |
| virtual bool | ParseLine (const std::string &line, std::string &type, std::string &name, std::string &value) | 
| Parse (potentially multi-) line configs into type, name, and values.  More... | |
| std::string | Strip (std::string value) | 
| Strip out attribute value.  More... | |
Private Attributes | |
| std::ifstream * | m_is | 
| Config store input stream.  More... | |
Additional Inherited Members | |
  Protected Attributes inherited from ns3::FileConfig | |
| bool | m_saveDeprecated | 
| save deprecated attributes  More... | |
A class to enable loading of configuration store from a raw text file.
Definition at line 57 of file raw-text-config.h.
| ns3::RawTextConfigLoad::RawTextConfigLoad | ( | ) | 
      
  | 
  override | 
      
  | 
  overridevirtual | 
Load or save the attributes values.
Implements ns3::FileConfig.
Definition at line 300 of file raw-text-config.cc.
References m_is, NS_LOG_DEBUG, NS_LOG_FUNCTION, ParseLine(), ns3::Config::Set(), Strip(), check-style-clang-format::type, and second::value.
Referenced by ns3::load_clicked_attribute().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  overridevirtual | 
Load or save the default values.
Implements ns3::FileConfig.
Definition at line 244 of file raw-text-config.cc.
References m_is, NS_LOG_DEBUG, NS_LOG_FUNCTION, ParseLine(), ns3::Config::SetDefault(), Strip(), check-style-clang-format::type, and second::value.
Referenced by ns3::load_clicked_default().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  overridevirtual | 
Load or save the global values.
Implements ns3::FileConfig.
Definition at line 272 of file raw-text-config.cc.
References m_is, NS_LOG_DEBUG, NS_LOG_FUNCTION, ParseLine(), ns3::Config::SetGlobal(), Strip(), check-style-clang-format::type, and second::value.
 Here is the call graph for this function:
      
  | 
  privatevirtual | 
Parse (potentially multi-) line configs into type, name, and values.
This will return false for blank lines, comments (lines beginning with '#'), and incomplete entries. An entry is considered complete when a type and name have been found and the value contains two delimiting quotation marks '"'. 
| line | the config file line | 
| type | the config type {default, global, value} | 
| name | the config attribute name | 
| value | the value to set | 
Definition at line 328 of file raw-text-config.cc.
References NS_LOG_FUNCTION, check-style-clang-format::type, and second::value.
Referenced by Attributes(), Default(), and Global().
 Here is the caller graph for this function:
      
  | 
  overridevirtual | 
Set the file name.
| filename | the filename | 
Implements ns3::FileConfig.
Definition at line 225 of file raw-text-config.cc.
References m_is, and NS_LOG_FUNCTION.
Referenced by ns3::load_clicked_attribute(), and ns3::load_clicked_default().
 Here is the caller graph for this function:
      
  | 
  private | 
Strip out attribute value.
| value | the input string | 
Definition at line 233 of file raw-text-config.cc.
References NS_ABORT_MSG_IF, NS_LOG_FUNCTION, two-ray-to-three-gpp-ch-calibration::start, and second::value.
Referenced by Attributes(), Default(), and Global().
 Here is the caller graph for this function:
      
  | 
  private | 
Config store input stream.
Definition at line 93 of file raw-text-config.h.
Referenced by ~RawTextConfigLoad(), Attributes(), Default(), Global(), and SetFilename().