SSP21-CPP
Public Member Functions | List of all members
ssp21::IStack Class Referenceabstract

#include <ssp21/stack/IStack.h>

Public Member Functions

virtual ILowerLayerget_lower ()=0
 Retrieve the ILowerLayer of the stack. More...
 
virtual IUpperLayerget_upper ()=0
 Retrieve the IUpperLayer of the stack. More...
 
virtual void bind (ILowerLayer &lower, IUpperLayer &upper)=0
 Bind the user layers to the protocol stack. More...
 

Detailed Description

A stack provides both lower/upper layers and can be bound to provided lower/upper layers

Definition at line 17 of file IStack.h.

Member Function Documentation

◆ get_lower()

virtual ILowerLayer& ssp21::IStack::get_lower ( )
pure virtual

Retrieve the ILowerLayer of the stack.

Returns
Lower layer of the stack

The user IUpperLayer should interact with this layer.

◆ get_upper()

virtual IUpperLayer& ssp21::IStack::get_upper ( )
pure virtual

Retrieve the IUpperLayer of the stack.

Returns
Upper layer of the stack

The user ILowerLayer should interact with this layer.

◆ bind()

virtual void ssp21::IStack::bind ( ILowerLayer lower,
IUpperLayer upper 
)
pure virtual

Bind the user layers to the protocol stack.

Parameters
lowerLower layer to bind
upperUpper layer to bind