Represents the configuration, as accessed by the simulation kernel.
This class provides access to configuration data for components such as scheduler classes, parallel simulation algorithms, etc. Model code (simple modules) should not directly read the configuration, they are expected to rely on module parameters for input.
This class logically belongs to the cEnvir facade, and the configuration instance can be accessed with getEnvir()->getConfig().
- See also
- cConfigurationEx, cEnvir::getConfig()
|
|
virtual const char * | getConfigValue (const char *key) const =0 |
|
virtual const KeyValue & | getConfigEntry (const char *key) const =0 |
|
virtual const char * | getPerObjectConfigValue (const char *objectFullPath, const char *keySuffix) const =0 |
|
virtual const KeyValue & | getPerObjectConfigEntry (const char *objectFullPath, const char *keySuffix) const =0 |
|
|
virtual const char * | getAsCustom (cConfigOption *option, const char *fallbackValue=nullptr) const |
|
virtual bool | getAsBool (cConfigOption *option, bool fallbackValue=false) const |
|
virtual long | getAsInt (cConfigOption *option, long fallbackValue=0) const |
|
virtual double | getAsDouble (cConfigOption *option, double fallbackValue=0) const |
|
virtual std::string | getAsString (cConfigOption *option, const char *fallbackValue="") const |
|
virtual std::string | getAsFilename (cConfigOption *option) const |
|
virtual std::vector< std::string > | getAsFilenames (cConfigOption *option) const |
|
virtual std::string | getAsPath (cConfigOption *option) const |
|
|
virtual const char * | getAsCustom (const char *objectFullPath, cConfigOption *option, const char *fallbackValue=nullptr) const |
|
virtual bool | getAsBool (const char *objectFullPath, cConfigOption *option, bool fallbackValue=false) const |
|
virtual long | getAsInt (const char *objectFullPath, cConfigOption *option, long fallbackValue=0) const |
|
virtual double | getAsDouble (const char *objectFullPath, cConfigOption *option, double fallbackValue=0) const |
|
virtual std::string | getAsString (const char *objectFullPath, cConfigOption *option, const char *fallbackValue="") const |
|
virtual std::string | getAsFilename (const char *objectFullPath, cConfigOption *option) const |
|
virtual std::vector< std::string > | getAsFilenames (const char *objectFullPath, cConfigOption *option) const |
|
virtual std::string | getAsPath (const char *objectFullPath, cConfigOption *option) const |
|
|
virtual const char * | substituteVariables (const char *value) const =0 |
|
| cObject () |
|
| cObject (const cObject &other) |
|
virtual | ~cObject () |
|
virtual const char * | getClassName () const |
|
virtual const char * | getName () const |
|
bool | isName (const char *s) const |
|
virtual const char * | getFullName () const |
|
virtual std::string | getFullPath () const |
|
const cObject * | getThisPtr () const |
|
virtual std::string | str () const |
|
virtual _OPPDEPRECATED std::string | info () const |
|
virtual _OPPDEPRECATED std::string | detailedInfo () const |
|
virtual cObject * | dup () const |
|
virtual void | parsimPack (cCommBuffer *buffer) const |
|
virtual void | parsimUnpack (cCommBuffer *buffer) |
|
virtual cObject * | getOwner () const |
|
virtual bool | isOwnedObject () const |
|
virtual void | forEachChild (cVisitor *v) |
|
cObject * | findObject (const char *name, bool deep=true) |
|
void | copyNotSupported () const |
|
|
|
static bool | parseBool (const char *s, const char *defaultValue, bool fallbackValue=false) |
|
static long | parseLong (const char *s, const char *defaultValue, long fallbackValue=0) |
|
static double | parseDouble (const char *s, const char *unit, const char *defaultValue, double fallbackValue=0) |
|
static std::string | parseString (const char *s, const char *defaultValue, const char *fallbackValue="") |
|
static std::string | parseFilename (const char *s, const char *baseDir, const char *defaultValue) |
|
static std::vector< std::string > | parseFilenames (const char *s, const char *baseDir, const char *defaultValue) |
|
static std::string | adjustPath (const char *s, const char *baseDir, const char *defaultValue) |
|
virtual const KeyValue& getConfigEntry |
( |
const char * |
key | ) |
const |
|
pure virtual |
Like getConfigValue(), but this one returns information about the whole inifile entry, not just the value string. If the key is not found, a special KeyValue object is returned where both key and value are nullptr.
Lifetime of the returned object might be limited, so clients should not store references to it. Copying the object is not allowed either, because KeyValue is a polymorphic type (object slicing!).
virtual const KeyValue& getPerObjectConfigEntry |
( |
const char * |
objectFullPath, |
|
|
const char * |
keySuffix |
|
) |
| const |
|
pure virtual |
Like getPerObjectConfigValue(), but this one returns information about the whole inifile entry, not just the value string. If the key is not found, a special KeyValue object is returned where both key and value are nullptr.
Lifetime of the returned object might be limited, so clients should not store references to it. Copying the object is not allowed either, because KeyValue is a polymorphic type (object slicing!).