|
EMANE
1.2.1
|
Provides methods for contructing transports and a manager to contain and control them as a a group. More...
#include <transportbuilder.h>
Public Member Functions | |
| TransportBuilder () | |
| ~TransportBuilder () | |
| std::unique_ptr< TransportManager > | buildTransportManager (const uuid_t &uuid, TransportAdapters &adapters, const ConfigurationUpdateRequest &request) const |
| std::unique_ptr< TransportAdapter > | buildTransportAdapter (std::unique_ptr< NEMLayer > &pTransport, const ConfigurationUpdateRequest &request) const |
| std::unique_ptr< NEMLayer > | buildTransport (NEMId id, const std::string &sLibraryFile, const ConfigurationUpdateRequest &request, bool bSkipConfigure=false) const |
| template<typename T > | |
| std::pair< T *, std::unique_ptr< TransportAdapter > > | buildTransportWithAdapter (const NEMId id, const ConfigurationUpdateRequest &request, const std::string &sPlatformEndpoint, const std::string &sTransportEndpoint) const |
| Build an instance of the transport named by the template parameter. T must be a subclass of EMANE::Transport and provide a constructor with signature: T(EMANE::NEMId id, EMANE::PlatformServiceProvider * p) T will be instantiated via this constructor. More... | |
| template<typename T > | |
| std::pair< T *, std::unique_ptr< EMANE::Application::TransportAdapter > > | buildTransportWithAdapter (const NEMId id, const ConfigurationUpdateRequest &request, const std::string &sPlatformEndpoint, const std::string &sTransportEndpoint) const |
Provides methods for contructing transports and a manager to contain and control them as a a group.
Definition at line 61 of file transportbuilder.h.
| EMANE::Application::TransportBuilder::TransportBuilder | ( | ) |
Creates a TransportBuilder instance
Definition at line 49 of file transportbuilder.cc.
| EMANE::Application::TransportBuilder::~TransportBuilder | ( | ) |
Destorys an instance
Definition at line 51 of file transportbuilder.cc.
| std::unique_ptr< EMANE::NEMLayer > EMANE::Application::TransportBuilder::buildTransport | ( | NEMId | id, |
| const std::string & | sLibraryFile, | ||
| const ConfigurationUpdateRequest & | request, | ||
| bool | bSkipConfigure = false |
||
| ) | const |
Builds a Transport
| id | NEMId of the NEM associated with this transport |
| sLibraryFile | Name of the dll containing the generator |
| request | configuration update |
| bSkipConfigure | Flag indicating whether to skip calling Component::configure |
| Utils::FactoryException | when a DLL load error occurs. |
| InitializeException | when an error occurs during initialization. |
| ConfigureException | when an error occurs during configure. |
Definition at line 112 of file transportbuilder.cc.
| std::unique_ptr< EMANE::Application::TransportAdapter > EMANE::Application::TransportBuilder::buildTransportAdapter | ( | std::unique_ptr< NEMLayer > & | pTransport, |
| const ConfigurationUpdateRequest & | request | ||
| ) | const |
Builds a TransportAdapter
| pTransport | the transport connected to the adapter |
| request | configuration update |
| InitializeException | when an error occurs during initialization. |
| BuildException | when an error occurs building an NEM from the specified layers. |
| ConfigureException | when an error occurs during configure. |
Definition at line 86 of file transportbuilder.cc.
| std::unique_ptr< EMANE::Application::TransportManager > EMANE::Application::TransportBuilder::buildTransportManager | ( | const uuid_t & | uuid, |
| TransportAdapters & | adapters, | ||
| const ConfigurationUpdateRequest & | request | ||
| ) | const |
Builds a TransportManager
| uuid | Instance uuid |
| adapters | transport pairs to manage |
| request | configuration update |
| InitializeException | when an error occurs during initialization. |
| BuildException | when an error occurs building an NEM from the specified layers. |
| ConfigureException | when an error occurs during configure. |
Definition at line 54 of file transportbuilder.cc.
| std::pair<T *,std::unique_ptr<EMANE::Application::TransportAdapter> > EMANE::Application::TransportBuilder::buildTransportWithAdapter | ( | const NEMId | id, |
| const ConfigurationUpdateRequest & | request, | ||
| const std::string & | sPlatformEndpoint, | ||
| const std::string & | sTransportEndpoint | ||
| ) | const |
Definition at line 36 of file transportbuilder.inl.
| std::pair<T *,std::unique_ptr<TransportAdapter> > EMANE::Application::TransportBuilder::buildTransportWithAdapter | ( | const NEMId | id, |
| const ConfigurationUpdateRequest & | request, | ||
| const std::string & | sPlatformEndpoint, | ||
| const std::string & | sTransportEndpoint | ||
| ) | const |
Build an instance of the transport named by the template parameter. T must be a subclass of EMANE::Transport and provide a constructor with signature: T(EMANE::NEMId id, EMANE::PlatformServiceProvider * p) T will be instantiated via this constructor.
Builds a Transport and TransportAdapter
| T | Transport derived implementation |
| id | NEMId of the NEM associated with this transport |
| request | configuration update |
| sPlatformEndpoint | Platform endpoint |
| sTransportEndpoint | Transport endpoint |
| InitializeException | when an error occurs during initialization. |
| ConfigureException | when an error occurs during configure. |