EMANE  1.0.1
EMANE::EventAgentFactoryManager Class Reference

Factory Manager Singleton cache for EventAgentFactory objects. The manager creates and caches the factories and keeps them in scope for the duration of its lifecycle. More...

#include <eventagentfactorymanager.h>

Inheritance diagram for EMANE::EventAgentFactoryManager:
EMANE::Utils::Singleton< EventAgentFactoryManager >

Public Member Functions

 ~EventAgentFactoryManager ()
 
const EventAgentFactorygetEventAgentFactory (const std::string &sLibraryFile)
 

Static Public Member Functions

static EventAgentFactoryManagerinstance ()
 
static void destroy ()
 

Protected Member Functions

 EventAgentFactoryManager ()
 

Detailed Description

Factory Manager Singleton cache for EventAgentFactory objects. The manager creates and caches the factories and keeps them in scope for the duration of its lifecycle.

Definition at line 56 of file eventagentfactorymanager.h.

Constructor & Destructor Documentation

◆ ~EventAgentFactoryManager()

EMANE::EventAgentFactoryManager::~EventAgentFactoryManager ( )

Definition at line 39 of file eventagentfactorymanager.cc.

◆ EventAgentFactoryManager()

EMANE::EventAgentFactoryManager::EventAgentFactoryManager ( )
protected

Definition at line 37 of file eventagentfactorymanager.cc.

Member Function Documentation

◆ destroy()

static void EMANE::Utils::Singleton< EventAgentFactoryManager >::destroy ( )
inlinestaticinherited

Destroys the single instance of type T. Once destroyed it cannot be used or recreated. This is not a thread-safe method.

Definition at line 67 of file singleton.h.

◆ getEventAgentFactory()

const EMANE::EventAgentFactory & EMANE::EventAgentFactoryManager::getEventAgentFactory ( const std::string &  sLibraryFile)

Retreive specific EventAgentFactory reference

Parameters
sLibraryFileDLL file name
Exceptions
Utils::FactoryException

Definition at line 50 of file eventagentfactorymanager.cc.

◆ instance()

static EventAgentFactoryManager * EMANE::Utils::Singleton< EventAgentFactoryManager >::instance ( )
inlinestaticinherited

Provides thread-safe access to a single instance of type T. It does not provide thread-safety for T methods.

Returns
A pointer to T

Definition at line 56 of file singleton.h.


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