51 std::unique_ptr<EMANE::Application::EventAgentManager>
58 throw BuildException(
"Trying to build an EventAgentManager without any EventAgents");
67 pManager->initialize(registrarProxy);
72 std::for_each(agents.begin(),
74 [&pManager](std::unique_ptr<EventAgent> & pAgent)
76 pManager->add(pAgent);
83 std::unique_ptr<EMANE::EventAgent>
85 const std::string & sLibraryFile,
89 std::string sNativeLibraryFile =
"lib" +
101 std::unique_ptr<EventAgent> pAgent{eventAgentFactory.
createEventAgent(nemId, pPlatformService)};
107 pPlatformService->setPlatformServiceUser(buildId,pAgent.get());
122 pAgent->initialize(registrarProxy);
Factory for creating EventAgents. The factory manages the DLL allowing for the creation of multiple a...
const EventAgentFactory & getEventAgentFactory(const std::string &sLibraryFile)
EventAgent * createEventAgent(NEMId nemId, PlatformServiceProvider *pPlatformService) const
Exception thrown by builders when constructing and assembling application objects and containers...
std::unique_ptr< EventAgentManager > buildEventAgentManager(const uuid_t &uuid, EventAgents &agents, const ConfigurationUpdateRequest &request)
BuildId registerBuildable(Application::NEMManager *pNEMManager)
std::vector< ConfigurationNameStringValues > ConfigurationUpdateRequest
std::unique_ptr< EventAgent > buildEventAgent(EMANE::NEMId nemId, const std::string &sLibraryFile, const ConfigurationUpdateRequest &request, bool bSkipConfigure=false)
void registerEventServiceUser(BuildId buildId, EventServiceUser *pEventServiceUser, NEMId=0)
static BuildIdService * instance()
std::list< std::unique_ptr< EMANE::EventAgent > > EventAgents