EMANE  1.0.1
EMANE::EventAgentFactory Class Reference

Factory for creating EventAgents. The factory manages the DLL allowing for the creation of multiple agents. More...

#include <eventagentfactory.h>

Public Member Functions

 EventAgentFactory (const std::string &sLibraryName)
 
 ~EventAgentFactory ()
 
EventAgentcreateEventAgent (NEMId nemId, PlatformServiceProvider *pPlatformService) const
 
void destoryEventAgent (EventAgent *pAgent) const
 

Detailed Description

Factory for creating EventAgents. The factory manages the DLL allowing for the creation of multiple agents.

Note
DLLs must stay open in order to use their contents

Definition at line 51 of file eventagentfactory.h.

Constructor & Destructor Documentation

◆ EventAgentFactory()

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

Constructor

Parameters
sLibraryNameFilename of DLL
Exceptions
Utils::FactoryException

Definition at line 38 of file eventagentfactory.cc.

◆ ~EventAgentFactory()

EMANE::EventAgentFactory::~EventAgentFactory ( )

Definition at line 65 of file eventagentfactory.cc.

Member Function Documentation

◆ createEventAgent()

EMANE::EventAgent * EMANE::EventAgentFactory::createEventAgent ( EMANE::NEMId  nemId,
EMANE::PlatformServiceProvider pPlatformService 
) const

Create an EventAgent

Parameters
nemIdId of the NEM this agent is part of
pPlatformServicepointer tothe PlatformServiceProvider
Returns
EventAgent reference

Definition at line 70 of file eventagentfactory.cc.

◆ destoryEventAgent()

void EMANE::EventAgentFactory::destoryEventAgent ( EventAgent pAgent) const

Destory an EventAgent

Parameters
pAgentReference to EventAgent

Definition at line 75 of file eventagentfactory.cc.


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