#include <ctypes.h>
Inheritance diagram for cNetworkType:
cNetworkType has to be subclassed and the setupNetwork() method redefined, and the subclass to be registered via the Define_Network(). The result will be factory object which can set up a concrete network.
All this is usually taken care of by the NED compiler, so normal users should not need to know about cNetworkType.
Public Member Functions | |
virtual void | setupNetwork ()=0 |
Constructors, destructor, assignment | |
cNetworkType (const cNetworkType &n) | |
cNetworkType (const char *name=NULL) | |
virtual | ~cNetworkType () |
cNetworkType & | operator= (const cNetworkType &) |
|
Copy constructor.
|
|
Constructor. It takes pointer to a function that can build up a network. |
|
Destructor.
|
|
Assignment is not supported by this class: this method throws a cRuntimeError when called.
|
|
Network setup function. This is redefined in subclasses. |