A class to enable saving of configuration store in an XML file. More...
#include "xml-config.h"
 Inheritance diagram for ns3::XmlConfigSave:
 Inheritance diagram for ns3::XmlConfigSave: Collaboration diagram for ns3::XmlConfigSave:
 Collaboration diagram for ns3::XmlConfigSave:| 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 () | 
| virtual void | Attributes ()=0 | 
| Load or save the attributes values. | |
| virtual void | Default ()=0 | 
| Load or save the default values. | |
| virtual void | Global ()=0 | 
| Load or save the global values. | |
| virtual void | SetFilename (std::string filename)=0 | 
| Set the file name. | |
| void | SetSaveDeprecated (bool saveDeprecated) | 
| Set if to save deprecated attributes. | |
| Private Attributes | |
| xmlTextWriterPtr | m_writer | 
| XML writer. | |
| Additional Inherited Members | |
|  Protected Attributes inherited from ns3::FileConfig | |
| bool | m_saveDeprecated | 
| save deprecated attributes | |
A class to enable saving of configuration store in an XML file.
Definition at line 40 of file xml-config.h.
| ns3::XmlConfigSave::XmlConfigSave | ( | ) | 
Definition at line 40 of file xml-config.cc.
References NS_LOG_FUNCTION.
| 
 | override | 
Definition at line 85 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 192 of file xml-config.cc.
References ns3::StringValue::Get(), ns3::TypeId::GetAttribute(), ns3::TypeId::GetAttributeN(), ns3::FileConfig::m_saveDeprecated, m_writer, ns3::TypeId::AttributeInformation::name, NS_FATAL_ERROR, NS_LOG_WARN, and ns3::TypeId::AttributeInformation::supportLevel.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | overridevirtual | 
Load or save the default values.
Implements ns3::FileConfig.
Definition at line 108 of file xml-config.cc.
References ns3::TypeId::GetAttribute(), ns3::TypeId::GetAttributeN(), ns3::FileConfig::m_saveDeprecated, m_writer, ns3::TypeId::AttributeInformation::name, NS_FATAL_ERROR, NS_LOG_WARN, and ns3::TypeId::AttributeInformation::supportLevel.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | overridevirtual | 
Load or save the global values.
Implements ns3::FileConfig.
Definition at line 271 of file xml-config.cc.
References ns3::GlobalValue::Begin(), ns3::GlobalValue::End(), m_writer, and NS_FATAL_ERROR.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | overridevirtual | 
Set the file name.
| filename | the filename | 
Implements ns3::FileConfig.
Definition at line 47 of file xml-config.cc.
References m_writer, NS_FATAL_ERROR, and NS_LOG_FUNCTION.
| 
 | private | 
XML writer.
Definition at line 52 of file xml-config.h.
Referenced by ~XmlConfigSave(), Attributes(), Default(), Global(), and SetFilename().