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

#include <RpcDecoder.h>

Public Member Functions

 RpcDecoder ()
 
 RpcDecoder (bool ansi, bool setInteger32=true)
 
 RpcDecoder (BaseLib::SharedObjects *baseLib)
 Dummy constructor for backwards compatibility. More...
 
 RpcDecoder (BaseLib::SharedObjects *baseLib, bool ansi, bool setInteger32=true)
 Dummy constructor for backwards compatibility. More...
 
 ~RpcDecoder ()=default
 
std::shared_ptr< RpcHeaderdecodeHeader (const std::vector< char > &packet)
 
std::shared_ptr< RpcHeaderdecodeHeader (const std::vector< uint8_t > &packet)
 
std::shared_ptr< std::vector< std::shared_ptr< Variable > > > decodeRequest (const std::vector< char > &packet, std::string &methodName)
 
std::shared_ptr< std::vector< std::shared_ptr< Variable > > > decodeRequest (const std::vector< uint8_t > &packet, std::string &methodName)
 
std::shared_ptr< VariabledecodeResponse (const std::vector< char > &packet, uint32_t offset=0)
 
std::shared_ptr< VariabledecodeResponse (const std::vector< uint8_t > &packet, uint32_t offset=0)
 

Constructor & Destructor Documentation

§ RpcDecoder() [1/4]

BaseLib::Rpc::RpcDecoder::RpcDecoder ( )

§ RpcDecoder() [2/4]

BaseLib::Rpc::RpcDecoder::RpcDecoder ( bool  ansi,
bool  setInteger32 = true 
)
explicit

§ RpcDecoder() [3/4]

BaseLib::Rpc::RpcDecoder::RpcDecoder ( BaseLib::SharedObjects baseLib)
explicit

Dummy constructor for backwards compatibility.

§ RpcDecoder() [4/4]

BaseLib::Rpc::RpcDecoder::RpcDecoder ( BaseLib::SharedObjects baseLib,
bool  ansi,
bool  setInteger32 = true 
)

Dummy constructor for backwards compatibility.

§ ~RpcDecoder()

BaseLib::Rpc::RpcDecoder::~RpcDecoder ( )
default

Member Function Documentation

§ decodeHeader() [1/2]

std::shared_ptr< RpcHeader > BaseLib::Rpc::RpcDecoder::decodeHeader ( const std::vector< char > &  packet)

§ decodeHeader() [2/2]

std::shared_ptr< RpcHeader > BaseLib::Rpc::RpcDecoder::decodeHeader ( const std::vector< uint8_t > &  packet)

§ decodeRequest() [1/2]

std::shared_ptr< std::vector< std::shared_ptr< Variable > > > BaseLib::Rpc::RpcDecoder::decodeRequest ( const std::vector< char > &  packet,
std::string &  methodName 
)

§ decodeRequest() [2/2]

std::shared_ptr< std::vector< std::shared_ptr< Variable > > > BaseLib::Rpc::RpcDecoder::decodeRequest ( const std::vector< uint8_t > &  packet,
std::string &  methodName 
)

§ decodeResponse() [1/2]

std::shared_ptr< Variable > BaseLib::Rpc::RpcDecoder::decodeResponse ( const std::vector< char > &  packet,
uint32_t  offset = 0 
)

§ decodeResponse() [2/2]

std::shared_ptr< Variable > BaseLib::Rpc::RpcDecoder::decodeResponse ( const std::vector< uint8_t > &  packet,
uint32_t  offset = 0 
)

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