Library: RemotingNG/JSONRPC
Package: JSONRPC
Header: Poco/RemotingNG/JSONRPC/Serializer.h
The Serializer implementation for the JSONRPC Transport.
Direct Base Classes: Poco::RemotingNG::Serializer
All Base Classes: Poco::RemotingNG::Serializer, Poco::RemotingNG::SerializerBase
Member Functions: resetId, resetImpl, serialize, serializeFaultMessage, serializeMessageBegin, serializeMessageEnd, serializeNullableBegin, serializeNullableEnd, serializeSequenceBegin, serializeSequenceEnd, serializeStructBegin, serializeStructEnd, 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
Serializer();
Creates the Serializer.
~Serializer();
Destroys the Serializer.
void resetId(
int newId = 0
);
void serialize(
const std::string & name,
Poco::Int8 val
);
void serialize(
const std::string & name,
Poco::UInt8 val
);
void serialize(
const std::string & name,
Poco::Int16 val
);
void serialize(
const std::string & name,
Poco::UInt16 val
);
void serialize(
const std::string & name,
Poco::Int32 val
);
void serialize(
const std::string & name,
Poco::UInt32 val
);
void serialize(
const std::string & name,
long val
);
void serialize(
const std::string & name,
unsigned long val
);
void serialize(
const std::string & name,
float val
);
void serialize(
const std::string & name,
double val
);
void serialize(
const std::string & name,
bool val
);
void serialize(
const std::string & name,
char val
);
void serialize(
const std::string & name,
const char * pVal
);
void serialize(
const std::string & name,
const std::string & val
);
void serialize(
const std::string & name,
const std::vector < char > & val
);
void serializeFaultMessage(
const std::string & name,
Poco::Exception & exc
);
void serializeMessageBegin(
const std::string & name,
Poco::RemotingNG::SerializerBase::MessageType type
);
void serializeMessageEnd(
const std::string & name,
Poco::RemotingNG::SerializerBase::MessageType type
);
void serializeNullableBegin(
const std::string & name,
bool isNull
);
void serializeNullableEnd(
const std::string & name
);
void serializeSequenceBegin(
const std::string & name,
Poco::UInt32 numElems
);
void serializeSequenceEnd(
const std::string & name
);
void serializeStructBegin(
const std::string & name
);
void serializeStructEnd(
const std::string & name
);
void resetImpl();
void setupImpl(
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;