SGE::CL_XML_OBJ Class Reference

CL_XML_OBJ is the base class that must be used for any object that use XML. If you intend to use an object into a CL_XML_MNGR, you should use CL_XML_BASE_OBJ instead. \
Note:
There may be some situation where the creation of CL_XML_OBJ may be tricky. Example, I have a CL_XML_MNGR(Mngr) that create CL_XML_OBJ(Obj) from a XML array of tag.

The Mngr is not supposed to know how to read the XML values from the Obj it manages, but the Obj knows it, of course. The probleme is that we want an Obj that is not yet created (cause we may not know the type) to load it self from the XML stream.

More...

#include <xml.h>

Inheritance diagram for SGE::CL_XML_OBJ:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CL_XML_OBJ (const std::string _TagName)
 Constructor.
 ~CL_XML_OBJ ()
 Destructor.
const std::string & GetMainTag () const
 Return the object XML tag value : XMLTagName.
void SetMainTag (const std::string &_newTag)
 Set the object XML tag value : XMLTagName.

Detailed Description

CL_XML_OBJ is the base class that must be used for any object that use XML. If you intend to use an object into a CL_XML_MNGR, you should use CL_XML_BASE_OBJ instead. \
Note:
There may be some situation where the creation of CL_XML_OBJ may be tricky. Example, I have a CL_XML_MNGR(Mngr) that create CL_XML_OBJ(Obj) from a XML array of tag.

The Mngr is not supposed to know how to read the XML values from the Obj it manages, but the Obj knows it, of course. The probleme is that we want an Obj that is not yet created (cause we may not know the type) to load it self from the XML stream.

          //A XML element of an CL_XML_OBJ may looks like :
          <XMLTagName>
Author:
Yannouchka


Constructor & Destructor Documentation

SGE::CL_XML_OBJ::CL_XML_OBJ const std::string  _TagName  ) 
 

Constructor.

Parameters:
_TagName => string of the XML tag name that will be associated to this object.
See also:
SetMainTag()


Member Function Documentation

void SGE::CL_XML_OBJ::SetMainTag const std::string &  _newTag  ) 
 

Set the object XML tag value : XMLTagName.

Note:
Rise exception is _newTag == "".


The documentation for this class was generated from the following files:
Generated on Mon Mar 19 23:15:17 2007 for SugoiTools by  doxygen 1.4.6-NO