A Discrete-Event Network Simulator
API
Public Member Functions | Private Attributes | List of all members
ns3::RawTextConfigSave Class Reference

A class to enable saving of configuration store in a raw text file. More...

#include "raw-text-config.h"

+ Inheritance diagram for ns3::RawTextConfigSave:

Public Member Functions

 RawTextConfigSave ()
 
virtual ~RawTextConfigSave ()
 
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 ()
 

Private Attributes

std::ofstream * m_os
 Config store output stream. More...
 

Detailed Description

A class to enable saving of configuration store in a raw text file.

Definition at line 35 of file raw-text-config.h.

Constructor & Destructor Documentation

◆ RawTextConfigSave()

ns3::RawTextConfigSave::RawTextConfigSave ( )

Definition at line 33 of file raw-text-config.cc.

References NS_LOG_FUNCTION.

◆ ~RawTextConfigSave()

ns3::RawTextConfigSave::~RawTextConfigSave ( )
virtual

Definition at line 38 of file raw-text-config.cc.

References m_os, and NS_LOG_FUNCTION.

Member Function Documentation

◆ Attributes()

void ns3::RawTextConfigSave::Attributes ( void  )
virtual

Load or save the attributes values.

Implements ns3::FileConfig.

Definition at line 93 of file raw-text-config.cc.

References ns3::StringValue::Get(), m_os, NS_LOG_DEBUG, and NS_LOG_FUNCTION.

Referenced by ns3::save_clicked().

◆ Default()

void ns3::RawTextConfigSave::Default ( void  )
virtual

Load or save the default values.

Implements ns3::FileConfig.

Definition at line 56 of file raw-text-config.cc.

References m_os, NS_LOG_DEBUG, and NS_LOG_FUNCTION.

Referenced by ns3::save_clicked_default().

◆ Global()

void ns3::RawTextConfigSave::Global ( void  )
virtual

Load or save the global values.

Implements ns3::FileConfig.

Definition at line 81 of file raw-text-config.cc.

References ns3::GlobalValue::Begin(), ns3::GlobalValue::End(), ns3::StringValue::Get(), m_os, NS_LOG_FUNCTION, and NS_LOG_LOGIC().

◆ SetFilename()

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

Set the file name.

Parameters
filenamethe filename

Implements ns3::FileConfig.

Definition at line 49 of file raw-text-config.cc.

References m_os, and NS_LOG_FUNCTION.

Referenced by ns3::save_clicked(), and ns3::save_clicked_default().

Member Data Documentation

◆ m_os

std::ofstream* ns3::RawTextConfigSave::m_os
private

Config store output stream.

Definition at line 46 of file raw-text-config.h.

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


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