A class to enable saving of configuration store in an XML file. More...
#include "xml-config.h"
Public Member Functions | |
XmlConfigSave () | |
~XmlConfigSave () override | |
void | Attributes () override |
Load or save the attributes values. | |
void | Default () override |
Load or save the default values. | |
void | Global () override |
Load or save the global values. | |
void | SetFilename (std::string filename) override |
Set the file name. | |
Public Member Functions inherited from ns3::FileConfig | |
virtual | ~FileConfig () |
Private Attributes | |
xmlTextWriterPtr | m_writer |
XML writer. | |
A class to enable saving of configuration store in an XML file.
Definition at line 29 of file xml-config.h.
ns3::XmlConfigSave::XmlConfigSave | ( | ) |
Definition at line 29 of file xml-config.cc.
References NS_LOG_FUNCTION.
|
override |
Definition at line 74 of file xml-config.cc.
References m_writer, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
|
overridevirtual |
Load or save the attributes values.
Implements ns3::FileConfig.
Definition at line 187 of file xml-config.cc.
References m_writer, NS_FATAL_ERROR, and NS_LOG_WARN.
|
overridevirtual |
Load or save the default values.
Implements ns3::FileConfig.
Definition at line 97 of file xml-config.cc.
References ns3::TypeId::AttributeInformation::checker, ns3::TypeId::GetAttribute(), ns3::TypeId::GetAttributeN(), m_writer, ns3::TypeId::AttributeInformation::name, NS_FATAL_ERROR, NS_LOG_WARN, ns3::TypeId::AttributeInformation::originalInitialValue, and ns3::TypeId::AttributeInformation::supportLevel.
|
overridevirtual |
Load or save the global values.
Implements ns3::FileConfig.
Definition at line 270 of file xml-config.cc.
References ns3::GlobalValue::Begin(), ns3::GlobalValue::End(), m_writer, and NS_FATAL_ERROR.
|
overridevirtual |
Set the file name.
filename | the filename |
Implements ns3::FileConfig.
Definition at line 36 of file xml-config.cc.
References m_writer, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
|
private |
XML writer.
Definition at line 41 of file xml-config.h.
Referenced by ~XmlConfigSave(), Attributes(), Default(), Global(), and SetFilename().