Library: Netconf
Package: Netconf
Header: Poco/Netconf/Serializer.h
Generates a Netconf conform serialized version of the data.
Direct Base Classes: Poco::Remoting::Serializer
All Base Classes: Poco::Remoting::Serializer
Member Functions: forceDataWrite, getMsgIdOfLastRequest, popActiveNamespace, pushActiveNamespace, pushAttribute, resetImpl, serialize, serializeComplexTypeEnd, serializeComplexTypeStart, serializeError, serializeNullElement, serializeReplyEnd, serializeReplyStart, serializeRequestEnd, serializeRequestStart, serializeVectorBegin, serializeVectorEnd, setDeserializer, setInfoForReply, setOutputStreamImpl
Inherited Functions: getProperty, hasProperty, popProperty, pushAttribute, pushProperty, reset, resetImpl, serialize, serializeComplexTypeEnd, serializeComplexTypeStart, serializeError, serializeNullElement, serializeReplyEnd, serializeReplyStart, serializeRequestEnd, serializeRequestStart, serializeVectorBegin, serializeVectorEnd, setOutputStream, setOutputStreamImpl
INVALID_MSG_ID = - 1
Serializer();
Creates the Serializer.
~Serializer();
Destroys the Serializer.
void forceDataWrite();
Enforces in reply mode that a <data> entry is written (for null return params).
int getMsgIdOfLastRequest() const;
Returns the msgId of the last request.
void popActiveNamespace();
Removes the last pushed namespace.
void pushActiveNamespace(
const XML::XMLString & nameSpace
);
Netconf requires us to define a namespace for each class we serialize.
void pushAttribute(
const std::string & attrNamespace,
const std::string & attrName
);
Informs the serializer that some data should be written as an attribute
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,
Poco::Int64 val
);
Serializes an Int64.
See also: Poco::Remoting::Serializer::serialize()
void serialize(
const std::string & name,
Poco::UInt64 val
);
Serializes an UInt64.
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 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 name of a vector is serialized.
void serializeVectorEnd(
const std::string & name
);
Called after the last name of a vector was serialized.
void setDeserializer(
Deserializer * pDeser
);
Sets the deserializer.
void setInfoForReply(
const XML::Attributes * pReplyAttr
);
sets the attributes required for reply
void resetImpl();
See also: Poco::Remoting::Serializer::resetImpl()
void setOutputStreamImpl(
std::ostream & out
);
Manually sets the output stream. Required before one can use the serializer. Call reset to remove the outstream.
static const XML::XMLString ATTR_MESSAGE_ID;
static const XML::XMLString ATTR_OPERATION;
static const XML::AttributesImpl EMPTYATTRIBUTES;
static const XML::XMLString EMPTYSTRING;
static const XML::XMLString ERROR_INFO;
static const XML::XMLString ERROR_MESSAGE;
static const XML::XMLString ERROR_SEVERITY;
static const XML::XMLString ERROR_TAG;
static const XML::XMLString ERROR_TYPE;
static const XML::XMLString NAMESPACEURI;
static const XML::XMLString RPC;
static const XML::XMLString RPC_DATA;
static const XML::XMLString RPC_ERROR;
static const XML::XMLString RPC_OK;
static const XML::XMLString RPC_REPLY;
static const XML::XMLString VAL_ERROR;
static const XML::XMLString VAL_FALSE;
static const XML::XMLString VAL_TRUE;