ETSI STF525 / Internal Testing test suite
This project provides an internal testing test suite and its associated Test Adapter/Codec
Public Member Functions | Private Attributes | List of all members
SremSsemLayer Class Reference

#include <SremSsemLayer.hh>

Inheritance diagram for SremSsemLayer:
TLayer< LibItsSremSsem__TestSystem::SremSsemPort > Layer

Public Member Functions

 SremSsemLayer ()
 
 SremSsemLayer (const std::string &p_type, const std::string &param)
 
virtual ~SremSsemLayer ()
 
void sendMsg (const LibItsSremSsem__TestSystem::SremReq &, Params &params)
 
void sendMsg (const LibItsSremSsem__TestSystem::SsemReq &, Params &params)
 
virtual void sendData (OCTETSTRING &data, Params &params)
 Send bytes formated data to the lower layers. More...
 
virtual void receiveData (OCTETSTRING &data, Params &info)
 Receive bytes formated data from the lower layers. More...
 
- Public Member Functions inherited from TLayer< LibItsSremSsem__TestSystem::SremSsemPort >
 TLayer ()
 
 TLayer (const std::string &p_type)
 
void addUpperPort (LibItsSremSsem__TestSystem::SremSsemPort *p_port)
 
void removeUpperPort (LibItsSremSsem__TestSystem::SremSsemPort *)
 
- Public Member Functions inherited from Layer
 Layer ()
 Type description, it indicates the protocol type (e.g. CAM, DENM, GN, ETH, PCAP...) More...
 
 Layer (const std::string &p_type)
 Specialized constructor Create a new instance of the Layer class with its type description. More...
 
virtual ~Layer ()
 Default destructor. More...
 
void deleteLayer ()
 Delete this layer. More...
 
void addUpperLayer (Layer *p_layer)
 Add a new layer in the list of the upper layer. More...
 
void removeUpperLayer (Layer *p_layer)
 Remove the specified upper layer protocol from the list of the upper layer. More...
 
const std::string & to_string () const
 Remove the specified upper layer protocol from the list of the upper layer. More...
 

Private Attributes

Params _params
 
SremCodec _srem_codec
 
SsemCodec _ssem_codec
 

Additional Inherited Members

- Protected Member Functions inherited from TLayer< LibItsSremSsem__TestSystem::SremSsemPort >
void toAllUpperPorts (const TMessage &m, const Params &param)
 
- Protected Member Functions inherited from Layer
void toAllLayers (std::vector< Layer *> &layers, OCTETSTRING &data, Params &params)
 
void receiveToAllLayers (OCTETSTRING &data, Params &params)
 
void sendToAllLayers (OCTETSTRING &data, Params &params)
 
- Protected Attributes inherited from Layer
std::string type
 List of the lower protocol layers. More...
 

Constructor & Destructor Documentation

◆ SremSsemLayer() [1/2]

SremSsemLayer::SremSsemLayer ( )
inline

◆ SremSsemLayer() [2/2]

SremSsemLayer::SremSsemLayer ( const std::string &  p_type,
const std::string &  param 
)

◆ ~SremSsemLayer()

virtual SremSsemLayer::~SremSsemLayer ( )
inlinevirtual

Member Function Documentation

◆ receiveData()

void SremSsemLayer::receiveData ( OCTETSTRING &  data,
Params params 
)
virtual

Receive bytes formated data from the lower layers.

Parameters
[in]p_dataThe bytes formated data received
[in]p_paramsSome lower layers parameters values when data was received
Todo:
Remove the logs

Reimplemented from Layer.

◆ sendData()

void SremSsemLayer::sendData ( OCTETSTRING &  data,
Params params 
)
virtual

Send bytes formated data to the lower layers.

Parameters
[in]p_dataThe data to be sent
[in]p_paramsSome parameters to overwrite default value of the lower layers parameters
Todo:
Remove the logs

Reimplemented from Layer.

◆ sendMsg() [1/2]

void SremSsemLayer::sendMsg ( const LibItsSremSsem__TestSystem::SremReq &  p,
Params params 
)

◆ sendMsg() [2/2]

void SremSsemLayer::sendMsg ( const LibItsSremSsem__TestSystem::SsemReq &  p,
Params params 
)

Member Data Documentation

◆ _params

Params SremSsemLayer::_params
private

◆ _srem_codec

SremCodec SremSsemLayer::_srem_codec
private

◆ _ssem_codec

SsemCodec SremSsemLayer::_ssem_codec
private

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