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
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
Creates the TaggedBinarySerializer.
Destructor
~TaggedBinarySerializer
Destroys the TaggedBinarySerializer.
Member Functions
resetImpl
void resetImpl();
serialize
void serialize(
const std::string & name,
Poco::Int8 val
);
serialize
void serialize(
const std::string & name,
Poco::UInt8 val
);
serialize
void serialize(
const std::string & name,
Poco::Int16 val
);
serialize
void serialize(
const std::string & name,
Poco::UInt16 val
);
serialize
void serialize(
const std::string & name,
Poco::Int32 val
);
serialize
void serialize(
const std::string & name,
Poco::UInt32 val
);
serialize
void serialize(
const std::string & name,
long val
);
serialize
void serialize(
const std::string & name,
unsigned long val
);
serialize
void serialize(
const std::string & name,
Poco::Int64 val
);
serialize
void serialize(
const std::string & name,
Poco::UInt64 val
);
serialize
void serialize(
const std::string & name,
float val
);
serialize
void serialize(
const std::string & name,
double val
);
serialize
void serialize(
const std::string & name,
bool val
);
serialize
void serialize(
const std::string & name,
char val
);
serialize
void serialize(
const std::string & name,
const std::string & val
);
serialize
void serialize(
const std::string & name,
const std::vector < char > & val
);
serialize
void serialize(
const std::string & name,
const Poco::DateTime & value
);
serialize
void serialize(
const std::string & name,
const Poco::LocalDateTime & value
);
serialize
void serialize(
const std::string & name,
const Poco::Timestamp & value
);
serialize
void serialize(
const std::string & name,
const Poco::UUID & value
);
serializeFaultMessage
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
void serializeNullableBegin(
const std::string & name,
bool isNull
);
serializeNullableEnd
void serializeNullableEnd(
const std::string & name
);
serializeOptionalBegin
void serializeOptionalBegin(
const std::string & name,
bool isSpecified
);
serializeOptionalEnd
void serializeOptionalEnd(
const std::string & name
);
serializeSequenceBegin
void serializeSequenceBegin(
const std::string & name,
Poco::UInt32 numElems
);
serializeSequenceEnd
void serializeSequenceEnd(
const std::string & name
);
serializeStructBegin
void serializeStructBegin(
const std::string & name
);
serializeStructEnd
void serializeStructEnd(
const std::string & name
);
setupImpl
void setupImpl(
std::ostream & ostr
);
serializeName
void serializeName(
const std::string & name
);
Serializes a name.
serializeTypeTag
void serializeTypeTag(
TypeTag tag
);
Serializes a TypeTag.