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

A class to enable loading of configuration store from an XML file. More...

#include "xml-config.h"

+ Inheritance diagram for ns3::XmlConfigLoad:
+ Collaboration diagram for ns3::XmlConfigLoad:

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...
 
- Public Member Functions inherited from ns3::FileConfig
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

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

Detailed Description

A class to enable loading of configuration store from an XML file.

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

Constructor & Destructor Documentation

◆ XmlConfigLoad()

ns3::XmlConfigLoad::XmlConfigLoad ( )

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

References NS_LOG_FUNCTION.

◆ ~XmlConfigLoad()

ns3::XmlConfigLoad::~XmlConfigLoad ( )
override

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

References NS_LOG_FUNCTION.

Member Function Documentation

◆ Attributes()

void ns3::XmlConfigLoad::Attributes ( )
overridevirtual

Load or save the attributes values.

Implements ns3::FileConfig.

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

References m_filename, NS_FATAL_ERROR, NS_LOG_DEBUG, two-ray-to-three-gpp-ch-calibration::rc, ns3::Config::Set(), and check-style-clang-format::type.

+ Here is the call graph for this function:

◆ Default()

void ns3::XmlConfigLoad::Default ( )
overridevirtual

Load or save the default values.

Implements ns3::FileConfig.

Definition at line 321 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(), and check-style-clang-format::type.

+ Here is the call graph for this function:

◆ Global()

void ns3::XmlConfigLoad::Global ( )
overridevirtual

Load or save the global values.

Implements ns3::FileConfig.

Definition at line 360 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(), and check-style-clang-format::type.

+ Here is the call graph for this function:

◆ SetFilename()

void ns3::XmlConfigLoad::SetFilename ( std::string  filename)
overridevirtual

Set the file name.

Parameters
filenamethe filename

Implements ns3::FileConfig.

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

References m_filename, and NS_LOG_FUNCTION.

Member Data Documentation

◆ m_filename

std::string ns3::XmlConfigLoad::m_filename
private

the file name

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

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


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