46 transportConfig_(filename),
47 rTransportBuilder_(builder)
60 std::unique_ptr<EMANE::Application::TransportManager>
64 EMANE::TransportInstanceConfigurations::const_iterator instanceIter =
68 for ( ; instanceIter != transportConfig_.
getInstances().end(); ++instanceIter)
72 auto pTransport = createTransport(*instanceIter);
75 (*instanceIter)->getConfigurationUpdateRequest()));
92 std::unique_ptr<EMANE::NEMLayer>
95 EMANE::LayerConfigurations::const_iterator transportIter =
100 if (pTransportConfig == 0)
102 std::stringstream excStream;
103 excStream <<
"Transport inside instance " 104 << pTIConfig->
getId() <<
" is NOT properly configured!" Provides default implementation to common layer functionalities.
std::unique_ptr< NEMLayer > buildTransport(NEMId id, const std::string &sLibraryFile, const ConfigurationUpdateRequest &request, bool bSkipConfigure=false) const
std::string getLibrary() const
std::unique_ptr< TransportManager > construct(const uuid_t &uuid)
std::list< std::unique_ptr< TransportAdapter > > TransportAdapters
std::unique_ptr< TransportAdapter > buildTransportAdapter(std::unique_ptr< NEMLayer > &pTransport, const ConfigurationUpdateRequest &request) const
const LayerConfigurations & getLayers()
TransportDirector(const std::string &filename, TransportBuilder &builder)
const ConfigurationUpdateRequest getConfigurationUpdateRequest()
Provides methods for contructing transports and a manager to contain and control them as a a group...
const TransportInstanceConfigurations & getInstances()
Contains all configuration associated with a TransportInstance.
std::unique_ptr< TransportManager > buildTransportManager(const uuid_t &uuid, TransportAdapters &adapters, const ConfigurationUpdateRequest &request) const