File Information
Library: UPnP/SOAP
Package: SOAP
Header: Poco/UPnP/SOAP/Serializer.h
Description
The Serializer for the UPnP SOAP Transport.
This class can serialize SOAP requests and responses, as well as XML schema based complex types.
Internally, the Serializer uses a Poco::XML::XMLWriter to immediately write XML to the stream, without first building an internal representation of the XML (such as a DOM document).
Inheritance
Direct Base Classes: Poco::RemotingNG::Serializer
All Base Classes: Poco::RemotingNG::Serializer, Poco::RemotingNG::SerializerBase
Member Summary
Member Functions: resetImpl, serialize, serializeData, 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
Constructors
Serializer
Serializer();
Creates the Serializer.
Destructor
~Serializer
~Serializer();
Destroys the Serializer.
Member Functions
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
);
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
);
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();
serializeData
void serializeData(
const std::string & name,
const std::string & value
);
setupImpl
void setupImpl(
std::ostream & ostr
);
Variables
EMPTY_ATTRIBUTES
static const XML::AttributesImpl EMPTY_ATTRIBUTES;
EMPTY_STRING
static const XML::XMLString EMPTY_STRING;
SOAP_ACTION_PREFIX
static const XML::XMLString SOAP_ACTION_PREFIX;
SOAP_BODY
static const XML::XMLString SOAP_BODY;
SOAP_ENCODING
static const XML::XMLString SOAP_ENCODING;
SOAP_ENCODING_STYLE
static const XML::XMLString SOAP_ENCODING_STYLE;
SOAP_ENVELOPE
static const XML::XMLString SOAP_ENVELOPE;
SOAP_ENVELOPE_PREFIX
static const XML::XMLString SOAP_ENVELOPE_PREFIX;
SOAP_FALSE
static const XML::XMLString SOAP_FALSE;
SOAP_FAULT
static const XML::XMLString SOAP_FAULT;
SOAP_FAULTCODE
static const XML::XMLString SOAP_FAULTCODE;
SOAP_FAULTCODE_CLIENT
static const XML::XMLString SOAP_FAULTCODE_CLIENT;
SOAP_FAULTDETAIL
static const XML::XMLString SOAP_FAULTDETAIL;
SOAP_FAULTSTRING
static const XML::XMLString SOAP_FAULTSTRING;
SOAP_NAMESPACE
static const XML::XMLString SOAP_NAMESPACE;
SOAP_TRUE
static const XML::XMLString SOAP_TRUE;
UPNP_ERROR
static const XML::XMLString UPNP_ERROR;
UPNP_ERROR_CODE
static const XML::XMLString UPNP_ERROR_CODE;
UPNP_ERROR_DESCRIPTION
static const XML::XMLString UPNP_ERROR_DESCRIPTION;
UPNP_ERROR_NAMESPACE
static const XML::XMLString UPNP_ERROR_NAMESPACE;