16 #ifndef __OMNETPP_COBJECTFACTORY_H 17 #define __OMNETPP_COBJECTFACTORY_H 19 #include "simkerneldefs.h" 21 #include "cownedobject.h" 40 std::string description;
57 virtual std::string str()
const override;
66 virtual bool isAbstract()
const {
return creatorFunc==
nullptr;}
95 static cObjectFactory *find(
const char *className,
const char *contextNamespace=
nullptr,
bool fallbackToOmnetpp=
true);
100 static cObjectFactory *
get(
const char *className,
const char *contextNamespace=
nullptr,
bool fallbackToOmnetpp=
true);
Root of the OMNeT++ class hierarchy. cObject is a lightweight class without any data members...
Definition: cobject.h:58
virtual bool isAbstract() const
Definition: cobjectfactory.h:66
const char * getDescription() const
Definition: cobjectfactory.h:85
static cObject * createOneIfClassIsKnown(const char *classname)
The class behind the createOne() function and the Register_Class() macro.
Definition: cobjectfactory.h:35
cObject * createOne(const char *classname)
Shortcut to cObjectFactory::createOne().
Definition: cobjectfactory.h:141
cObject * createOneIfClassIsKnown(const char *classname)
Shortcut to cObjectFactory::createOneIfClassIsKnown().
Definition: cobjectfactory.h:149
Definition: cabstracthistogram.h:21
Base class for cOwnedObject-based classes that do not wish to support assignment and duplication...
Definition: cownedobject.h:248
virtual cObject * createOne() const
virtual bool isInstance(cObject *obj) const
Definition: cobjectfactory.h:80