A Discrete-Event Network Simulator
API
ns3::FileConfig Class Referenceabstract

base class for ConfigStore classes using files More...

#include "file-config.h"

+ Inheritance diagram for ns3::FileConfig:
+ Collaboration diagram for ns3::FileConfig:

Public Member Functions

virtual ~FileConfig ()
 
virtual void Attributes (void)=0
 Load or save the attributes values. More...
 
virtual void Default (void)=0
 Load or save the default values. More...
 
virtual void Global (void)=0
 Load or save the global values. More...
 
virtual void SetFilename (std::string filename)=0
 Set the file name. More...
 
void SetSaveDeprecated (bool saveDeprecated)
 Set if to save deprecated attributes. More...
 

Protected Attributes

bool m_saveDeprecated
 save deprecated attributes More...
 

Detailed Description

base class for ConfigStore classes using files

Definition at line 33 of file file-config.h.

Constructor & Destructor Documentation

◆ ~FileConfig()

ns3::FileConfig::~FileConfig ( )
virtual

Definition at line 25 of file file-config.cc.

Member Function Documentation

◆ Attributes()

virtual void ns3::FileConfig::Attributes ( void  )
pure virtual

Load or save the attributes values.

Implemented in ns3::XmlConfigLoad, ns3::XmlConfigSave, ns3::RawTextConfigLoad, ns3::RawTextConfigSave, and ns3::NoneFileConfig.

Referenced by ns3::ConfigStore::ConfigureAttributes().

+ Here is the caller graph for this function:

◆ Default()

virtual void ns3::FileConfig::Default ( void  )
pure virtual

Load or save the default values.

Implemented in ns3::XmlConfigLoad, ns3::XmlConfigSave, ns3::RawTextConfigLoad, ns3::RawTextConfigSave, and ns3::NoneFileConfig.

Referenced by ns3::ConfigStore::ConfigureDefaults().

+ Here is the caller graph for this function:

◆ Global()

virtual void ns3::FileConfig::Global ( void  )
pure virtual

Load or save the global values.

Implemented in ns3::XmlConfigLoad, ns3::XmlConfigSave, ns3::RawTextConfigLoad, ns3::RawTextConfigSave, and ns3::NoneFileConfig.

Referenced by ns3::ConfigStore::ConfigureDefaults().

+ Here is the caller graph for this function:

◆ SetFilename()

virtual void ns3::FileConfig::SetFilename ( std::string  filename)
pure virtual

Set the file name.

Parameters
filenamethe filename

Implemented in ns3::XmlConfigLoad, ns3::XmlConfigSave, ns3::RawTextConfigLoad, ns3::RawTextConfigSave, and ns3::NoneFileConfig.

Referenced by ns3::ConfigStore::ConfigStore().

+ Here is the caller graph for this function:

◆ SetSaveDeprecated()

void ns3::FileConfig::SetSaveDeprecated ( bool  saveDeprecated)

Set if to save deprecated attributes.

Parameters
saveDeprecatedthe deprecated attributes save policy

Definition at line 30 of file file-config.cc.

References m_saveDeprecated.

Referenced by ns3::ConfigStore::ConfigStore(), ns3::RawTextConfigSave::Attributes(), ns3::XmlConfigSave::Attributes(), ns3::RawTextConfigSave::Default(), and ns3::XmlConfigSave::Default().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_saveDeprecated

bool ns3::FileConfig::m_saveDeprecated
protected

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