Poco::JS::Bridge

class Serializer

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 virtual

~Serializer();

Destroys the Serializer.

Member Functions

exception inline

Poco::Exception * exception() const;

Returns a pointer to the exception object if one was thrown, or null otherwise.

jsValue inline

const v8::Global < v8::Object > & jsValue() const;

Returns the resulting JavaScript object.

messageName inline

const std::string & messageName() const;

Returns the message name.

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

serialize virtual

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

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 virtual

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

serializeMessageEnd virtual

void serializeMessageEnd(
    const std::string & name,
    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 length
);

serializeSequenceEnd virtual

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

serializeStructBegin virtual

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

serializeStructEnd virtual

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

serializeValue

void serializeValue(
    const std::string & name,
    const v8::Local < v8::Value > & value
);

totalSerialized inline

int totalSerialized() const;

Returns the number of serialized values.

resetImpl protected virtual

void resetImpl();

setupImpl protected virtual

void setupImpl(
    std::ostream & param436
);

Securely control IoT edge devices from anywhere   Connect a Device