Changeset 2137 for XIOS/dev/dev_trunk_graph/src/attribute_template_impl.hpp
- Timestamp:
- 05/30/21 23:30:01 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_graph/src/attribute_template_impl.hpp
r2019 r2137 24 24 this->setValue(value); 25 25 } 26 26 /* 27 template <class T> 28 CAttributeTemplate<T>::CAttributeTemplate(const CAttribute & attribut) 29 throw (CException) 30 : CAttribute(attribut) 31 { 32 if (!attribut.isEmpty() && !attribut.isType<T>()) 33 ERROR("CAttributeTemplate", << "Invalid instantiation !"); 34 } 35 */ 27 36 template <class T> 28 37 CAttributeTemplate<T>::CAttributeTemplate(const StdString & id, … … 42 51 umap.insert(umap.end(), std::make_pair(id, this)); 43 52 } 44 53 /* 54 template <class T> 55 CAttributeTemplate<T>::~CAttributeTemplate(void) 56 { 57 // this->CType<T>::reset() ; 58 // this->clear(); 59 } 60 */ 45 61 ///-------------------------------------------------------------- 46 62 template <class T> … … 69 85 { 70 86 return CType<T>::get() ; 71 } 72 73 87 88 /* 89 if (SuperClass::isEmpty()) 90 { 91 ERROR("T CAttributeTemplate<T>::getValue(void) const", 92 << "[ id = " << this->getId() << "]" 93 << " L'attribut est requis mais n'est pas défini !"); 94 } 95 return (SuperClass::getValue<T>()); 96 */ 97 } 98 99 /* 100 template <class T> 101 T* CAttributeTemplate<T>::getRef(void) 102 { 103 if (SuperClass::isEmpty()) 104 { 105 ERROR("T CAttributeTemplate<T>::getValue(void) const", 106 << "[ id = " << this->getId() << "]" 107 << " L'attribut est requis mais n'est pas défini !"); 108 } 109 return (SuperClass::getRef<T>()); 110 } 111 */ 74 112 75 113 template <class T> … … 77 115 { 78 116 CType<T>::set(value) ; 117 // SuperClass::setValue<T>(value); 79 118 } 80 119 … … 140 179 { 141 180 this->setValue(value); 181 // return (this->getValue()); 142 182 return *this; 143 183 }
Note: See TracChangeset
for help on using the changeset viewer.