EMANE
1.2.1
|
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 () | |
EventAgent * | createEventAgent (NEMId nemId, PlatformServiceProvider *pPlatformService) const |
void | destoryEventAgent (EventAgent *pAgent) const |
Factory for creating EventAgents. The factory manages the DLL allowing for the creation of multiple agents.
Definition at line 51 of file eventagentfactory.h.
EMANE::EventAgentFactory::EventAgentFactory | ( | const std::string & | sLibraryName | ) |
Constructor
sLibraryName | Filename of DLL |
Utils::FactoryException |
Definition at line 38 of file eventagentfactory.cc.
EMANE::EventAgentFactory::~EventAgentFactory | ( | ) |
Definition at line 65 of file eventagentfactory.cc.
EMANE::EventAgent * EMANE::EventAgentFactory::createEventAgent | ( | EMANE::NEMId | nemId, |
EMANE::PlatformServiceProvider * | pPlatformService | ||
) | const |
Create an EventAgent
nemId | Id of the NEM this agent is part of |
pPlatformService | pointer tothe PlatformServiceProvider |
Definition at line 70 of file eventagentfactory.cc.
void EMANE::EventAgentFactory::destoryEventAgent | ( | EventAgent * | pAgent | ) | const |
Destory an EventAgent
pAgent | Reference to EventAgent |
Definition at line 75 of file eventagentfactory.cc.