OMNeT++ Simulation Library
5.6.1
|
#include <ccomponenttype.h>
Common base class for cModuleType and cChannelType.
The getName() method returns the unqualified name (without namespace, e.g. "Queue"), and getFullName() returns the qualified name (with namespace, e.g. "inet.network.Queue").
Public Member Functions | |
virtual std::string | getNedSource () const =0 |
Constructors, destructor, assignment | |
cComponentType (const char *qname=nullptr) | |
virtual | ~cComponentType () |
Redefined cObject member functions. | |
virtual const char * | getFullName () const override |
Public Member Functions inherited from cNoncopyableOwnedObject | |
cNoncopyableOwnedObject (const char *name=nullptr, bool namepooling=true) | |
virtual cNoncopyableOwnedObject * | dup () const override |
virtual void | parsimPack (cCommBuffer *buffer) const override |
virtual void | parsimUnpack (cCommBuffer *buffer) override |
Public Member Functions inherited from cOwnedObject | |
cOwnedObject () | |
cOwnedObject (const char *name, bool namepooling=true) | |
cOwnedObject (const cOwnedObject &obj) | |
virtual | ~cOwnedObject () |
cOwnedObject & | operator= (const cOwnedObject &o) |
virtual cObject * | getOwner () const override |
virtual bool | isOwnedObject () const override |
virtual bool | isSoftOwner () const |
Public Member Functions inherited from cNamedObject | |
cNamedObject () | |
cNamedObject (const char *name, bool namepooling=true) | |
cNamedObject (const cNamedObject &obj) | |
virtual | ~cNamedObject () |
cNamedObject & | operator= (const cNamedObject &o) |
virtual void | setName (const char *s) |
virtual const char * | getName () const override |
virtual void | setNamePooling (bool b) |
virtual bool | getNamePooling () |
Public Member Functions inherited from cObject | |
cObject () | |
cObject (const cObject &other) | |
virtual | ~cObject () |
virtual const char * | getClassName () const |
bool | isName (const char *s) const |
virtual std::string | getFullPath () const |
const cObject * | getThisPtr () const |
virtual std::string | str () const |
virtual _OPPDEPRECATED std::string | info () const |
virtual _OPPDEPRECATED std::string | detailedInfo () const |
virtual void | forEachChild (cVisitor *v) |
cObject * | findObject (const char *name, bool deep=true) |
void | copyNotSupported () const |
Static Public Member Functions | |
static cComponentType * | find (const char *qname) |
static cComponentType * | get (const char *qname) |
Static Public Member Functions inherited from cOwnedObject | |
static long | getTotalObjectCount () |
static long | getLiveObjectCount () |
static void | resetObjectCounters () |
static cDefaultList * | getDefaultOwner () |
Additional Inherited Members | |
Protected Member Functions inherited from cObject | |
virtual void | take (cOwnedObject *obj) |
virtual void | drop (cOwnedObject *obj) |
void | dropAndDelete (cOwnedObject *obj) |
cComponentType | ( | const char * | qname = nullptr | ) |
Constructor. Takes the fully qualified component type name.
|
virtual |
Destructor.
|
inlineoverridevirtual |
Returns the fully qualified name (i.e. the simple name prefixed with the package name and any existing enclosing NED type names).
Examples:
The fully qualified name for a module named Fifo
which is in the default package is "Fifo"
.
For a module named Host
which is in the package some.package
, the fully qualified name is "some.package.Host"
.
For a channel type Ch
which is defined as an inner type inside the network Network
in a package named some.package
, the fully qualified name is "some.package.Network.Ch"
.
Reimplemented from cObject.
|
pure virtual |
Returns the NED source code of the component, if available.
|
static |
Finds a component type by fully qualified NED type name. Returns nullptr if not found.
|
static |
Finds a component type by fully qualified NED type name. Throws an error if not found.