Changeset 369 for XIOS/trunk/src/attribute.hpp
- Timestamp:
- 10/16/12 13:04:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/attribute.hpp
r352 r369 16 16 { 17 17 /// ////////////////////// Déclarations ////////////////////// /// 18 class CAttribute : public CObject, public CBaseType18 class CAttribute : public CObject, public virtual CBaseType 19 19 { 20 20 typedef CObject SuperClass; … … 24 24 /// Constructeurs /// 25 25 explicit CAttribute(const StdString & id); 26 CAttribute(const CAttribute & attribut);27 CAttribute(const CAttribute * const attribut); // Not implemented.26 // CAttribute(const CAttribute & attribut); 27 // CAttribute(const CAttribute * const attribut); // Not implemented. 28 28 29 29 /// Accesseurs /// 30 30 const StdString & getName(void) const; 31 const boost::any & getAnyValue(void) const;32 template <typename T> inline T getValue(void) const;33 template <typename T> inline T* getRef(void);31 // const boost::any & getAnyValue(void) const; 32 // template <typename T> inline T getValue(void) const; 33 // template <typename T> inline T* getRef(void); 34 34 35 /// Mutateurs ///36 template <typename T> inline void setValue(const T & value);37 void setAnyValue(const boost::any & value);38 void clear(void);35 // /// Mutateurs /// 36 // template <typename T> inline void setValue(const T & value); 37 // void setAnyValue(const boost::any & value); 38 // void clear(void); 39 39 40 40 /// Test /// 41 bool isEmpty(void) const;42 template <typename T> inline bool isType(void) const;43 41 // bool isEmpty(void) const; 42 // template <typename T> inline bool isType(void) const; 43 virtual void set(const CAttribute& ) =0 ; 44 44 /// Destructeur /// 45 45 virtual ~CAttribute(void); … … 49 49 virtual void fromString(const StdString & str) = 0; 50 50 51 virtual void toBinary (StdOStream & os) const = 0; 52 virtual void fromBinary(StdIStream & is) = 0; 51 // virtual void toBinary (StdOStream & os) const = 0; 52 // virtual void fromBinary(StdIStream & is) = 0; 53 53 54 virtual void generateCInterface(ostream& oss, const string& className) = 0 ; 54 55 virtual void generateFortran2003Interface(ostream& oss, const string& className) = 0 ; … … 65 66 66 67 /// Constructeurs /// 67 CAttribute(void); // Not implemented.68 // CAttribute(void); // Not implemented. 68 69 69 70 /// Propriété /// 70 boost::any value;71 // boost::any value; 71 72 72 73 }; // class CAttribute 73 74 74 75 /// ////////////////////// Définitions ////////////////////// /// 76 /* 75 77 template <typename T> 76 78 T CAttribute::getValue(void) const … … 96 98 return (this->value.type() == typeid(T)); 97 99 } 98 100 */ 99 101 100 102 CMessage& operator<<(CMessage& msg,CAttribute& type) ; … … 103 105 CBufferOut& operator<<(CBufferOut& buffer,CAttribute& type) ; 104 106 CBufferIn& operator>>(CBufferIn& buffer, CAttribute& type) ; 107 105 108 } 106 109 // namespace xios
Note: See TracChangeset
for help on using the changeset viewer.