Introspection did not find any typical Config paths. More...
#include "config-store.h"
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 |
Get the most derived TypeId for this Object. More... | |
void | SetFileFormat (enum FileFormat format) |
void | SetFilename (std::string filename) |
void | SetMode (enum Mode mode) |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
FileConfig * | m_file |
enum FileFormat | m_fileFormat |
std::string | m_filename |
enum Mode | m_mode |
Additional Inherited Members | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
![]() | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Introspection did not find any typical Config paths.
No TraceSources are defined for this type.
Size of this type is 32 bytes (on a 64-bit architecture).
Definition at line 54 of file config-store.h.
ns3::ConfigStore::ConfigStore | ( | ) |
Definition at line 81 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.
ns3::ConfigStore::~ConfigStore | ( | ) |
Definition at line 133 of file config-store.cc.
References m_file.
void ns3::ConfigStore::ConfigureAttributes | ( | void | ) |
Definition at line 156 of file config-store.cc.
References ns3::FileConfig::Attributes(), and m_file.
void ns3::ConfigStore::ConfigureDefaults | ( | void | ) |
Definition at line 162 of file config-store.cc.
References ns3::FileConfig::Default(), ns3::FileConfig::Global(), and m_file.
Referenced by ConfigStoreHelper::LoadConfig(), and ConfigStoreHelper::SaveConfig().
|
virtual |
Get the most derived TypeId for this Object.
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 75 of file config-store.cc.
References GetTypeId().
|
static |
Definition at line 48 of file config-store.cc.
References LOAD, ns3::MakeEnumAccessor(), ns3::MakeEnumChecker(), ns3::MakeStringAccessor(), ns3::MakeStringChecker(), NONE, RAW_TEXT, SAVE, SetFileFormat(), SetFilename(), SetMode(), ns3::TypeId::SetParent(), and XML.
Referenced by GetInstanceTypeId().
void ns3::ConfigStore::SetFileFormat | ( | enum FileFormat | format | ) |
Definition at line 145 of file config-store.cc.
References m_fileFormat.
Referenced by GetTypeId().
void ns3::ConfigStore::SetFilename | ( | std::string | filename | ) |
Definition at line 150 of file config-store.cc.
References m_filename.
Referenced by GetTypeId().
void ns3::ConfigStore::SetMode | ( | enum Mode | mode | ) |
Definition at line 140 of file config-store.cc.
References m_mode.
Referenced by GetTypeId().
|
private |
Definition at line 83 of file config-store.h.
Referenced by ConfigStore(), ConfigureAttributes(), ConfigureDefaults(), and ~ConfigStore().
|
private |
Definition at line 81 of file config-store.h.
Referenced by ConfigStore(), and SetFileFormat().
|
private |
Definition at line 82 of file config-store.h.
Referenced by ConfigStore(), and SetFilename().
|
private |
Definition at line 80 of file config-store.h.
Referenced by ConfigStore(), and SetMode().