EMANE  1.2.1
EMANE::EventGeneratorFactoryManager Class Reference

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

#include <eventgeneratorfactorymanager.h>

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

Public Member Functions

 ~EventGeneratorFactoryManager ()
 
const EventGeneratorFactorygetEventGeneratorFactory (const std::string &sLibraryFile)
 

Static Public Member Functions

static EventGeneratorFactoryManagerinstance ()
 
static void destroy ()
 

Protected Member Functions

 EventGeneratorFactoryManager ()
 

Detailed Description

Factory Manager Singleton cache for EventGeneratorFactory 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 eventgeneratorfactorymanager.h.

Constructor & Destructor Documentation

◆ ~EventGeneratorFactoryManager()

EMANE::EventGeneratorFactoryManager::~EventGeneratorFactoryManager ( )

Definition at line 38 of file eventgeneratorfactorymanager.cc.

◆ EventGeneratorFactoryManager()

EMANE::EventGeneratorFactoryManager::EventGeneratorFactoryManager ( )
protected

Definition at line 36 of file eventgeneratorfactorymanager.cc.

Member Function Documentation

◆ destroy()

static void EMANE::Utils::Singleton< EventGeneratorFactoryManager >::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.

◆ getEventGeneratorFactory()

const EMANE::EventGeneratorFactory & EMANE::EventGeneratorFactoryManager::getEventGeneratorFactory ( const std::string &  sLibraryFile)

Retreive specific EventGeneratorFactory reference

Parameters
sLibraryFileDLL file name
Exceptions
Utils::FactoryException

Definition at line 49 of file eventgeneratorfactorymanager.cc.

◆ instance()

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: