A class to enable saving of configuration store in an XML file. More...
#include "xml-config.h"
Public Member Functions | |
XmlConfigSave () | |
virtual | ~XmlConfigSave () |
virtual void | Attributes (void) |
Load or save the attributes values. More... | |
virtual void | Default (void) |
Load or save the default values. More... | |
virtual void | Global (void) |
Load or save the global values. More... | |
virtual void | SetFilename (std::string filename) |
Set the file name. More... | |
Public Member Functions inherited from ns3::FileConfig | |
virtual | ~FileConfig () |
Private Attributes | |
xmlTextWriterPtr | m_writer |
XML writer. More... | |
A class to enable saving of configuration store in an XML file.
Definition at line 36 of file xml-config.h.
ns3::XmlConfigSave::XmlConfigSave | ( | ) |
Definition at line 36 of file xml-config.cc.
References NS_LOG_FUNCTION.
|
virtual |
Definition at line 79 of file xml-config.cc.
References m_writer, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
|
virtual |
Load or save the attributes values.
Implements ns3::FileConfig.
Definition at line 147 of file xml-config.cc.
References ns3::StringValue::Get(), m_writer, and NS_FATAL_ERROR.
|
virtual |
Load or save the default values.
Implements ns3::FileConfig.
Definition at line 101 of file xml-config.cc.
References m_writer, and NS_FATAL_ERROR.
|
virtual |
Load or save the global values.
Implements ns3::FileConfig.
Definition at line 190 of file xml-config.cc.
References ns3::GlobalValue::Begin(), ns3::GlobalValue::End(), ns3::StringValue::Get(), m_writer, and NS_FATAL_ERROR.
|
virtual |
Set the file name.
filename | the filename |
Implements ns3::FileConfig.
Definition at line 42 of file xml-config.cc.
References m_writer, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
|
private |
XML writer.
Definition at line 47 of file xml-config.h.
Referenced by Attributes(), Default(), Global(), SetFilename(), and ~XmlConfigSave().