Changeset 138 for XMLIO_V2/dev/dev_rv/src/XMLIO/attribut.hpp
- Timestamp:
- 12/10/10 16:04:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/attribut.hpp
r137 r138 5 5 6 6 using XMLIOSERVER::BaseAttribut; 7 using XMLIOSERVER::XMLIOUndefinedValueException;8 7 using std::ostringstream; 9 8 using namespace blitz ; … … 38 37 { 39 38 if (!_hasValue) 40 throw XMLIOUndefinedValueException("L'attribut \"" + this->getName() + "\" est invalide !");39 XMLIOError("L'attribut \"" + this->getName() + "\" est invalide !"); 41 40 return (value) ; 42 41 } 43 42 44 43 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 45 50 { 46 51 //if (!_hasValue) return(NULL); // REVOIR: 4 h de debug à cause de ça !!! … … 81 86 virtual void getValue(Ctype & value_) const 82 87 { 83 if (!_hasValue) throw XMLIOUndefinedValueException("L'attribut \"" + this->getName() + "\" est invalide !");88 if (!_hasValue) XMLIOError("L'attribut \"" + this->getName() + "\" est invalide !"); 84 89 value_ = value ; 85 90 } … … 160 165 iss >> c >> d; 161 166 if (c != ',') 162 throw XMLIOUndefinedValueException("Le tableau de valeur est mal défini !");167 XMLIOError("Le tableau de valeur est mal défini !"); 163 168 vect.push_back(d); 164 169 } … … 171 176 iss >> size >> c >> d; 172 177 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 !"); 174 179 valsup = d; 175 180 } … … 179 184 break; 180 185 default : 181 throw XMLIOUndefinedValueException("Le tableau de valeur est mal défini !");186 XMLIOError("Le tableau de valeur est mal défini !"); 182 187 } 183 188 }
Note: See TracChangeset
for help on using the changeset viewer.