EMANE  1.0.1
EMANE::TransportFactoryManager Class Reference

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

#include <transportfactorymanager.h>

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

Public Member Functions

 ~TransportFactoryManager ()
 
const TransportFactorygetTransportFactory (const std::string &sLibraryFile)
 

Static Public Member Functions

static TransportFactoryManagerinstance ()
 
static void destroy ()
 

Protected Member Functions

 TransportFactoryManager ()
 

Detailed Description

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

Definition at line 55 of file transportfactorymanager.h.

Constructor & Destructor Documentation

◆ ~TransportFactoryManager()

EMANE::TransportFactoryManager::~TransportFactoryManager ( )

Definition at line 38 of file transportfactorymanager.cc.

◆ TransportFactoryManager()

EMANE::TransportFactoryManager::TransportFactoryManager ( )
protected

Definition at line 36 of file transportfactorymanager.cc.

Member Function Documentation

◆ destroy()

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

◆ getTransportFactory()

const EMANE::TransportFactory & EMANE::TransportFactoryManager::getTransportFactory ( const std::string &  sLibraryFile)

Retreive specific TransportFactory reference

Parameters
sLibraryFileDLL file name
Exceptions
Utils::FactoryExceptionwhen a library problem occurs.

Definition at line 47 of file transportfactorymanager.cc.

◆ instance()

static TransportFactoryManager * EMANE::Utils::Singleton< TransportFactoryManager >::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: