Changeset 113 for XMLIO_V2/dev/dev_rv/src/XMLIO/attribut.hpp
- Timestamp:
- 06/22/10 10:30:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/attribut.hpp
r111 r113 37 37 public : 38 38 39 bool hasValue ; 40 Ctype value ; 39 operator Ctype() const 40 { 41 if (!hasValue) throw XMLIOUndefinedValueException("L'attribut \"" + this->getName() + "\" est invalide !"); 42 return (value) ; 43 } 41 44 42 virtual bool _hasValue() const { return hasValue; } 45 virtual bool _hasValue() const { return (hasValue); } 46 47 protected : 43 48 44 49 Attribut(void) : hasValue(false) {} ; … … 64 69 } 65 70 66 operator Ctype() const67 {68 if (!hasValue) throw XMLIOUndefinedValueException("L'attribut \"" + this->getName() + "\" est invalide !");69 return value ;70 }71 72 71 virtual void assignValue(const BaseAttribut* _ba) 73 72 { value = ((Attribut*)_ba) -> value; hasValue = true; } … … 85 84 } 86 85 86 private : 87 88 bool hasValue ; 89 Ctype value ; 90 87 91 }; // class Attribut 88 92 }; // namespace XMLIOSERVER
Note: See TracChangeset
for help on using the changeset viewer.