SGE::CL_XML_MNGR< T, P > Class Template Reference

CL_TEMPLATE_OBJECT_MANAGER with XML support. XML format is defined as following. More...

#include <cl_xml_mngr.h>

Inheritance diagram for SGE::CL_XML_MNGR< T, P >:

Inheritance graph
[legend]
Collaboration diagram for SGE::CL_XML_MNGR< T, P >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T TplObj
typedef TplObj * TplObjHdle
typedef CL_XML_MNGR< T, P > TplManager
typedef TplManager::iterator iterator
 Typedef of the corresponding std::map iterator.

Public Member Functions

 CL_XML_MNGR (TplManager *_RemoteManager, const std::string &_TagName, const std::string &_SubTagName, const std::string &_SubTagID)
 Default constructor.
 ~CL_XML_MNGR ()
 Default destructor.
const std::string & GetSubTagName () const
const std::string & GetSubTagID () const
void SetSubTagName (const std::string _Name)
 Set SubTagName to _Name.
void SetSubTagID (const std::string _ID)
 Set SubTagID to _ID.

Detailed Description

template<class T, typename P = std::string>
class SGE::CL_XML_MNGR< T, P >

CL_TEMPLATE_OBJECT_MANAGER with XML support. XML format is defined as following.

<MainTagName>
          <SubTagName SubTagID=""/>
          <SubTagName SubTagID=""/>
          <SubTagName SubTagID=""/>
          <SubTagName SubTagID=""/>
</MainTagName>
Attention:
The T objects must be unherited from CL_XML_BASE_OBJ class.
Author:
Yannouchka


Constructor & Destructor Documentation

template<class T, typename P = std::string>
SGE::CL_XML_MNGR< T, P >::CL_XML_MNGR TplManager _RemoteManager,
const std::string &  _TagName,
const std::string &  _SubTagName,
const std::string &  _SubTagID
[inline]
 

Default constructor.

Parameters:
_RemoteManager => If NULL, all objects are stored localy, else only pointers to objects are store locally, real objects are stored in the _RemoteManager.
_TagName => Tag name of the manager.
_SubTagName => Default tag name of the objects managed.
_SubTagID => Name of the field used for ID. Usually == XML_TAG_VAL_ID


Member Function Documentation

template<class T, typename P = std::string>
const std::string& SGE::CL_XML_MNGR< T, P >::GetSubTagID  )  const [inline]
 

Returns:
SubTagID.

template<class T, typename P = std::string>
const std::string& SGE::CL_XML_MNGR< T, P >::GetSubTagName  )  const [inline]
 

Returns:
SubTagName.


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