Library: Remoting/JSON
Package: JSON
Header: Poco/Remoting/JSON/Serializer.h
The Serializer implementation for the JSON Transport.
Direct Base Classes: Poco::Remoting::Serializer
All Base Classes: Poco::Remoting::Serializer
Member Functions: pushAttribute, resetId, resetImpl, serialize, serializeComplexTypeEnd, serializeComplexTypeStart, serializeError, serializeNullElement, serializeReplyEnd, serializeReplyStart, serializeRequestEnd, serializeRequestStart, serializeVectorBegin, serializeVectorEnd, setOutputStreamImpl
Inherited Functions: getProperty, hasProperty, popProperty, pushAttribute, pushProperty, reset, resetImpl, serialize, serializeComplexTypeEnd, serializeComplexTypeStart, serializeError, serializeNullElement, serializeReplyEnd, serializeReplyStart, serializeRequestEnd, serializeRequestStart, serializeVectorBegin, serializeVectorEnd, setOutputStream, setOutputStreamImpl
Serializer();
Creates the Serializer.
~Serializer();
Destroys the Serializer.
void pushAttribute(
const std::string & ns,
const std::string & attrName
);
void resetId(
int newId = 0
);
void serialize(
const std::string & name,
Poco::Int8 val
);
Serializes an Int8.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::UInt8 val
);
Serializes an UInt8.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::Int16 val
);
Serializes an Int16.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::UInt16 val
);
Serializes an UInt16.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::Int32 val
);
Serializes an Int32.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::UInt32 val
);
Serializes an UInt32.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
long val
);
Serializes a long.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
unsigned long val
);
Serializes an unsigned long.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
float val
);
Serializes a float.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
double val
);
Serializes a double.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
bool val
);
Serializes a boolean.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
char val
);
Serializes a single character.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
const char * pVal
);
Serializes a const char ptr.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
const std::string & val
);
Serializes a string.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
const std::vector < char > & val
);
Serializes a byte vector.
See also: Poco::Remoting::Serializer::serialize()
void serializeComplexTypeEnd(
const std::string & name
);
Invoked after all members of a complex data type were serialized.
void serializeComplexTypeStart(
const std::string & name
);
Invoked before a complex data type is serialized.
void serializeError(
std::ostream & out,
const std::string & methodName,
Poco::Exception & e
);
Serializes an exception.
void serializeNullElement(
const std::string & name
);
Serializes a null element.
void serializeReplyEnd(
const std::string & methodName
);
Indicates the end of method serialization.
void serializeReplyStart(
const std::string & methodName
);
Indicates the begin of method serialization reply.
void serializeRequestEnd(
const std::string & methodName
);
Indicates the end of method serialization.
void serializeRequestStart(
const std::string & methodName
);
Indicates the begin of method serialization.
void serializeVectorBegin(
const std::string & name,
Poco::UInt32 numElems
);
Called before the first element of a vector is serialized.
void serializeVectorEnd(
const std::string & name
);
Called after the last element of a vector was serialized.
void resetImpl();
See also: Poco::Remoting::Serializer::resetImpl()
void setOutputStreamImpl(
std::ostream & out
);
static const std::string JSON_CODE;
static const std::string JSON_ERROR;
static const std::string JSON_FALSE;
static const std::string JSON_ID;
static const std::string JSON_JSONRPC;
static const std::string JSON_MESSAGE;
static const std::string JSON_METHOD;
static const std::string JSON_NULL;
static const std::string JSON_PARAMS;
static const std::string JSON_RESULT;
static const std::string JSON_TRUE;
static const std::string JSON_VERSION;