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
cam_layer Class Reference

This class provides description of ITS CAM protocol layer. More...

#include <cam_layer.hh>

Inheritance diagram for cam_layer:
TLayer< LibItsCam__TestSystem::CamPort > Layer

Public Member Functions

 cam_layer ()
 CAM codec. More...
 
 cam_layer (const std::string &p_type, const std::string &param)
 Specialised constructor Create a new instance of the cam_layer class. More...
 
virtual ~cam_layer ()
 Default destructor. More...
 
void sendMsg (const LibItsCam__TestSystem::CamReq &p_cam_req, Params &p_params)
 Send CA message to the lower layers. More...
 
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< LibItsCam__TestSystem::CamPort >
 TLayer ()
 
 TLayer (const std::string &p_type)
 
void addUpperPort (LibItsCam__TestSystem::CamPort *p_port)
 
void removeUpperPort (LibItsCam__TestSystem::CamPort *)
 
- 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
 
CAMCodec _codec
 Layer parameters. More...
 

Additional Inherited Members

- Protected Member Functions inherited from TLayer< LibItsCam__TestSystem::CamPort >
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...
 

Detailed Description

This class provides description of ITS CAM protocol layer.

Constructor & Destructor Documentation

◆ cam_layer() [1/2]

cam_layer::cam_layer ( )
inlineexplicit

CAM codec.

Default constructor Create a new instance of the cam_layer class

◆ cam_layer() [2/2]

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

Specialised constructor Create a new instance of the cam_layer class.

Parameters
[in]p_type

◆ ~cam_layer()

virtual cam_layer::~cam_layer ( )
inlinevirtual

Default destructor.

Member Function Documentation

◆ receiveData()

void cam_layer::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

Reimplemented from Layer.

◆ sendData()

void cam_layer::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

Reimplemented from Layer.

◆ sendMsg()

void cam_layer::sendMsg ( const LibItsCam__TestSystem::CamReq &  p_cam_req,
Params p_params 
)

Send CA message to the lower layers.

Parameters
[in]p_cam_reqThe CA message to be sent
[in]p_paramsSome parameters to overwrite default value of the lower layers parameters

Member Data Documentation

◆ _codec

CAMCodec cam_layer::_codec
private

Layer parameters.

◆ _params

Params cam_layer::_params
private

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