DataStorm  0.1
Data Distribution Service
Static Public Member Functions | List of all members
DataStorm::Decoder< T, Enabler > Struct Template Reference

The Decoder template provides a method to decode user types. More...

#include <DataStorm/DataStorm.h>

Static Public Member Functions

static T decode (const std::shared_ptr< Ice::Communicator > &communicator, const std::vector< unsigned char > &value) noexcept
 Decode a value. More...

Detailed Description

template<typename T, typename Enabler = void>
struct DataStorm::Decoder< T, Enabler >

The Decoder template provides a method to decode user types.

The decoder template can be specialized to provide decoding for types that don't support being decoded with Ice. By default, the Ice decoding is used if no Decoder template specialization is provided for the type.

Member Function Documentation

◆ decode()

template<typename T , typename E >
T DataStorm::Decoder< T, E >::decode ( const std::shared_ptr< Ice::Communicator > &  communicator,
const std::vector< unsigned char > &  value 

Decode a value.

Decoder template implementation.

This method decodes the given byte sequence and returns the resulting value. The communicator parameter is provided to allow the implementation to eventually use the Ice encoding.

See also
communicatorThe communicator associated with the node
valueThe byte sequence to decode
The resulting value

The documentation for this struct was generated from the following file: