Changeset 126 for XMLIO_V2/dev/dev_rv/src/XMLIO/attribut_registrar.hpp
- Timestamp:
- 10/07/10 10:29:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/attribut_registrar.hpp
r124 r126 12 12 protected : 13 13 14 AttributRegistrar():attrList() 15 {/* Ne rien faire de plus */} 14 AttributRegistrar(void) 15 : attrList() 16 { /* Ne rien faire de plus */ } 16 17 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 18 24 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 20 28 bool hasAttribut(const string& _id) const { return (attrList.hasMappedValue(_id)); } 29 30 const StrHashMap<BaseAttribut>& getAttrList(void) const { return (attrList); } 21 31 22 32 BaseAttribut* getAttribut(const string& _id) throw (XMLIOUndefinedValueException) { return (attrList[_id]); } … … 55 65 { 56 66 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 !"); 58 69 } 59 70
Note: See TracChangeset
for help on using the changeset viewer.