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

TOBI iC concrete XML serializer. More...

#include <tobiic/ICSerializerRapid.hpp>

+ Inheritance diagram for ICSerializerRapid:
+ Collaboration diagram for ICSerializerRapid:

Public Member Functions

 ICSerializerRapid (ICMessage *const message=NULL, const bool indent=false, const bool declaration=false)
 Constructor.
virtual ~ICSerializerRapid (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 ICSerializer
 ICSerializer (void)
 Constructor.
 ICSerializer (ICMessage *const message)
 Constructor.
virtual ~ICSerializer (void)
 Destructor.
ICSerializerSetMessage (ICMessage *const message)
 Sets the associated ICMessage.
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 ICSerializer
ICMessagemessage
 Pointer to the associated ICMessage.

Detailed Description

TOBI iC concrete XML serializer.

Serializes an ICMessage to XML using RapidXML.

See Also
ICSerializer
Examples:
icexample.cpp, icserializerrapid.cpp, tpicclient.cpp, and tpicserver.cpp.

Definition at line 33 of file ICSerializerRapid.hpp.

Constructor & Destructor Documentation

ICSerializerRapid::ICSerializerRapid ( ICMessage *const  message = NULL,
const bool  indent = false,
const bool  declaration = false 
)

Constructor.

  • message Pointer to an ICMessage 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 ICSerializerRapid.cpp.

Member Function Documentation

std::string * ICSerializerRapid::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 ICSerializer.

Examples:
icexample.cpp.

Definition at line 171 of file ICSerializerRapid.cpp.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string * ICSerializerRapid::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 ICSerializer.

Examples:
icexample.cpp, and icserializerrapid.cpp.

Definition at line 45 of file ICSerializerRapid.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: