Ignore:
Timestamp:
06/18/10 14:33:19 (14 years ago)
Author:
hozdoba
Message:

Début de prise en charge des références (sans contrÎle ni transmission d'attribut pour le moment).

File:
1 edited

Legend:

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

    r107 r108  
    5252         void setSAttribut(const string& att_name, const std::string& value) 
    5353         { 
    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 !"); 
    6456         } 
    6557 
Note: See TracChangeset for help on using the changeset viewer.