|
OMNeT++ API 6.1
Discrete Event Simulation Library
|
|
16 #ifndef __OMNETPP_CSTRINGPARIMPL_H
17 #define __OMNETPP_CSTRINGPARIMPL_H
40 std::vector<std::string> *enumValues =
nullptr;
44 void validate(
const char *value)
const;
47 void deleteOld() {cParImpl::deleteOld(expr);}
89 virtual void setEnumValues(
const std::vector<std::string>& values);
94 virtual std::vector<std::string> getEnumValues()
const;
103 virtual void setBoolValue(
bool b)
override;
108 virtual void setIntValue(
intval_t l)
override;
113 virtual void setDoubleValue(
double d)
override;
118 virtual void setStringValue(
const char *s)
override;
123 virtual void setObjectValue(
cObject *
object)
override;
128 virtual void setXMLValue(
cXMLElement *node)
override;
134 virtual void setExpression(
cExpression *e)
override;
143 virtual bool boolValue(
cComponent *context)
const override;
153 virtual double doubleValue(
cComponent *context)
const override;
158 virtual const char *stringValue(
cComponent *context)
const override;
163 virtual std::string stdstringValue(
cComponent *context)
const override;
178 virtual cExpression *getExpression()
const override;
187 virtual Type getType()
const override;
192 virtual bool isNumeric()
const override;
202 virtual void convertToConst(
cComponent *context)
override;
207 virtual std::string str()
const override;
212 virtual void parse(
const char *text,
FileLine loc)
override;
217 virtual int compare(
const cParImpl *other)
const override;
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition: cobject.h:92
cStringParImpl(const cStringParImpl &other)
Definition: cstringparimpl.h:61
Abstract base class for expression evaluators.
Definition: cexpression.h:33
A cParImpl subclass that stores a module/channel parameter of the type string.
Definition: cstringparimpl.h:30
Definition: fileline.h:27
cStringParImpl()
Definition: cstringparimpl.h:56
int64_t intval_t
Signed integer type which is guaranteed to be at least 64 bits wide. It is used throughout the librar...
Definition: simkerneldefs.h:101
Internal class that stores values for cPar objects.
Definition: cparimpl.h:46
Represents an XML element in an XML configuration file.
Definition: cxmlelement.h:75
Common base for module and channel classes.
Definition: ccomponent.h:49
virtual cStringParImpl * dup() const override
Definition: cstringparimpl.h:80