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

#include <RpcEncoder.h>

Public Member Functions

 RpcEncoder ()
 
 RpcEncoder (bool forceInteger64, bool encodeVoid)
 
 RpcEncoder (BaseLib::SharedObjects *baseLib)
 Dummy constructor for backwards compatibility. More...
 
 RpcEncoder (BaseLib::SharedObjects *baseLib, bool forceInteger64, bool encodeVoid)
 Dummy constructor for backwards compatibility. More...
 
 ~RpcEncoder ()=default
 
void encodeRequest (const std::string &methodName, const std::shared_ptr< std::list< std::shared_ptr< Variable >>> &parameters, std::vector< char > &encodedData, const std::shared_ptr< RpcHeader > &header=nullptr)
 
void encodeRequest (const std::string &methodName, const std::shared_ptr< std::list< std::shared_ptr< Variable >>> &parameters, std::vector< uint8_t > &encodedData, const std::shared_ptr< RpcHeader > &header=nullptr)
 
void encodeRequest (const std::string &methodName, const PArray &parameters, std::vector< char > &encodedData, const std::shared_ptr< RpcHeader > &header=nullptr)
 
void encodeRequest (const std::string &methodName, const PArray &parameters, std::vector< uint8_t > &encodedData, const std::shared_ptr< RpcHeader > &header=nullptr)
 
void encodeResponse (const std::shared_ptr< Variable > &variable, std::vector< char > &encodedData)
 
void encodeResponse (const std::shared_ptr< Variable > &variable, std::vector< uint8_t > &encodedData)
 

Static Public Member Functions

static void insertHeader (std::vector< char > &packet, const RpcHeader &header)
 
static void insertHeader (std::vector< uint8_t > &packet, const RpcHeader &header)
 

Constructor & Destructor Documentation

§ RpcEncoder() [1/4]

BaseLib::Rpc::RpcEncoder::RpcEncoder ( )

§ RpcEncoder() [2/4]

BaseLib::Rpc::RpcEncoder::RpcEncoder ( bool  forceInteger64,
bool  encodeVoid 
)

§ RpcEncoder() [3/4]

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

Dummy constructor for backwards compatibility.

§ RpcEncoder() [4/4]

BaseLib::Rpc::RpcEncoder::RpcEncoder ( BaseLib::SharedObjects baseLib,
bool  forceInteger64,
bool  encodeVoid 
)

Dummy constructor for backwards compatibility.

§ ~RpcEncoder()

BaseLib::Rpc::RpcEncoder::~RpcEncoder ( )
default

Member Function Documentation

§ encodeRequest() [1/4]

void BaseLib::Rpc::RpcEncoder::encodeRequest ( const std::string &  methodName,
const std::shared_ptr< std::list< std::shared_ptr< Variable >>> &  parameters,
std::vector< char > &  encodedData,
const std::shared_ptr< RpcHeader > &  header = nullptr 
)

§ encodeRequest() [2/4]

void BaseLib::Rpc::RpcEncoder::encodeRequest ( const std::string &  methodName,
const std::shared_ptr< std::list< std::shared_ptr< Variable >>> &  parameters,
std::vector< uint8_t > &  encodedData,
const std::shared_ptr< RpcHeader > &  header = nullptr 
)

§ encodeRequest() [3/4]

void BaseLib::Rpc::RpcEncoder::encodeRequest ( const std::string &  methodName,
const PArray parameters,
std::vector< char > &  encodedData,
const std::shared_ptr< RpcHeader > &  header = nullptr 
)

§ encodeRequest() [4/4]

void BaseLib::Rpc::RpcEncoder::encodeRequest ( const std::string &  methodName,
const PArray parameters,
std::vector< uint8_t > &  encodedData,
const std::shared_ptr< RpcHeader > &  header = nullptr 
)

§ encodeResponse() [1/2]

void BaseLib::Rpc::RpcEncoder::encodeResponse ( const std::shared_ptr< Variable > &  variable,
std::vector< char > &  encodedData 
)

§ encodeResponse() [2/2]

void BaseLib::Rpc::RpcEncoder::encodeResponse ( const std::shared_ptr< Variable > &  variable,
std::vector< uint8_t > &  encodedData 
)

§ insertHeader() [1/2]

void BaseLib::Rpc::RpcEncoder::insertHeader ( std::vector< char > &  packet,
const RpcHeader header 
)
static

§ insertHeader() [2/2]

void BaseLib::Rpc::RpcEncoder::insertHeader ( std::vector< uint8_t > &  packet,
const RpcHeader header 
)
static

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