OMNeT++ Simulation Library
6.0.3
|
16 #ifndef __OMNETPP_CPROPERTIES_H
17 #define __OMNETPP_CPROPERTIES_H
20 #include "simkerneldefs.h"
37 bool isLocked =
false;
39 std::vector<cProperty *> properties;
51 int addRef() {
return ++refCount;}
52 int removeRef() {
return --refCount;}
88 virtual const char *
getName()
const override {
return "properties";}
93 virtual std::string str()
const override;
98 virtual void parsimPack(
cCommBuffer *buffer)
const override;
103 virtual void parsimUnpack(
cCommBuffer *buffer)
override;
118 virtual const std::vector<const char *> getNames()
const;
131 virtual cProperty *get(
const char *name,
const char *index=
nullptr)
const;
149 virtual bool getAsBool(
const char *name,
const char *index=
nullptr)
const;
157 virtual std::vector<const char *> getIndicesFor(
const char *name)
const;
167 virtual void remove(
int k);
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition: cobject.h:92
virtual int getNumProperties() const
Definition: cproperties.h:111
virtual cProperties * dup() const override
Definition: cproperties.h:83
cProperties(const cProperties &other)
Definition: cproperties.h:65
A collection of properties (cProperty).
Definition: cproperties.h:34
cProperties()
Definition: cproperties.h:60
virtual const char * getName() const override
Definition: cproperties.h:88
Stores a (NED) property with its (possibly compound) value.
Definition: cproperty.h:38
Buffer for the communications layer of parallel simulation.
Definition: ccommbuffer.h:41