Ignore:
Timestamp:
06/22/10 10:30:33 (14 years ago)
Author:
hozdoba
Message:

Quelques changements de portée essentiellement. Modificiations mineures.

File:
1 edited

Legend:

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

    r111 r113  
    3737      public : 
    3838 
    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         } 
    4144 
    42          virtual bool _hasValue() const { return hasValue; } 
     45         virtual bool _hasValue() const { return (hasValue); } 
     46 
     47      protected : 
    4348 
    4449         Attribut(void) : hasValue(false) {} ; 
     
    6469         } 
    6570 
    66          operator Ctype() const 
    67          { 
    68             if (!hasValue) throw XMLIOUndefinedValueException("L'attribut \"" + this->getName() + "\" est invalide !"); 
    69             return value ; 
    70          } 
    71  
    7271         virtual void assignValue(const BaseAttribut* _ba) 
    7372         { value = ((Attribut*)_ba) -> value; hasValue = true; } 
     
    8584         } 
    8685 
     86      private : 
     87 
     88         bool hasValue ; 
     89         Ctype value ; 
     90 
    8791   }; // class Attribut 
    8892}; // namespace XMLIOSERVER 
Note: See TracChangeset for help on using the changeset viewer.