tobicore  7.0.0
All Classes Functions Variables Typedefs Enumerator Friends Groups Pages
IDSerializerRapid Class Reference

TOBI iD concrete XML serializer. More...

#include <tobiid/IDSerializerRapid.hpp>

+ Inheritance diagram for IDSerializerRapid:
+ Collaboration diagram for IDSerializerRapid:

Public Member Functions

 IDSerializerRapid (IDMessage *const message=NULL, const bool indent=false, const bool declaration=false)
 Constructor.
virtual ~IDSerializerRapid (void)
 Destructor.
virtual std::string * Serialize (std::string *buffer)
 Serializes to std::string.
virtual std::string * Deserialize (std::string *const buffer)
 Deserializes from std::string.
- Public Member Functions inherited from IDSerializer
 IDSerializer (void)
 Constructor.
 IDSerializer (IDMessage *const message)
 Constructor.
virtual ~IDSerializer (void)
 Destructor.
IDSerializerSetMessage (IDMessage *const message)
 Sets the associated IDMessage.
virtual std::string SerializeCp (void)
 Serializes to std::string.
virtual void DeserializeCp (const std::string &buffer)
 Deserializes from std::string.
virtual char * SerializeCh (char *buffer, const unsigned int bsize)
 Serializes to a char array.
virtual const char * DeserializeCh (const char *buffer, const unsigned int bsize)
 Deserializes from a char array.

Protected Attributes

bool _indent
 Indentation flag.
bool _declaration
 Declaration flag.

Additional Inherited Members

- Public Attributes inherited from IDSerializer
IDMessagemessage
 Pointer to the associated IDMessage.

Detailed Description

TOBI iD concrete XML serializer.

Serializes an IDMessage to XML using RapidXML.

See Also
IDSerializer
Examples:
idserializerrapid.cpp, and tpidclient.cpp.

Definition at line 33 of file IDSerializerRapid.hpp.

Constructor & Destructor Documentation

IDSerializerRapid::IDSerializerRapid ( IDMessage *const  message = NULL,
const bool  indent = false,
const bool  declaration = false 
)

Constructor.

  • message Pointer to an IDMessage instance
  • indent If true, the XML output will be indented
  • declaration If true, the XML output will contain an XML declaration

Definition at line 35 of file IDSerializerRapid (In Konflikt stehende Kopie von Workstation 2012-10-21).cpp.

Member Function Documentation

std::string * IDSerializerRapid::Deserialize ( std::string *const  buffer)
virtual

Deserializes from std::string.

  • buffer Pointer to the std::string that contains the result of a serialization and that will be used for the deserialization
    Returns
    A pointer to the buffer instance

Implements IDSerializer.

Examples:
idserializerrapid.cpp.

Definition at line 107 of file IDSerializerRapid (In Konflikt stehende Kopie von Workstation 2012-10-21).cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string * IDSerializerRapid::Serialize ( std::string *  buffer)
virtual

Serializes to std::string.

  • buffer Pointer to the std::string that will contain the result of the serialization
    Returns
    Pointer to the buffer instance

Implements IDSerializer.

Examples:
idserializerrapid.cpp.

Definition at line 49 of file IDSerializerRapid (In Konflikt stehende Kopie von Workstation 2012-10-21).cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: