#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 |
|
| 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 |
|
| 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)=default |
|
virtual | ~cObject () |
|
virtual const char * | getClassName () const |
|
bool | isName (const char *s) const |
|
virtual const char * | getFullName () const |
|
virtual std::string | getFullPath () const |
|
virtual std::string | getClassAndFullName () const |
|
virtual std::string | getClassAndFullPath () const |
|
const cObject * | getThisPtr () const |
|
virtual std::ostream & | printOn (std::ostream &os) const |
|
virtual bool | isSoftOwner () const |
|
virtual void | forEachChild (cVisitor *v) |
|
cObject * | findObject (const char *name, bool deep=true) |
|
virtual cClassDescriptor * | getDescriptor () const |
|
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 |
Returns a brief, one-line description of the object. The returned string does (should) NOT include the object's name and class. This method is used to display object information at several places in the Qtenv GUI, among others.
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: