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

#include <SpatemCodec.hh>

Inheritance diagram for SpatemCodec:
Codec< SPATEM__PDU__Descriptions::SPATEM, SPATEM__PDU__Descriptions::SPATEM >

Public Member Functions

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

Private Attributes

SpatemPDUCodec asnCodec
 

Additional Inherited Members

- Protected Attributes inherited from Codec< SPATEM__PDU__Descriptions::SPATEM, SPATEM__PDU__Descriptions::SPATEM >
Params_params
 

Constructor & Destructor Documentation

◆ SpatemCodec()

SpatemCodec::SpatemCodec ( )
inlineexplicit

◆ ~SpatemCodec()

virtual SpatemCodec::~SpatemCodec ( )
inlinevirtual

Member Function Documentation

◆ decode()

int SpatemCodec::decode ( const OCTETSTRING &  p_,
SPATEM__PDU__Descriptions::SPATEM &  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< SPATEM__PDU__Descriptions::SPATEM, SPATEM__PDU__Descriptions::SPATEM >.

◆ encode()

int SpatemCodec::encode ( const SPATEM__PDU__Descriptions::SPATEM &  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< SPATEM__PDU__Descriptions::SPATEM, SPATEM__PDU__Descriptions::SPATEM >.

Member Data Documentation

◆ asnCodec

SpatemPDUCodec SpatemCodec::asnCodec
private

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