Changeset 115 for XMLIO_V2/dev/dev_rv/src/XMLIO/object_template.hpp
- Timestamp:
- 07/16/10 14:50:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/object_template.hpp
r114 r115 52 52 std::set<T*> sset; 53 53 T* refer = (T*)this; 54 // On remonte le fil des héritages par référence (Boucle infinie).54 // On remonte le fil des héritages par référence. 55 55 while((refer = refer->getReference()) != NULL) 56 56 { … … 76 76 } 77 77 78 static T& CreateObject(const string _id) throw (XMLIOUndefinedValueException)78 static T& CreateObject(const string& _id) throw (XMLIOUndefinedValueException) 79 79 { 80 80 // Si l'identifiant est répertorié, on retourne l'élément existant. … … 95 95 } 96 96 97 static T& GetObject(const string _id) throw (XMLIOUndefinedValueException)97 static T& GetObject(const string& _id) throw (XMLIOUndefinedValueException) 98 98 { return (*ObjectTemplate<T>::AllListObj[CurrContext][_id]); } 99 99 100 static bool HasObject(const string _id)100 static bool HasObject(const string& _id) 101 101 { 102 102 if(ObjectTemplate<T>::AllListObj.find(CurrContext) == ObjectTemplate<T>::AllListObj.end()) return false;
Note: See TracChangeset
for help on using the changeset viewer.