Ignore:
Timestamp:
01/23/19 10:31:44 (5 years ago)
Author:
yushan
Message:

dev on ADA. add flag switch _usingEP/_usingMPI

File:
1 edited

Legend:

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

    r1545 r1642  
    8080      } 
    8181 
    82       template <class T> 
    83       T CAttributeTemplate<T>::getValue(void) const 
     82 
     83      template <class T> 
     84         T CAttributeTemplate<T>::getValue(void) const 
    8485      { 
    8586        return CType<T>::get() ; 
    86       } 
    87  
    88  
    89       template <class T> 
    90       void CAttributeTemplate<T>::setValue(const T & value) 
     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*/ 
     112 
     113      template <class T> 
     114         void CAttributeTemplate<T>::setValue(const T & value) 
    91115      { 
    92116         CType<T>::set(value) ; 
     
    175199        CType<T>::fromString(str) ; 
    176200      } 
     201 
     202      //--------------------------------------------------------------- 
     203 
     204      template <class T> 
     205         StdString CAttributeTemplate<T>::_dump(void) const 
     206      { 
     207         StdOStringStream oss; 
     208         if (!CType<T>::isEmpty() && this->hasId()) 
     209            oss << this->getName() << "=\"" << CType<T>::dump() << "\""; 
     210         return (oss.str()); 
     211      } 
     212 
    177213 
    178214      //--------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.