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/base_attribut.hpp

    r104 r108  
    1313   { 
    1414      public: 
    15       
    16          virtual const char * getName(void) const = 0  ;         
     15 
     16         virtual string getName(void) const = 0  ; 
    1717         virtual ostream & print(ostream& o) const = 0  ; 
    18       
     18 
    1919         friend ostream& operator <<(ostream& o,const BaseAttribut& Attr) 
    2020         {return Attr.print(o) ; } 
    21           
     21 
    2222         virtual void assignValue(const BaseAttribut*) = 0; 
    23       
    24          virtual const char * getId(void) {return getName();} ; 
     23 
     24         virtual string getId(void) const {return getName();} ; 
    2525         bool hasId(void){return (true);} 
    2626 
    2727         virtual void setFromString(const std::string str) = 0; 
    28       
     28 
    2929#define  SETTER_AND_GETTER(TYPE) \ 
    3030         virtual void setValue(const TYPE & value)          { error_set() ; }\ 
     
    3636         virtual void getValue(Array<TYPE,2>& value) const  { error_get() ; }\ 
    3737         virtual void getValue(Array<TYPE,3>& value) const  { error_get() ; } 
    38           
     38 
    3939         SETTER_AND_GETTER(int) 
    4040         SETTER_AND_GETTER(bool) 
     
    4242         SETTER_AND_GETTER(char) 
    4343         SETTER_AND_GETTER(string) 
    44        
     44 
    4545#undef SETTER_AND_GETTER 
    4646 
    47           
    48          virtual bool _hasValue() = 0; 
     47 
     48         virtual bool _hasValue() const = 0; 
    4949 
    5050         static void error_set(void) 
     
    5353         static void error_get(void) 
    5454         { throw XMLIOIncompatibleTypeException("BaseAttribut::set<type> >Getting value type is incompatible with attribut type"); } 
    55       
     55 
    5656   }; //class BaseAttribut 
    5757} // namespace XMLIOSERVER 
    5858 
    5959#endif //__BASE_ATTRIBUT__ 
    60    
     60 
Note: See TracChangeset for help on using the changeset viewer.