34 #include "../Variable.h" 35 #include "../Exception.h" 58 explicit RpcDecoder(
bool ansi,
bool setInteger32 =
true);
71 std::shared_ptr<RpcHeader> decodeHeader(
const std::vector<char> &packet);
72 std::shared_ptr<RpcHeader> decodeHeader(
const std::vector<uint8_t> &packet);
73 std::shared_ptr<std::vector<std::shared_ptr<Variable>>> decodeRequest(
const std::vector<char> &packet, std::string &methodName);
74 std::shared_ptr<std::vector<std::shared_ptr<Variable>>> decodeRequest(
const std::vector<uint8_t> &packet, std::string &methodName);
75 std::shared_ptr<Variable> decodeResponse(
const std::vector<char> &packet, uint32_t offset = 0);
76 std::shared_ptr<Variable> decodeResponse(
const std::vector<uint8_t> &packet, uint32_t offset = 0);
79 std::unique_ptr<BinaryDecoder> _decoder;
80 bool _setInteger32 =
true;
82 std::shared_ptr<Variable> decodeParameter(
const std::vector<char> &packet, uint32_t &position);
83 std::shared_ptr<Variable> decodeParameter(
const std::vector<uint8_t> &packet, uint32_t &position);
84 VariableType decodeType(
const std::vector<char> &packet, uint32_t &position);
85 VariableType decodeType(
const std::vector<uint8_t> &packet, uint32_t &position);
86 std::shared_ptr<Array> decodeArray(
const std::vector<char> &packet, uint32_t &position);
87 std::shared_ptr<Array> decodeArray(
const std::vector<uint8_t> &packet, uint32_t &position);
88 std::shared_ptr<Struct> decodeStruct(
const std::vector<char> &packet, uint32_t &position);
89 std::shared_ptr<Struct> decodeStruct(
const std::vector<uint8_t> &packet, uint32_t &position);
This is the base library main class.
Definition: BaseLib.h:95
Definition: RpcDecoder.h:55
Definition: BaseLib.cpp:34
VariableType
Definition: Variable.h:49
Definition: RpcDecoder.h:50
RpcDecoderException(std::string message)
Definition: RpcDecoder.h:52
Base class for all exceptions defined in Homegear.
Definition: Exception.h:41