cComponentType Class Reference
[Internal classes]

Common base class for cModuleType and cChannelType. More...

#include <ccomponenttype.h>

Inheritance diagram for cComponentType:
cNoncopyableOwnedObject cOwnedObject noncopyable cNamedObject cObject cChannelType cModuleType

List of all members.

Public Member Functions

Constructors, destructor, assignment

 cComponentType (const char *qname=NULL)
virtual ~cComponentType ()
Redefined cObject member functions.

virtual const char * getFullName () const

Static Public Member Functions

static cComponentTypefind (const char *qname)
static cComponentTypeget (const char *qname)

Friends

class cComponent
class cModule
class cChannel
class cPar
class cGate

Detailed Description

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").


Constructor & Destructor Documentation

cComponentType::cComponentType ( const char *  qname = NULL  ) 

Constructor.

Takes the fully qualified component type name.


Member Function Documentation

static cComponentType* cComponentType::find ( const char *  qname  )  [static]

Finds a component type by fully qualified NED type name.

Returns NULL if not found.

Reimplemented in cModuleType, and cChannelType.

static cComponentType* cComponentType::get ( const char *  qname  )  [static]

Finds a component type by fully qualified NED type name.

Throws an error if not found.

Reimplemented in cModuleType, and cChannelType.

virtual const char* cComponentType::getFullName (  )  const [inline, virtual]

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.


The documentation for this class was generated from the following file:
Generated on Tue Dec 2 11:16:28 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3