File Information
Library: UPnP/GENA
Package: GENA
Header: Poco/UPnP/GENA/Serializer.h
Description
The Serializer for the UPnP GENA Transport.
This class can serialize GENA event messages (XML property sets).
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_STRING
static const XML::XMLString EMPTY_STRING;
UPNP_EVENT_NAMESPACE
static const XML::XMLString UPNP_EVENT_NAMESPACE;
UPNP_PROPERTY
static const XML::XMLString UPNP_PROPERTY;
UPNP_PROPERTYSET
static const XML::XMLString UPNP_PROPERTYSET;