Ignore:
Timestamp:
09/08/10 15:02:31 (14 years ago)
Author:
hozdoba
Message:

Mise à jour intermédiaire ...
A venir : commit d'une version stable intégrant l'écriture de fichiers NetCDF4.
(en cours de finalisation actuellement)

File:
1 edited

Legend:

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

    r114 r120  
    11#ifndef __XMLIO_CONTAINER__ 
    22#define __XMLIO_CONTAINER__ 
    3  
    4 // Classes utilisées issues de Poco 
    5 using Poco::HashMap; 
    6 using Poco::Hash; 
    73 
    84// Classes utilisées issues de la STL 
     
    128using std::ostream; 
    139 
    14 // Classes XMLIOSERVER 
    15 using XMLIOSERVER::XMLIOUndefinedValueException; 
    16  
    1710namespace XMLIOSERVER 
    1811{ 
    19    template<class Key, class Mapped, class HashFunc = Hash<Key> > 
     12   template<class Key, class Mapped, class HashFunc = Poco::Hash<Key> > 
    2013      class ExHashMap 
    21          : private HashMap<Key, Mapped*, Hash<Key> > 
     14         : private Poco::HashMap<Key, Mapped*, Poco::Hash<Key> > 
    2215   { 
    2316      public : 
    24  
    25          ExHashMap() :  HashMap<Key, Mapped*, Hash<Key> >(), _elemList() 
    26          {/* Ne rien faire de plus */} 
    2717 
    2818         Mapped* operator[] (const Key& kval) throw (XMLIOUndefinedValueException) 
    2919         { 
    3020            if(!hasMappedValue(kval)) 
    31                throw XMLIOUndefinedValueException("Appel de la méthode ExHashMap::operator["+kval+"] invalide."); 
     21               throw XMLIOSERVER::XMLIOUndefinedValueException("Appel de la méthode ExHashMap::operator["+kval+"] invalide."); 
    3222            return (find(kval)->second); 
    3323         } 
     
    4434 
    4535      protected : 
     36 
     37         ExHashMap() :  Poco::HashMap<Key, Mapped*, Poco::Hash<Key> >(), _elemList() 
     38         {/* Ne rien faire de plus */} 
    4639 
    4740         bool addValue(const Key& kval, Mapped* element) 
     
    7770   template<class Mapped> 
    7871      class StrHashMap 
    79          : public ExHashMap<string, Mapped, Hash<string> > 
     72         : public ExHashMap<string, Mapped, Poco::Hash<string> > 
    8073   { 
    8174      public : 
    8275 
    83          StrHashMap() :  ExHashMap<string, Mapped, Hash<string> >() 
     76         StrHashMap() :  ExHashMap<string, Mapped, Poco::Hash<string> >() 
    8477         {/* Ne rien faire de plus */} 
    8578 
    8679         bool addObject(Mapped* element) 
    87          { if(element->hasId()) return(addValue(element->getId(), element));   return(addValue(element)); } 
     80         { if(element->hasId()) return(addValue(element->getId(), element)); return(addValue(element)); } 
    8881 
    8982         bool removeObject(const string& kval) 
    9083         { 
    91             if(!ExHashMap<string, Mapped, Hash<string> >::hasMappedValue(kval)) return (false); 
    92             ExHashMap<string, Mapped, Hash<string> >::removeValue(kval); return (true); 
     84            if(!ExHashMap<string, Mapped, Poco::Hash<string> >::hasMappedValue(kval)) return (false); 
     85            ExHashMap<string, Mapped, Poco::Hash<string> >::removeValue(kval); return (true); 
    9386         } 
    9487 
Note: See TracChangeset for help on using the changeset viewer.