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>
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.
◆ ~LayerFactoryManager()
EMANE::LayerFactoryManager::~LayerFactoryManager |
( |
| ) |
|
◆ LayerFactoryManager()
EMANE::LayerFactoryManager::LayerFactoryManager |
( |
| ) |
|
|
protected |
◆ destroy()
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
-
sLibraryFile | DLL file name |
- Exceptions
-
Definition at line 63 of file layerfactorymanager.cc.
◆ getPHYLayerFactory()
const EMANE::PHYLayerFactory & EMANE::LayerFactoryManager::getPHYLayerFactory |
( |
const std::string & |
sLibraryFile | ) |
|
◆ getShimLayerFactory()
const EMANE::ShimLayerFactory & EMANE::LayerFactoryManager::getShimLayerFactory |
( |
const std::string & |
sLibraryFile | ) |
|
Retreive specific a ShimLayerFactory reference
- Parameters
-
sLibraryFile | DLL file name |
- Exceptions
-
Definition at line 101 of file layerfactorymanager.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: