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

#include <SremCodec.hh>

Inheritance diagram for SremCodec:
Codec< SREM__PDU__Descriptions::SREM, SREM__PDU__Descriptions::SREM >

Public Member Functions

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

Private Attributes

SremPDUCodec asnCodec
 

Additional Inherited Members

- Protected Attributes inherited from Codec< SREM__PDU__Descriptions::SREM, SREM__PDU__Descriptions::SREM >
Params_params
 

Constructor & Destructor Documentation

◆ SremCodec()

SremCodec::SremCodec ( )
inline

◆ ~SremCodec()

virtual SremCodec::~SremCodec ( )
inlinevirtual

Member Function Documentation

◆ decode()

int SremCodec::decode ( const OCTETSTRING &  p_,
SREM__PDU__Descriptions::SREM &  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< SREM__PDU__Descriptions::SREM, SREM__PDU__Descriptions::SREM >.

◆ encode()

int SremCodec::encode ( const SREM__PDU__Descriptions::SREM &  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< SREM__PDU__Descriptions::SREM, SREM__PDU__Descriptions::SREM >.

Member Data Documentation

◆ asnCodec

SremPDUCodec SremCodec::asnCodec
private

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