EMANE  1.0.1
EMANE::LayerFactory< T > Class Template Reference

Factory for creating T layers . The factory manages the DLL allowing for the creation of layers of the same type. More...

#include <layerfactory.h>

Public Member Functions

 LayerFactory (const std::string &sLibraryName)
 
 ~LayerFactory ()
 
T * createLayer (NEMId nemId, PlatformServiceProvider *pPlatformService, RadioServiceProvider *pRadioServiceProvider) const
 
void destoryLayer (T *layer) const
 

Detailed Description

template<class T>
class EMANE::LayerFactory< T >

Factory for creating T layers . The factory manages the DLL allowing for the creation of layers of the same type.

Factory for creating PHYLayerImplementor layers . The factory manages the DLL allowing for the creation of layers of the same type.

Note
DLLs must stay open in order to use their contents

Definition at line 53 of file layerfactory.h.

Constructor & Destructor Documentation

◆ LayerFactory()

template<class T >
EMANE::LayerFactory< T >::LayerFactory ( const std::string &  sLibraryName)

Constructor

Parameters
sLibraryNameFilename of DLL
Exceptions
Utils::FactoryException

Definition at line 39 of file layerfactory.inl.

◆ ~LayerFactory()

template<class T >
EMANE::LayerFactory< T >::~LayerFactory ( )

Definition at line 65 of file layerfactory.inl.

Member Function Documentation

◆ createLayer()

template<class T >
T * EMANE::LayerFactory< T >::createLayer ( NEMId  nemId,
PlatformServiceProvider pPlatformService,
RadioServiceProvider pRadioServiceProvider 
) const

Create a T layer

Parameters
nemIdNEM id
pPlatformServiceplatform service
pRadioServiceProviderradio service
Returns
T reference to newly created layer

Definition at line 71 of file layerfactory.inl.

◆ destoryLayer()

template<class T >
void EMANE::LayerFactory< T >::destoryLayer ( T *  layer) const

Destory a T layer

Parameters
layerLayer to destory

Definition at line 79 of file layerfactory.inl.


The documentation for this class was generated from the following files: