EMANE  1.2.1
EMANE::TransportFactory Class Reference

Factory for creating Transports. The factory manages the DLL allowing for the creation of multiple transports. It does not appear obvious why we would expaind functionality to include multiple transports for a single NEM... More...

#include <transportfactory.h>

Public Member Functions

 TransportFactory (const std::string &sLibraryName)
 
 ~TransportFactory ()
 
TransportcreateTransport (NEMId nemId, PlatformServiceProvider *pPlatformService) const
 
void destoryTransport (Transport *pTransport) const
 

Detailed Description

Factory for creating Transports. The factory manages the DLL allowing for the creation of multiple transports. It does not appear obvious why we would expaind functionality to include multiple transports for a single NEM...

Note
DLLs must stay open in order to use their contents

Definition at line 53 of file transportfactory.h.

Constructor & Destructor Documentation

◆ TransportFactory()

EMANE::TransportFactory::TransportFactory ( const std::string &  sLibraryName)

Constructor

Parameters
sLibraryNameFilename of DLL
Exceptions
Utils::FactoryException

Definition at line 37 of file transportfactory.cc.

◆ ~TransportFactory()

EMANE::TransportFactory::~TransportFactory ( )

Definition at line 64 of file transportfactory.cc.

Member Function Documentation

◆ createTransport()

EMANE::Transport * EMANE::TransportFactory::createTransport ( NEMId  nemId,
PlatformServiceProvider pPlatformService 
) const

Create an Transport

Parameters
nemIdthe NEMId
pPlatformServicepointer to the PlatformServiceProvider
Returns
Transport reference

Definition at line 69 of file transportfactory.cc.

◆ destoryTransport()

void EMANE::TransportFactory::destoryTransport ( Transport pTransport) const

Destory an Transport

Parameters
pTransportReference to Transport

Definition at line 74 of file transportfactory.cc.


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