Changeset 1482 for XIOS/dev/branch_openmp/src/attribute_template_impl.hpp
- Timestamp:
- 04/13/18 16:25:46 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/attribute_template_impl.hpp
r1117 r1482 69 69 70 70 template <class T> 71 T CAttributeTemplate<T>::getValue(void) const 71 void CAttributeTemplate<T>::checkEmpty(void) const 72 { 73 if (CType<T>::empty) 74 { 75 StdString msg("On checking attribute with id="); 76 msg.append(this->getId()); 77 msg.append(" : "); 78 msg.append("data is not initialized\n"); 79 ERROR("template <typename T> void CType<T>::checkEmpty(void) const", << msg); 80 } 81 } 82 83 template <class T> 84 T CAttributeTemplate<T>::getValue(void) const 72 85 { 73 86 return CType<T>::get() ; 74 /* 75 if (SuperClass::isEmpty()) 76 { 77 ERROR("T CAttributeTemplate<T>::getValue(void) const", 78 << "[ id = " << this->getId() << "]" 79 << " L'attribut est requis mais n'est pas défini !"); 80 } 81 return (SuperClass::getValue<T>()); 82 */ 83 } 84 85 /* 86 template <class T> 87 T* CAttributeTemplate<T>::getRef(void) 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::getRef<T>()); 96 } 97 */ 98 99 template <class T> 100 void CAttributeTemplate<T>::setValue(const T & value) 87 } 88 89 90 91 template <class T> 92 void CAttributeTemplate<T>::setValue(const T & value) 101 93 { 102 94 CType<T>::set(value) ;
Note: See TracChangeset
for help on using the changeset viewer.