File Information
Library: RemotingNG/REST
Package: REST
Header: Poco/RemotingNG/REST/JSONSerializer.h
Description
The JSON Serializer implementation for the REST Transport.
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, serializeNullableBegin, serializeNullableEnd, serializeOptionalBegin, serializeOptionalEnd, 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
Enumerations
State
Constructors
JSONSerializer
JSONSerializer(
std::ostream & stream
);
Creates the JSONSerializer.
Destructor
~JSONSerializer
~JSONSerializer();
Destroys the JSONSerializer.
Member Functions
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
);
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
);
resetImpl
void resetImpl();
setupImpl
void setupImpl(
std::ostream & stream
);
Variables
JSON_CODE
static const std::string JSON_CODE;
JSON_DETAIL
static const std::string JSON_DETAIL;
JSON_ERROR
static const std::string JSON_ERROR;
JSON_FALSE
static const std::string JSON_FALSE;
JSON_NULL
static const std::string JSON_NULL;
JSON_TRUE
static const std::string JSON_TRUE;