Ignore:
Timestamp:
12/10/10 16:04:54 (14 years ago)
Author:
hozdoba
Message:

Mise à jour

File:
1 edited

Legend:

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

    r137 r138  
    55 
    66using XMLIOSERVER::BaseAttribut; 
    7 using XMLIOSERVER::XMLIOUndefinedValueException; 
    87using std::ostringstream; 
    98using namespace blitz ; 
     
    3837         { 
    3938            if (!_hasValue) 
    40                throw XMLIOUndefinedValueException("L'attribut \"" + this->getName() + "\" est invalide !"); 
     39               XMLIOError("L'attribut \"" + this->getName() + "\" est invalide !"); 
    4140            return (value) ; 
    4241         } 
    4342 
    4443         Ctype* getValue(void) 
     44         { 
     45            //if (!_hasValue) return(NULL); // REVOIR: 4 h de debug à cause de ça !!! 
     46            return (&value); 
     47         } 
     48 
     49         const Ctype * getValueConst(void) const 
    4550         { 
    4651            //if (!_hasValue) return(NULL); // REVOIR: 4 h de debug à cause de ça !!! 
     
    8186         virtual void getValue(Ctype & value_) const 
    8287         { 
    83             if (!_hasValue) throw XMLIOUndefinedValueException("L'attribut \"" + this->getName() + "\" est invalide !"); 
     88            if (!_hasValue) XMLIOError("L'attribut \"" + this->getName() + "\" est invalide !"); 
    8489            value_ = value ; 
    8590         } 
     
    160165                  iss >> c >> d; 
    161166                  if (c != ',') 
    162                      throw XMLIOUndefinedValueException("Le tableau de valeur est mal défini !"); 
     167                     XMLIOError("Le tableau de valeur est mal défini !"); 
    163168                  vect.push_back(d); 
    164169               } 
     
    171176                  iss >> size >> c >> d; 
    172177                  if ((c != ')') || (size <= 0)) 
    173                      throw XMLIOUndefinedValueException("Le tableau de valeur est mal défini !"); 
     178                     XMLIOError("Le tableau de valeur est mal défini !"); 
    174179                  valsup = d; 
    175180               } 
     
    179184               break; 
    180185            default : 
    181                throw XMLIOUndefinedValueException("Le tableau de valeur est mal défini !"); 
     186               XMLIOError("Le tableau de valeur est mal défini !"); 
    182187         } 
    183188      } 
Note: See TracChangeset for help on using the changeset viewer.