#include <cconfigoption.h>
|
|
| cConfigOption (const char *name, bool isGlobal, Type type, const char *unit, const char *defaultValue, const char *description) |
|
| cConfigOption (const char *name, ObjectKind kind, Type type, const char *unit, const char *defaultValue, const char *description) |
|
|
virtual std::string | str () const override |
|
| cNoncopyableOwnedObject (const char *name=nullptr, bool namepooling=true) |
|
virtual cNoncopyableOwnedObject * | dup () const override |
|
virtual void | parsimPack (cCommBuffer *buffer) const override |
|
virtual void | parsimUnpack (cCommBuffer *buffer) override |
|
| cOwnedObject () |
|
| cOwnedObject (const char *name, bool namepooling=true) |
|
| cOwnedObject (const cOwnedObject &obj) |
|
virtual | ~cOwnedObject () |
|
cOwnedObject & | operator= (const cOwnedObject &o) |
|
virtual cObject * | getOwner () const override |
|
virtual bool | isOwnedObject () const override |
|
virtual bool | isSoftOwner () const |
|
| cNamedObject () |
|
| cNamedObject (const char *name, bool namepooling=true) |
|
| cNamedObject (const cNamedObject &obj) |
|
virtual | ~cNamedObject () |
|
cNamedObject & | operator= (const cNamedObject &o) |
|
virtual void | setName (const char *s) |
|
virtual const char * | getName () const override |
|
virtual void | setNamePooling (bool b) |
|
virtual bool | getNamePooling () |
|
| cObject () |
|
| cObject (const cObject &other) |
|
virtual | ~cObject () |
|
virtual const char * | getClassName () const |
|
bool | isName (const char *s) const |
|
virtual const char * | getFullName () const |
|
virtual std::string | getFullPath () const |
|
const cObject * | getThisPtr () const |
|
virtual _OPPDEPRECATED std::string | info () const |
|
virtual _OPPDEPRECATED std::string | detailedInfo () const |
|
virtual void | forEachChild (cVisitor *v) |
|
cObject * | findObject (const char *name, bool deep=true) |
|
void | copyNotSupported () const |
|
◆ Type
Configuration option data types.
◆ ObjectKind
Configuration option kinds.
◆ cConfigOption() [1/2]
cConfigOption |
( |
const char * |
name, |
|
|
bool |
isGlobal, |
|
|
Type |
type, |
|
|
const char * |
unit, |
|
|
const char * |
defaultValue, |
|
|
const char * |
description |
|
) |
| |
Constructor for non per-object options.
◆ cConfigOption() [2/2]
cConfigOption |
( |
const char * |
name, |
|
|
ObjectKind |
kind, |
|
|
Type |
type, |
|
|
const char * |
unit, |
|
|
const char * |
defaultValue, |
|
|
const char * |
description |
|
) |
| |
Constructor for per-object options.
◆ str()
virtual std::string str |
( |
| ) |
const |
|
overridevirtual |
Produce a one-line description of the object. The string is displayed at various places e.g. in graphical user interfaces.
Reimplemented from cObject.
◆ isPerObject()
bool isPerObject |
( |
| ) |
const |
|
inline |
Returns whether this is a per-object configuration. Per-object configuration entries take the form of <object-full-path>.<configname> = <value> in the inifile, instead of <configname> = <value>
◆ isGlobal()
Returns whether this is a global setting. Global settings may only occur in the [General] section.
◆ getObjectKind()
Returns the object kind for per-object configuration options, KIND_NONE otherwise.
◆ getObjectKindName()
static const char* getObjectKindName |
( |
ObjectKind |
kind | ) |
|
|
static |
Returns the human-readable name of a per-object option object kind.
◆ getType()
◆ getTypeName()
static const char* getTypeName |
( |
Type |
type | ) |
|
|
static |
Returns the human-readable name of an option data type.
◆ getUnit()
const char* getUnit |
( |
| ) |
const |
|
inline |
Returns the unit of the option (e.g. "s" for seconds, "b" for bytes, etc), or nullptr if the option does not have a unit.
◆ getDefaultValue()
const char* getDefaultValue |
( |
| ) |
const |
|
inline |
Returns the default value in string form, or nullptr if there is no default.
◆ getDescription()
const char* getDescription |
( |
| ) |
const |
|
inline |
Returns a brief textual description of the option, which can be used as help text or hint.
◆ find()
Finds a configuration option by name. Returns nullptr if not found.
◆ get()
Finds a configuration option by name. Throws an error if not found.
The documentation for this class was generated from the following file: