EMANE  1.2.1
EMANE::NEMLayerStack Class Reference

A stack of NEM layers. Allows ownership and connection of NEM layers in a non layer specific manner. More...

#include <nemlayerstack.h>

Inheritance diagram for EMANE::NEMLayerStack:
EMANE::Component

Public Member Functions

 NEMLayerStack ()
 
 ~NEMLayerStack ()
 
void connectLayers (UpstreamTransport *pUpstreamTransport, DownstreamTransport *pDownstreamTransport)
 
void addLayer (std::unique_ptr< NEMLayer > &pNEMLayer)
 
void initialize (Registrar &registrar) override
 
void configure (const ConfigurationUpdate &items) override
 
void start () override
 
void postStart () override
 
void stop () override
 
void destroy () override throw ()
 

Detailed Description

A stack of NEM layers. Allows ownership and connection of NEM layers in a non layer specific manner.

Definition at line 51 of file nemlayerstack.h.

Constructor & Destructor Documentation

◆ NEMLayerStack()

EMANE::NEMLayerStack::NEMLayerStack ( )

Definition at line 36 of file nemlayerstack.cc.

◆ ~NEMLayerStack()

EMANE::NEMLayerStack::~NEMLayerStack ( )

Definition at line 38 of file nemlayerstack.cc.

Member Function Documentation

◆ addLayer()

void EMANE::NEMLayerStack::addLayer ( std::unique_ptr< NEMLayer > &  pNEMLayer)

Add a layer

Parameters
pNEMLayerLayer to add

Definition at line 71 of file nemlayerstack.cc.

◆ configure()

void EMANE::NEMLayerStack::configure ( const ConfigurationUpdate update)
overridevirtual

Configure the component.

Parameters
updateConfiguration update values
Exceptions
ConfigureExceptionthrown when a unexpected configuration item is encountered or there is a problem with the specified item value

Implements EMANE::Component.

Definition at line 82 of file nemlayerstack.cc.

◆ connectLayers()

void EMANE::NEMLayerStack::connectLayers ( UpstreamTransport pUpstreamTransport,
DownstreamTransport pDownstreamTransport 
)

Connect contained NEM layers

Parameters
pUpstreamTransportReference to upstream transport
pDownstreamTransportReference to downstream transport

Definition at line 41 of file nemlayerstack.cc.

◆ destroy()

void EMANE::NEMLayerStack::destroy ( )
throw (
)
overridevirtual

Destroy the component.

Implements EMANE::Component.

Definition at line 106 of file nemlayerstack.cc.

◆ initialize()

void EMANE::NEMLayerStack::initialize ( Registrar registrar)
overridevirtual

Initialize the component.

Exceptions
InitializeExceptionthrown when an error is encountered during initialization

Implements EMANE::Component.

Definition at line 78 of file nemlayerstack.cc.

◆ postStart()

void EMANE::NEMLayerStack::postStart ( )
overridevirtual

Hook to run any post start functionaililty. Called after all the components have been started.

Reimplemented from EMANE::Component.

Definition at line 92 of file nemlayerstack.cc.

◆ start()

void EMANE::NEMLayerStack::start ( )
overridevirtual

Start the component.

Exceptions
StartExceptionthrown when an error is encountered during start.

Implements EMANE::Component.

Definition at line 85 of file nemlayerstack.cc.

◆ stop()

void EMANE::NEMLayerStack::stop ( )
overridevirtual

Stop the component.

Exceptions
StopExceptionthrown when an error is encountered during stop

Implements EMANE::Component.

Definition at line 99 of file nemlayerstack.cc.


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