16 #ifndef __OMNETPP_CNAMEDOBJECT_H 17 #define __OMNETPP_CNAMEDOBJECT_H 21 #include "simkerneldefs.h" 24 #include "cexception.h" 25 #include "cstringpool.h" 43 unsigned short unused;
44 enum {FL_NAMEPOOLING = 1};
51 void setFlag(
int flag,
bool value) {
if (value) flags|=flag;
else flags&=~flag;}
68 explicit cNamedObject(
const char *name,
bool namepooling=
true);
96 virtual void parsimPack(
cCommBuffer *buffer)
const override;
101 virtual void parsimUnpack(
cCommBuffer *buffer)
override;
111 virtual void setName(
const char *s);
117 virtual const char *
getName()
const override {
return name ? name :
"";}
123 virtual void setNamePooling(
bool b);
Root of the OMNeT++ class hierarchy. cObject is a lightweight class without any data members...
Definition: cobject.h:58
virtual const char * getName() const override
Definition: cnamedobject.h:117
Extends cObject with a name string. Also includes a "flags" member, with bits open for use by subclas...
Definition: cnamedobject.h:36
Buffer for the communications layer of parallel simulation.
Definition: ccommbuffer.h:41
virtual bool getNamePooling()
Definition: cnamedobject.h:128
Definition: cabstracthistogram.h:21
Reference-counted storage for strings.
Definition: cstringpool.h:36