EMANE  1.0.1
EMANE::LayerFactoryManager Class Reference

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

#include <layerfactorymanager.h>

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

Public Member Functions

 ~LayerFactoryManager ()
 
const MACLayerFactorygetMACLayerFactory (const std::string &sLibraryFile)
 
const PHYLayerFactorygetPHYLayerFactory (const std::string &sLibraryFile)
 
const ShimLayerFactorygetShimLayerFactory (const std::string &sLibraryFile)
 

Static Public Member Functions

static LayerFactoryManagerinstance ()
 
static void destroy ()
 

Protected Member Functions

 LayerFactoryManager ()
 

Detailed Description

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

Definition at line 61 of file layerfactorymanager.h.

Constructor & Destructor Documentation

◆ ~LayerFactoryManager()

EMANE::LayerFactoryManager::~LayerFactoryManager ( )

Definition at line 38 of file layerfactorymanager.cc.

◆ LayerFactoryManager()

EMANE::LayerFactoryManager::LayerFactoryManager ( )
protected

Definition at line 36 of file layerfactorymanager.cc.

Member Function Documentation

◆ destroy()

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

◆ getMACLayerFactory()

const EMANE::MACLayerFactory & EMANE::LayerFactoryManager::getMACLayerFactory ( const std::string &  sLibraryFile)

Retreive specific a MACLayerFactory reference

Parameters
sLibraryFileDLL file name
Exceptions
Utils::FactoryException

Definition at line 63 of file layerfactorymanager.cc.

◆ getPHYLayerFactory()

const EMANE::PHYLayerFactory & EMANE::LayerFactoryManager::getPHYLayerFactory ( const std::string &  sLibraryFile)

Retreive specific a PHYLayerFactory reference

Parameters
sLibraryFileDLL file name
Exceptions
Utils::FactoryException

Definition at line 82 of file layerfactorymanager.cc.

◆ getShimLayerFactory()

const EMANE::ShimLayerFactory & EMANE::LayerFactoryManager::getShimLayerFactory ( const std::string &  sLibraryFile)

Retreive specific a ShimLayerFactory reference

Parameters
sLibraryFileDLL file name
Exceptions
Utils::FactoryException

Definition at line 101 of file layerfactorymanager.cc.

◆ instance()

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