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.
#include <xml.h>
Inheritance diagram for SGE::CL_XML_OBJ:
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. |
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>
|
Constructor.
|
|
Set the object XML tag value : XMLTagName.
|