Changeset 775 for XIOS/trunk/src/attribute_template.hpp
- Timestamp:
- 11/02/15 11:46:25 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/attribute_template.hpp
r591 r775 12 12 #include "buffer_out.hpp" 13 13 #include "type.hpp" 14 14 #include "attribute_public.hpp" 15 15 16 16 namespace xios … … 18 18 /// ////////////////////// Déclarations ////////////////////// /// 19 19 template <class T> 20 class CAttributeTemplate : public CAttribute, public CType<T> 20 class CAttributeTemplate : public CAttribute, public CType<T>, public PublicAttributes 21 21 { 22 22 typedef CAttribute SuperClass; … … 45 45 /// Mutateurs /// 46 46 void setValue(const ValueType & value); 47 47 48 48 void set(const CAttribute& attr) ; 49 49 void set(const CAttributeTemplate& attr) ; … … 54 54 T getInheritedValue(void) const ; 55 55 bool hasInheritedValue(void) const; 56 56 57 57 /// Destructeur /// 58 58 virtual ~CAttributeTemplate(void) { } … … 66 66 // virtual CAttributeTemplate* clone() const {} 67 67 // virtual void toBinary (StdOStream & os) const; 68 // virtual void fromBinary(StdIStream & is); 68 // virtual void fromBinary(StdIStream & is); 69 69 70 virtual bool toBuffer (CBufferOut& buffer) const { return _toBuffer(buffer);} 71 virtual bool fromBuffer(CBufferIn& buffer) { return _fromBuffer(buffer); } 70 virtual bool toBuffer (CBufferOut& buffer) const { return _toBuffer(buffer);} 71 virtual bool fromBuffer(CBufferIn& buffer) { return _fromBuffer(buffer); } 72 72 // virtual size_t size(void) const; 73 73 virtual void generateCInterface(ostream& oss,const string& className) ; … … 83 83 // virtual void generateFortranInterfaceIsDefinedDeclaration(ostream& oss,const string& className) ; 84 84 85 85 86 86 protected : 87 87 … … 93 93 bool _toBuffer (CBufferOut& buffer) const; 94 94 bool _fromBuffer(CBufferIn& buffer) ; 95 95 96 96 CType<T> inheritedValue ; 97 }; // class CAttribute 98 99 97 }; // class CAttribute 98 99 100 100 template <class T> void FromBinary(StdIStream & is, T & obj); 101 101 102 102 } // namespace xios 103 103
Note: See TracChangeset
for help on using the changeset viewer.