Ignore:
Timestamp:
05/30/21 23:30:01 (3 years ago)
Author:
yushan
Message:

temporal commit for merging graph into XIOS_coupling

File:
1 edited

Legend:

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

    r2019 r2137  
    2424         this->setValue(value); 
    2525      } 
    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*/ 
    2736      template <class T> 
    2837         CAttributeTemplate<T>::CAttributeTemplate(const StdString & id, 
     
    4251         umap.insert(umap.end(), std::make_pair(id, this)); 
    4352      } 
    44  
     53/* 
     54      template <class T> 
     55      CAttributeTemplate<T>::~CAttributeTemplate(void) 
     56      { 
     57//         this->CType<T>::reset() ; 
     58//         this->clear(); 
     59      } 
     60*/ 
    4561      ///-------------------------------------------------------------- 
    4662      template <class T> 
     
    6985      { 
    7086        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*/ 
    74112 
    75113      template <class T> 
     
    77115      { 
    78116         CType<T>::set(value) ; 
     117//         SuperClass::setValue<T>(value); 
    79118      } 
    80119 
     
    140179      { 
    141180         this->setValue(value); 
     181//         return (this->getValue()); 
    142182         return *this; 
    143183      } 
Note: See TracChangeset for help on using the changeset viewer.