A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::ConfigStore Class Reference

Doxygen introspection did not find any typical Config paths. More...

#include <config-store.h>

+ Inheritance diagram for ns3::ConfigStore:
+ Collaboration diagram for ns3::ConfigStore:

Public Types

enum  FileFormat { XML, RAW_TEXT }
 
enum  Mode { LOAD, SAVE, NONE }
 

Public Member Functions

 ConfigStore ()
 
 ~ConfigStore ()
 
void ConfigureAttributes (void)
 
void ConfigureDefaults (void)
 
virtual TypeId GetInstanceTypeId (void) const
 
void SetFileFormat (enum FileFormat format)
 
void SetFilename (std::string filename)
 
void SetMode (enum Mode mode)
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
 
void SetAttribute (std::string name, const AttributeValue &value)
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 

Static Public Member Functions

static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Attributes

FileConfigm_file
 
enum FileFormat m_fileFormat
 
std::string m_filename
 
enum Mode m_mode
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 This method is invoked once all member attributes have been initialized. More...
 

Detailed Description

Doxygen introspection did not find any typical Config paths.


Attributes

  • Mode: Configuration mode
    • Set with class: ns3::EnumValue
    • Underlying type: None|Load|Save
    • Initial value: None
    • Flags: construct write
  • Filename: The file where the configuration should be saved to or loaded from.
    • Set with class: StringValue
    • Underlying type: std::string
    • Initial value:
    • Flags: construct write
  • FileFormat: Type of file format
    • Set with class: ns3::EnumValue
    • Underlying type: RawText|Xml
    • Initial value: RawText
    • Flags: construct write

No TraceSources are defined for this type.

Definition at line 34 of file config-store.h.

Member Enumeration Documentation

Enumerator
XML 
RAW_TEXT 

Definition at line 42 of file config-store.h.

Enumerator
LOAD 
SAVE 
NONE 

Definition at line 37 of file config-store.h.

Constructor & Destructor Documentation

ns3::ConfigStore::ConfigStore ( )

Definition at line 62 of file config-store.cc.

References ns3::ObjectBase::ConstructSelf(), LOAD, m_file, m_fileFormat, m_filename, m_mode, NS_ABORT_MSG, RAW_TEXT, SAVE, ns3::FileConfig::SetFilename(), and XML.

+ Here is the call graph for this function:

ns3::ConfigStore::~ConfigStore ( )

Definition at line 114 of file config-store.cc.

References m_file.

Member Function Documentation

void ns3::ConfigStore::ConfigureAttributes ( void  )

Definition at line 137 of file config-store.cc.

References ns3::FileConfig::Attributes(), and m_file.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::ConfigStore::ConfigureDefaults ( void  )

Definition at line 143 of file config-store.cc.

References ns3::FileConfig::Default(), ns3::FileConfig::Global(), and m_file.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TypeId ns3::ConfigStore::GetInstanceTypeId ( void  ) const
virtual
Returns
the TypeId associated to the most-derived type of this instance.

This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.

Implements ns3::ObjectBase.

Definition at line 56 of file config-store.cc.

References GetTypeId().

+ Here is the call graph for this function:

TypeId ns3::ConfigStore::GetTypeId ( void  )
static

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

References LOAD, ns3::MakeEnumAccessor(), ns3::MakeEnumChecker(), NONE, RAW_TEXT, SAVE, SetFileFormat(), SetFilename(), SetMode(), ns3::TypeId::SetParent(), and XML.

Referenced by GetInstanceTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::ConfigStore::SetFileFormat ( enum FileFormat  format)

Definition at line 126 of file config-store.cc.

References m_fileFormat.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

void ns3::ConfigStore::SetFilename ( std::string  filename)

Definition at line 131 of file config-store.cc.

References m_filename.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

void ns3::ConfigStore::SetMode ( enum Mode  mode)

Definition at line 121 of file config-store.cc.

References m_mode.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

Member Data Documentation

FileConfig* ns3::ConfigStore::m_file
private

Definition at line 63 of file config-store.h.

Referenced by ConfigStore(), ConfigureAttributes(), ConfigureDefaults(), and ~ConfigStore().

enum FileFormat ns3::ConfigStore::m_fileFormat
private

Definition at line 61 of file config-store.h.

Referenced by ConfigStore(), and SetFileFormat().

std::string ns3::ConfigStore::m_filename
private

Definition at line 62 of file config-store.h.

Referenced by ConfigStore(), and SetFilename().

enum Mode ns3::ConfigStore::m_mode
private

Definition at line 60 of file config-store.h.

Referenced by ConfigStore(), and SetMode().


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