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

#include <SsemCodec.hh>

Inheritance diagram for SsemCodec:
Codec< SSEM__PDU__Descriptions::SSEM, SSEM__PDU__Descriptions::SSEM >

Public Member Functions

 SsemCodec ()
 
virtual ~SsemCodec ()
 
virtual int encode (const SSEM__PDU__Descriptions::SSEM &ssem, OCTETSTRING &data)
 Encode typed message into an octet string. More...
 
virtual int decode (const OCTETSTRING &data, SSEM__PDU__Descriptions::SSEM &, Params *params=NULL)
 Encode typed message into an octet string format. More...
 
- Public Member Functions inherited from Codec< SSEM__PDU__Descriptions::SSEM, SSEM__PDU__Descriptions::SSEM >
 Codec ()
 Reference to Params stack. More...
 
virtual ~Codec ()
 Default destructor . More...
 

Private Attributes

SsemPDUCodec asnCodec
 

Additional Inherited Members

- Protected Attributes inherited from Codec< SSEM__PDU__Descriptions::SSEM, SSEM__PDU__Descriptions::SSEM >
Params_params
 

Constructor & Destructor Documentation

◆ SsemCodec()

SsemCodec::SsemCodec ( )
inline

◆ ~SsemCodec()

virtual SsemCodec::~SsemCodec ( )
inlinevirtual

Member Function Documentation

◆ decode()

int SsemCodec::decode ( const OCTETSTRING &  p_,
SSEM__PDU__Descriptions::SSEM &  p_message,
Params p_params = NULL 
)
virtual

Encode typed message into an octet string format.

Parameters
[in]p_dataThe message in its octet string
[out]p_messageThe decoded typed message
Returns
0 on success, -1 otherwise

Implements Codec< SSEM__PDU__Descriptions::SSEM, SSEM__PDU__Descriptions::SSEM >.

◆ encode()

int SsemCodec::encode ( const SSEM__PDU__Descriptions::SSEM &  msg,
OCTETSTRING &  data 
)
virtual

Encode typed message into an octet string.

Parameters
[in]p_messageThe typed message to be encoded
[out]p_dataThe encoding result
Returns
0 on success, -1 otherwise

Implements Codec< SSEM__PDU__Descriptions::SSEM, SSEM__PDU__Descriptions::SSEM >.

Member Data Documentation

◆ asnCodec

SsemPDUCodec SsemCodec::asnCodec
private

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