A class to enable loading of configuration store from an XML file. More...
#include "xml-config.h"
Public Member Functions | |
XmlConfigLoad () | |
~XmlConfigLoad () override | |
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... | |
![]() | |
virtual | ~FileConfig () |
void | SetSaveDeprecated (bool saveDeprecated) |
Set if to save deprecated attributes. More... | |
Private Attributes | |
std::string | m_filename |
the file name More... | |
Additional Inherited Members | |
![]() | |
bool | m_saveDeprecated |
save deprecated attributes More... | |
A class to enable loading of configuration store from an XML file.
Definition at line 59 of file xml-config.h.
ns3::XmlConfigLoad::XmlConfigLoad | ( | ) |
Definition at line 305 of file xml-config.cc.
References NS_LOG_FUNCTION.
|
override |
Definition at line 310 of file xml-config.cc.
References NS_LOG_FUNCTION.
|
overridevirtual |
Load or save the attributes values.
Implements ns3::FileConfig.
Definition at line 401 of file xml-config.cc.
References m_filename, NS_FATAL_ERROR, NS_LOG_DEBUG, check-style-clang-format::path, two-ray-to-three-gpp-ch-calibration::rc, ns3::Config::Set(), check-style-clang-format::type, and second::value.
|
overridevirtual |
Load or save the default values.
Implements ns3::FileConfig.
Definition at line 323 of file xml-config.cc.
References m_filename, NS_FATAL_ERROR, NS_LOG_DEBUG, two-ray-to-three-gpp-ch-calibration::rc, ns3::Config::SetDefault(), check-style-clang-format::type, and second::value.
|
overridevirtual |
Load or save the global values.
Implements ns3::FileConfig.
Definition at line 362 of file xml-config.cc.
References m_filename, NS_FATAL_ERROR, NS_LOG_DEBUG, two-ray-to-three-gpp-ch-calibration::rc, ns3::Config::SetGlobal(), check-style-clang-format::type, and second::value.
|
overridevirtual |
Set the file name.
filename | the filename |
Implements ns3::FileConfig.
Definition at line 316 of file xml-config.cc.
References m_filename, and NS_LOG_FUNCTION.
|
private |
the file name
Definition at line 71 of file xml-config.h.
Referenced by Attributes(), Default(), Global(), and SetFilename().