Ignore:
Timestamp:
06/07/10 18:34:17 (14 years ago)
Author:
hozdoba
Message:

Prise en charge de l'héritage descendant.
Travail sur les flux de sortie.
Correction de divers problÚmes.
Ajout d'une macro à BaseAttribut?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/XMLIO/xmlio_object_template.hpp

    r98 r104  
    3838         { return (*ObjectTemplate<T>::AllListObj[CurrContext][_id]); } 
    3939          
    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         } 
    4245          
    4346         static const StrHashMap<T>& GetCurrentListObject(void) { return (AllListObj[CurrContext]); } 
     
    4750          
    4851         static string& GetCurrentContextId(void) { return (CurrContext); }  
    49           
    50          virtual const char* getName(void) const {return ("ObjectTemplate"); } 
    5152          
    5253         virtual ~ObjectTemplate(void) 
Note: See TracChangeset for help on using the changeset viewer.