Changeset 108 for XMLIO_V2/dev/dev_rv/src/XMLIO/attribut_registrar.hpp
- Timestamp:
- 06/18/10 14:33:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/attribut_registrar.hpp
r107 r108 52 52 void setSAttribut(const string& att_name, const std::string& value) 53 53 { 54 //std::cout << "Attribut :" << att_name<< ", " << value<< std::endl; 55 56 if (hasAttribut(att_name)) 57 { getAttribut(att_name)->setFromString(value) ; } 58 else 59 { 60 ostringstream oss; 61 oss << "CAttributRegistrar::setAttribut<ValueType>, could not find <<" << att_name <<">> attribut in registred list" <<">>"; 62 throw XMLIOUndefinedValueException(oss.str()); 63 } 54 if (hasAttribut(att_name)) getAttribut(att_name)->setFromString(value); 55 else throw XMLIOUndefinedValueException("Impossible de trouver l'attribut nommé \"" + att_name +"\" dans la liste des attributs enregistrés !"); 64 56 } 65 57
Note: See TracChangeset
for help on using the changeset viewer.