A Discrete-Event Network Simulator
API
ns3::XmlConfigSave Class Reference

A class to enable saving of configuration store in an XML file. More...

#include "xml-config.h"

+ Inheritance diagram for ns3::XmlConfigSave:
+ Collaboration diagram for ns3::XmlConfigSave:

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 ()
 
void SetSaveDeprecated (bool saveDeprecated)
 Set if to save deprecated attributes. More...
 

Private Attributes

xmlTextWriterPtr m_writer
 XML writer. More...
 

Additional Inherited Members

- Protected Attributes inherited from ns3::FileConfig
bool m_saveDeprecated
 save deprecated attributes More...
 

Detailed Description

A class to enable saving of configuration store in an XML file.

Definition at line 36 of file xml-config.h.

Constructor & Destructor Documentation

◆ XmlConfigSave()

ns3::XmlConfigSave::XmlConfigSave ( )

Definition at line 36 of file xml-config.cc.

References NS_LOG_FUNCTION.

◆ ~XmlConfigSave()

ns3::XmlConfigSave::~XmlConfigSave ( )
virtual

Definition at line 79 of file xml-config.cc.

References m_writer, NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Member Function Documentation

◆ Attributes()

void ns3::XmlConfigSave::Attributes ( void  )
virtual

◆ Default()

void ns3::XmlConfigSave::Default ( void  )
virtual

◆ Global()

void ns3::XmlConfigSave::Global ( void  )
virtual

Load or save the global values.

Implements ns3::FileConfig.

Definition at line 254 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:

◆ SetFilename()

void ns3::XmlConfigSave::SetFilename ( std::string  filename)
virtual

Set the file name.

Parameters
filenamethe filename

Implements ns3::FileConfig.

Definition at line 42 of file xml-config.cc.

References m_writer, NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Member Data Documentation

◆ m_writer

xmlTextWriterPtr ns3::XmlConfigSave::m_writer
private

XML writer.

Definition at line 47 of file xml-config.h.

Referenced by ~XmlConfigSave(), Attributes(), Default(), Global(), and SetFilename().


The documentation for this class was generated from the following files: