libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
BaseLib::BinaryEncoder Class Reference

#include <BinaryEncoder.h>

Public Member Functions

 BinaryEncoder ()=default
 
 BinaryEncoder (BaseLib::SharedObjects *baseLib)
 Dummy constructor for backwards compatability. More...
 

Static Public Member Functions

static void encodeInteger (std::vector< char > &encodedData, int32_t integer)
 
static void encodeInteger (std::vector< uint8_t > &encodedData, int32_t integer)
 
static void encodeInteger64 (std::vector< char > &encodedData, int64_t integer)
 
static void encodeInteger64 (std::vector< uint8_t > &encodedData, int64_t integer)
 
static void encodeByte (std::vector< char > &encodedData, uint8_t byte)
 
static void encodeByte (std::vector< uint8_t > &encodedData, uint8_t byte)
 
static void encodeString (std::vector< char > &packet, const std::string &string)
 
static void encodeString (std::vector< uint8_t > &encodedData, const std::string &string)
 
static void encodeBinary (std::vector< char > &packet, const std::vector< uint8_t > &data)
 
static void encodeBinary (std::vector< uint8_t > &encodedData, const std::vector< uint8_t > &data)
 
static void encodeBoolean (std::vector< char > &encodedData, bool boolean)
 
static void encodeBoolean (std::vector< uint8_t > &encodedData, bool boolean)
 
static void encodeFloat (std::vector< char > &encodedData, double floatValue)
 
static void encodeFloat (std::vector< uint8_t > &encodedData, double floatValue)
 

Constructor & Destructor Documentation

§ BinaryEncoder() [1/2]

BaseLib::BinaryEncoder::BinaryEncoder ( )
default

§ BinaryEncoder() [2/2]

BaseLib::BinaryEncoder::BinaryEncoder ( BaseLib::SharedObjects baseLib)
explicit

Dummy constructor for backwards compatability.

Member Function Documentation

§ encodeBinary() [1/2]

void BaseLib::BinaryEncoder::encodeBinary ( std::vector< char > &  packet,
const std::vector< uint8_t > &  data 
)
static

§ encodeBinary() [2/2]

void BaseLib::BinaryEncoder::encodeBinary ( std::vector< uint8_t > &  encodedData,
const std::vector< uint8_t > &  data 
)
static

§ encodeBoolean() [1/2]

void BaseLib::BinaryEncoder::encodeBoolean ( std::vector< char > &  encodedData,
bool  boolean 
)
static

§ encodeBoolean() [2/2]

void BaseLib::BinaryEncoder::encodeBoolean ( std::vector< uint8_t > &  encodedData,
bool  boolean 
)
static

§ encodeByte() [1/2]

void BaseLib::BinaryEncoder::encodeByte ( std::vector< char > &  encodedData,
uint8_t  byte 
)
static

§ encodeByte() [2/2]

void BaseLib::BinaryEncoder::encodeByte ( std::vector< uint8_t > &  encodedData,
uint8_t  byte 
)
static

§ encodeFloat() [1/2]

void BaseLib::BinaryEncoder::encodeFloat ( std::vector< char > &  encodedData,
double  floatValue 
)
static

§ encodeFloat() [2/2]

void BaseLib::BinaryEncoder::encodeFloat ( std::vector< uint8_t > &  encodedData,
double  floatValue 
)
static

§ encodeInteger() [1/2]

void BaseLib::BinaryEncoder::encodeInteger ( std::vector< char > &  encodedData,
int32_t  integer 
)
static

§ encodeInteger() [2/2]

void BaseLib::BinaryEncoder::encodeInteger ( std::vector< uint8_t > &  encodedData,
int32_t  integer 
)
static

§ encodeInteger64() [1/2]

void BaseLib::BinaryEncoder::encodeInteger64 ( std::vector< char > &  encodedData,
int64_t  integer 
)
static

§ encodeInteger64() [2/2]

void BaseLib::BinaryEncoder::encodeInteger64 ( std::vector< uint8_t > &  encodedData,
int64_t  integer 
)
static

§ encodeString() [1/2]

void BaseLib::BinaryEncoder::encodeString ( std::vector< char > &  packet,
const std::string &  string 
)
static

§ encodeString() [2/2]

void BaseLib::BinaryEncoder::encodeString ( std::vector< uint8_t > &  encodedData,
const std::string &  string 
)
static

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