Poco::JS::Bridge

class TaggedBinarySerializer

File Information

Library: JS/Bridge
Package: Bridging
Header: Poco/JS/Bridge/TaggedBinarySerializer.h

Description

An variation of the BinarySerializer that adds type tags and names to the stream.

Inheritance

Direct Base Classes: Poco::RemotingNG::Serializer

All Base Classes: Poco::RemotingNG::Serializer, Poco::RemotingNG::SerializerBase

Member Summary

Member Functions: resetImpl, serialize, serializeFaultMessage, serializeMessageBegin, serializeMessageEnd, serializeName, serializeNullableBegin, serializeNullableEnd, serializeOptionalBegin, serializeOptionalEnd, serializeSequenceBegin, serializeSequenceEnd, serializeStructBegin, serializeStructEnd, serializeTypeTag, setupImpl

Inherited Functions: clearProperties, getProperty, hasProperty, popProperty, pushAttribute, pushProperty, registerNamespace, reset, resetImpl, serialize, serializeFaultMessage, serializeMessageBegin, serializeMessageEnd, serializeNullableBegin, serializeNullableEnd, serializeOptionalBegin, serializeOptionalEnd, serializeSequenceBegin, serializeSequenceEnd, serializeStructBegin, serializeStructEnd, setup, setupImpl

Enumerations

ContainerType

CONT_MESSAGE

CONT_STRUCT

CONT_SEQUENCE

TypeTag

TYPE_TAG_MESSAGE_BEGIN = 0x10

TYPE_TAG_MESSAGE_END = 0x18

TYPE_TAG_STRUCT_BEGIN = 0x20

TYPE_TAG_STRUCT_END = 0x28

TYPE_TAG_SEQUENCE_BEGIN = 0x21

TYPE_TAG_SEQUENCE_END = 0x29

TYPE_TAG_NULLABLE_BEGIN = 0x22

TYPE_TAG_NULLABLE_END = 0x2A

TYPE_TAG_OPTIONAL_BEGIN = 0x23

TYPE_TAG_OPTIONAL_END = 0x2B

TYPE_TAG_INT8 = 0x30

TYPE_TAG_UINT8 = 0x31

TYPE_TAG_INT16 = 0x32

TYPE_TAG_UINT16 = 0x33

TYPE_TAG_INT32 = 0x34

TYPE_TAG_UINT32 = 0x35

TYPE_TAG_LONG = 0x36

TYPE_TAG_ULONG = 0x37

TYPE_TAG_INT64 = 0x38

TYPE_TAG_UINT64 = 0x39

TYPE_TAG_FLOAT = 0x40

TYPE_TAG_DOUBLE = 0x41

TYPE_TAG_BOOL = 0x50

TYPE_TAG_CHAR = 0x60

TYPE_TAG_STRING = 0x70

TYPE_TAG_BUFFER = 0x71

TYPE_TAG_UUID = 0x72

TYPE_TAG_DATETIME = 0x80

TYPE_TAG_LOCALDATETIME = 0x81

TYPE_TAG_TIMESTAMP = 0x82

Constructors

TaggedBinarySerializer

TaggedBinarySerializer();

Creates the TaggedBinarySerializer.

Destructor

~TaggedBinarySerializer virtual

~TaggedBinarySerializer();

Destroys the TaggedBinarySerializer.

Member Functions

resetImpl virtual

void resetImpl();

serialize virtual

void serialize(
    const std::string & name,
    Poco::Int8 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::UInt8 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::Int16 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::UInt16 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::Int32 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::UInt32 val
);

serialize virtual

void serialize(
    const std::string & name,
    long val
);

serialize virtual

void serialize(
    const std::string & name,
    unsigned long val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::Int64 val
);

serialize virtual

void serialize(
    const std::string & name,
    Poco::UInt64 val
);

serialize virtual

void serialize(
    const std::string & name,
    float val
);

serialize virtual

void serialize(
    const std::string & name,
    double val
);

serialize virtual

void serialize(
    const std::string & name,
    bool val
);

serialize virtual

void serialize(
    const std::string & name,
    char val
);

serialize virtual

void serialize(
    const std::string & name,
    const std::string & val
);

serialize virtual

void serialize(
    const std::string & name,
    const std::vector < char > & val
);

serialize virtual

void serialize(
    const std::string & name,
    const Poco::DateTime & value
);

serialize virtual

void serialize(
    const std::string & name,
    const Poco::LocalDateTime & value
);

serialize virtual

void serialize(
    const std::string & name,
    const Poco::Timestamp & value
);

serialize virtual

void serialize(
    const std::string & name,
    const Poco::UUID & value
);

serializeFaultMessage virtual

void serializeFaultMessage(
    const std::string & name,
    const Poco::Exception & exc
);

serializeMessageBegin

void serializeMessageBegin(
    const std::string & name,
    Poco::RemotingNG::SerializerBase::MessageType type
);

serializeMessageEnd

void serializeMessageEnd(
    const std::string & name,
    Poco::RemotingNG::SerializerBase::MessageType type
);

serializeNullableBegin virtual

void serializeNullableBegin(
    const std::string & name,
    bool isNull
);

serializeNullableEnd virtual

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

serializeOptionalBegin virtual

void serializeOptionalBegin(
    const std::string & name,
    bool isSpecified
);

serializeOptionalEnd virtual

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

serializeSequenceBegin virtual

void serializeSequenceBegin(
    const std::string & name,
    Poco::UInt32 numElems
);

serializeSequenceEnd virtual

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

serializeStructBegin virtual

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

serializeStructEnd virtual

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

setupImpl virtual

void setupImpl(
    std::ostream & ostr
);

serializeName protected inline

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

Serializes a name.

serializeTypeTag protected inline

void serializeTypeTag(
    TypeTag tag
);

Serializes a TypeTag.

Securely control IoT edge devices from anywhere   Connect a Device