Poco::RemotingNG

class BinaryDeserializer

File Information

Library: RemotingNG
Package: Serialization
Header: Poco/RemotingNG/BinaryDeserializer.h

Description

A generic Deserializer using a proprietary binary serialization format based on the Poco::BinaryReader class. The BinaryDeserializer is used in conjunction with the BinarySerializer class.

Please see the BinarySerializer class for more information.

Inheritance

Direct Base Classes: Deserializer

All Base Classes: Deserializer, SerializerBase

Member Summary

Member Functions: deserialize, deserializeEndPoint, deserializeMessageBegin, deserializeMessageEnd, deserializeNullableBegin, deserializeNullableEnd, deserializeSequenceBegin, deserializeSequenceEnd, deserializeStructBegin, deserializeStructEnd, deserializeToken, findMessage, resetImpl, setupImpl

Inherited Functions: clearProperties, deserialize, deserializeMessageBegin, deserializeMessageEnd, deserializeNullableBegin, deserializeNullableEnd, deserializeOptionalBegin, deserializeOptionalEnd, deserializeSequenceBegin, deserializeSequenceEnd, deserializeStructBegin, deserializeStructEnd, findMessage, getProperty, hasProperty, popProperty, pushAttribute, pushProperty, reset, resetImpl, setup, setupImpl

Constructors

BinaryDeserializer

BinaryDeserializer();

Creates a BinaryDeserializer.

Destructor

~BinaryDeserializer virtual

~BinaryDeserializer();

Destroys the BinaryDeserializer.

Member Functions

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    Poco::Int8 & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    Poco::UInt8 & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    Poco::Int16 & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    Poco::UInt16 & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    Poco::Int32 & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    Poco::UInt32 & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    long & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    unsigned long & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    Poco::Int64 & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    Poco::UInt64 & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    float & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    double & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    bool & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    char & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    std::string & value
);

deserialize virtual

bool deserialize(
    const std::string & name,
    bool isMandatory,
    std::vector < char > & value
);

deserializeEndPoint

void deserializeEndPoint(
    std::string & oid,
    std::string & tid
);

Serializes the object and type ID of the service object.

deserializeMessageBegin virtual

void deserializeMessageBegin(
    const std::string & name,
    SerializerBase::MessageType type
);

deserializeMessageEnd virtual

void deserializeMessageEnd(
    const std::string & name,
    SerializerBase::MessageType type
);

deserializeNullableBegin virtual

bool deserializeNullableBegin(
    const std::string & name,
    bool isMandatory,
    bool & isNull
);

deserializeNullableEnd virtual

void deserializeNullableEnd(
    const std::string & name
);

deserializeSequenceBegin virtual

bool deserializeSequenceBegin(
    const std::string & name,
    bool isMandatory,
    Poco::UInt32 & lengthHint
);

deserializeSequenceEnd virtual

void deserializeSequenceEnd(
    const std::string & name
);

deserializeStructBegin virtual

bool deserializeStructBegin(
    const std::string & name,
    bool isMandatory
);

deserializeStructEnd virtual

void deserializeStructEnd(
    const std::string & name
);

deserializeToken inline

template < typename T > T deserializeToken();

Deserializes the given value, which must be a type directly supported by Poco::BinaryReader.

findMessage virtual

SerializerBase::MessageType findMessage(
    std::string & name
);

resetImpl protected virtual

void resetImpl();

setupImpl protected virtual

void setupImpl(
    std::istream & istr
);

Securely control IoT edge devices from anywhere   Connect a Device