File Information
Library: JS/Bridge
Package: Bridging
Header: Poco/JS/Bridge/Serializer.h
Description
This Serializer serializes to a V8 JavaScript object.
Inheritance
Direct Base Classes: Poco::RemotingNG::Serializer
All Base Classes: Poco::RemotingNG::Serializer, Poco::RemotingNG::SerializerBase
Member Summary
Member Functions: exception, jsValue, messageName, resetImpl, serialize, serializeFaultMessage, serializeMessageBegin, serializeMessageEnd, serializeNullableBegin, serializeNullableEnd, serializeOptionalBegin, serializeOptionalEnd, serializeSequenceBegin, serializeSequenceEnd, serializeStructBegin, serializeStructEnd, serializeValue, setupImpl, totalSerialized
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
Constructors
Serializer
Serializer(
v8::Isolate * pIsolate
);
Creates a Serializer.
Destructor
~Serializer
~Serializer();
Destroys the Serializer.
Member Functions
exception
Poco::Exception * exception() const;
Returns a pointer to the exception object if one was thrown, or null otherwise.
jsValue
const v8::Global < v8::Object > & jsValue() const;
Returns the resulting JavaScript object.
messageName
const std::string & messageName() const;
Returns the message name.
serialize
void serialize(
const std::string & name,
Poco::Int8 value
);
serialize
void serialize(
const std::string & name,
Poco::UInt8 value
);
serialize
void serialize(
const std::string & name,
Poco::Int16 value
);
serialize
void serialize(
const std::string & name,
Poco::UInt16 value
);
serialize
void serialize(
const std::string & name,
Poco::Int32 value
);
serialize
void serialize(
const std::string & name,
Poco::UInt32 value
);
serialize
void serialize(
const std::string & name,
long value
);
serialize
void serialize(
const std::string & name,
unsigned long value
);
serialize
void serialize(
const std::string & name,
Poco::Int64 value
);
serialize
void serialize(
const std::string & name,
Poco::UInt64 value
);
serialize
void serialize(
const std::string & name,
float value
);
serialize
void serialize(
const std::string & name,
double value
);
serialize
void serialize(
const std::string & name,
bool value
);
serialize
void serialize(
const std::string & name,
char value
);
serialize
void serialize(
const std::string & name,
const std::string & value
);
serialize
void serialize(
const std::string & name,
const std::vector < char > & value
);
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,
SerializerBase::MessageType type
);
serializeMessageEnd
void serializeMessageEnd(
const std::string & name,
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 length
);
serializeSequenceEnd
void serializeSequenceEnd(
const std::string & name
);
serializeStructBegin
void serializeStructBegin(
const std::string & name
);
serializeStructEnd
void serializeStructEnd(
const std::string & name
);
serializeValue
void serializeValue(
const std::string & name,
const v8::Local < v8::Value > & value
);
totalSerialized
int totalSerialized() const;
Returns the number of serialized values.
resetImpl
void resetImpl();
setupImpl
void setupImpl(
std::ostream & param436
);