OMNeT++ Simulation Library
6.0.3
|
16 #ifndef __OMNETPP_CCONFIGOPTION_H
17 #define __OMNETPP_CCONFIGOPTION_H
20 #include "cownedobject.h"
55 KIND_UNSPECIFIED_TYPE,
66 ObjectKind objectKind;
69 std::string defaultValue;
70 std::string description;
78 cConfigOption(
const char *name,
bool isGlobal, Type type,
const char *unit,
79 const char *defaultValue,
const char *description);
84 cConfigOption(
const char *name, ObjectKind kind, Type type,
const char *unit,
85 const char *defaultValue,
const char *description);
90 virtual std::string str()
const override;
118 static const char *getObjectKindName(ObjectKind kind);
128 static const char *getTypeName(Type type);
134 const char *
getUnit()
const {
return unit.empty() ? nullptr : unit.c_str();}
139 const char *
getDefaultValue()
const {
return defaultValue.empty() ? nullptr : defaultValue.c_str();}
const char * getDescription() const
Definition: cconfigoption.h:145
const char * getDefaultValue() const
Definition: cconfigoption.h:139
bool isPerObject() const
Definition: cconfigoption.h:101
ObjectKind getObjectKind() const
Definition: cconfigoption.h:113
Type
Configuration option data types.
Definition: cconfigoption.h:37
Describes a configuration option.
Definition: cconfigoption.h:33
bool isGlobal() const
Definition: cconfigoption.h:107
const char * getUnit() const
Definition: cconfigoption.h:134
Type getType() const
Definition: cconfigoption.h:123
Base class for cOwnedObject-based classes that do not wish to support assignment and duplication.
Definition: cownedobject.h:242
ObjectKind
Configuration option kinds.
Definition: cconfigoption.h:49