Ignore:
Timestamp:
10/07/10 10:29:38 (14 years ago)
Author:
hozdoba
Message:

Amélioration de quelques portions de code.
Ajout de contructeurs par copie.

File:
1 edited

Legend:

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

    r124 r126  
    1212      protected : 
    1313 
    14          AttributRegistrar():attrList() 
    15          {/* Ne rien faire de plus */} 
     14         AttributRegistrar(void) 
     15            : attrList() 
     16         { /* Ne rien faire de plus */ } 
    1617 
    17          void RegisterAttribut(BaseAttribut* attribut){ attrList.addObject(attribut); } 
     18         AttributRegistrar(const AttributRegistrar& _ar) 
     19            : attrList(_ar.attrList) 
     20         { /* Ne rien faire de plus */ } 
     21 
     22         void RegisterAttribut(BaseAttribut* const attribut){ attrList.addObject(attribut); } 
     23 
    1824         const StrHashMap<BaseAttribut>& getAttributList(void) const { return (attrList); } 
    19          size_t getNbAttributes() const {return (attrList.getSize()); } 
     25 
     26         size_t getNbAttributes(void) const { return (attrList.getSize()); } 
     27 
    2028         bool hasAttribut(const string& _id) const { return (attrList.hasMappedValue(_id)); } 
     29 
     30         const StrHashMap<BaseAttribut>& getAttrList(void) const { return (attrList); } 
    2131 
    2232         BaseAttribut* getAttribut(const string& _id) throw (XMLIOUndefinedValueException) { return (attrList[_id]); } 
     
    5565         { 
    5666            if (hasAttribut(att_name)) getAttribut(att_name)->setFromString(value); 
    57             else throw XMLIOUndefinedValueException("Impossible de trouver l'attribut nommé \"" + att_name +"\" dans la liste des attributs enregistrés !"); 
     67            else throw XMLIOUndefinedValueException("Impossible de trouver l'attribut nommé \"" 
     68               + att_name +"\" dans la liste des attributs enregistrés !"); 
    5869         } 
    5970 
Note: See TracChangeset for help on using the changeset viewer.