A class to enable saving of configuration store in a raw text file. More...
#include "raw-text-config.h"
Public Member Functions | |
RawTextConfigSave () | |
default constructor More... | |
virtual | ~RawTextConfigSave () |
destructor More... | |
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 | |
std::ofstream * | m_os |
Config store output stream. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ns3::FileConfig | |
bool | m_saveDeprecated |
save deprecated attributes More... | |
A class to enable saving of configuration store in a raw text file.
Definition at line 35 of file raw-text-config.h.
ns3::RawTextConfigSave::RawTextConfigSave | ( | ) |
|
virtual |
|
virtual |
Load or save the attributes values.
Implements ns3::FileConfig.
Definition at line 130 of file raw-text-config.cc.
References ns3::StringValue::Get(), ns3::TypeId::GetAttribute(), ns3::TypeId::GetAttributeN(), m_os, ns3::FileConfig::m_saveDeprecated, ns3::TypeId::AttributeInformation::name, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_LOG_WARN, ns3::FileConfig::SetSaveDeprecated(), and ns3::TypeId::AttributeInformation::supportLevel.
Referenced by ns3::save_clicked_attribute().
|
virtual |
Load or save the default values.
Implements ns3::FileConfig.
Definition at line 61 of file raw-text-config.cc.
References ns3::TypeId::GetAttribute(), ns3::TypeId::GetAttributeN(), ns3::TypeId::LookupByName(), m_os, ns3::FileConfig::m_saveDeprecated, ns3::TypeId::AttributeInformation::name, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_LOG_WARN, ns3::FileConfig::SetSaveDeprecated(), and ns3::TypeId::AttributeInformation::supportLevel.
Referenced by ns3::save_clicked_default().
|
virtual |
Load or save the global values.
Implements ns3::FileConfig.
Definition at line 118 of file raw-text-config.cc.
References ns3::GlobalValue::Begin(), ns3::GlobalValue::End(), m_os, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
|
virtual |
Set the file name.
filename | the filename |
Implements ns3::FileConfig.
Definition at line 54 of file raw-text-config.cc.
References m_os, and NS_LOG_FUNCTION.
Referenced by ns3::save_clicked_attribute(), and ns3::save_clicked_default().
|
private |
Config store output stream.
Definition at line 47 of file raw-text-config.h.
Referenced by ~RawTextConfigSave(), Attributes(), Default(), Global(), and SetFilename().