Ignore:
Timestamp:
04/13/18 16:25:46 (6 years ago)
Author:
yushan
Message:

Branch EP merged with Dev_cmip6 @r1481

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/attribute_template_impl.hpp

    r1117 r1482  
    6969 
    7070      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 
    7285      { 
    7386        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) 
    10193      { 
    10294         CType<T>::set(value) ; 
Note: See TracChangeset for help on using the changeset viewer.