Changeset 104 for XMLIO_V2/dev/dev_rv/src/XMLIO/xmlio_object_template.hpp
- Timestamp:
- 06/07/10 18:34:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/xmlio_object_template.hpp
r98 r104 38 38 { return (*ObjectTemplate<T>::AllListObj[CurrContext][_id]); } 39 39 40 static bool HasObject(const string _id)// << Bug 41 { return (ObjectTemplate<T>::AllListObj[CurrContext].hasMappedValue(_id)); } 40 static bool HasObject(const string _id) 41 { 42 if(ObjectTemplate<T>::AllListObj.find(CurrContext) == ObjectTemplate<T>::AllListObj.end()) return false; 43 return (ObjectTemplate<T>::AllListObj[CurrContext].hasMappedValue(_id)); 44 } 42 45 43 46 static const StrHashMap<T>& GetCurrentListObject(void) { return (AllListObj[CurrContext]); } … … 47 50 48 51 static string& GetCurrentContextId(void) { return (CurrContext); } 49 50 virtual const char* getName(void) const {return ("ObjectTemplate"); }51 52 52 53 virtual ~ObjectTemplate(void)
Note: See TracChangeset
for help on using the changeset viewer.