Ignore:
Timestamp:
01/22/21 12:00:29 (3 years ago)
Author:
yushan
Message:

Graph intermedia commit to a tmp branch

File:
1 edited

Legend:

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

    r1686 r2019  
    1010namespace xios 
    1111{ 
    12   /// ////////////////////// Définitions ////////////////////// /// 
     12  /// ////////////////////// Dfinitions ////////////////////// /// 
    1313  template <class T> 
    1414  CAttributeEnum<T>::CAttributeEnum(const StdString & id) 
     
    149149  } 
    150150 
    151 template <class T> 
    152   StdString CAttributeEnum<T>::_dump4graph(void) const 
     151  template <class T> 
     152  void CAttributeEnum<T>::_fromString(const StdString & str) 
     153  { 
     154    CEnum<T>::fromString(str); 
     155  } 
     156 
     157  template <class T> 
     158  bool CAttributeEnum<T>::_toBuffer (CBufferOut& buffer) const 
     159  { 
     160     return CEnum<T>::toBuffer(buffer); 
     161  } 
     162 
     163  template <class T> 
     164  bool CAttributeEnum<T>::_fromBuffer(CBufferIn& buffer) 
     165  { 
     166    return CEnum<T>::fromBuffer(buffer); 
     167  } 
     168 
     169  template <typename T> 
     170  void CAttributeEnum<T>::generateCInterface(ostream& oss,const string& className) 
     171  { 
     172    CInterface::AttributeCInterface<CEnumBase>(oss, className, this->getName()); 
     173  } 
     174 
     175  template <typename T> 
     176  void CAttributeEnum<T>::generateFortran2003Interface(ostream& oss,const string& className) 
     177  { 
     178    CInterface::AttributeFortran2003Interface<string>(oss, className, this->getName()); 
     179  } 
     180 
     181  template <typename T> 
     182  void CAttributeEnum<T>::generateFortranInterfaceDeclaration_(ostream& oss,const string& className) 
     183  { 
     184    CInterface::AttributeFortranInterfaceDeclaration<string>(oss, className, this->getName()+"_"); 
     185  } 
     186 
     187  template <typename T> 
     188  void CAttributeEnum<T>::generateFortranInterfaceBody_(ostream& oss,const string& className) 
     189  { 
     190    CInterface::AttributeFortranInterfaceBody<string>(oss, className, this->getName()); 
     191  } 
     192 
     193  template <typename T> 
     194  void CAttributeEnum<T>::generateFortranInterfaceDeclaration(ostream& oss,const string& className) 
     195  { 
     196    CInterface::AttributeFortranInterfaceDeclaration<string>(oss, className, this->getName()); 
     197  } 
     198 
     199  template <typename T> 
     200  void CAttributeEnum<T>::generateFortranInterfaceGetDeclaration_(ostream& oss,const string& className) 
     201  { 
     202    CInterface::AttributeFortranInterfaceGetDeclaration<string>(oss, className, this->getName()+"_"); 
     203  } 
     204 
     205  template <typename T> 
     206  void CAttributeEnum<T>::generateFortranInterfaceGetBody_(ostream& oss,const string& className) 
     207  { 
     208    CInterface::AttributeFortranInterfaceGetBody<string>(oss, className, this->getName()); 
     209  } 
     210 
     211  template <typename T> 
     212  void CAttributeEnum<T>::generateFortranInterfaceGetDeclaration(ostream& oss,const string& className) 
     213  { 
     214    CInterface::AttributeFortranInterfaceGetDeclaration<string>(oss, className, this->getName()); 
     215  } 
     216   
     217  template <class T> 
     218  StdString CAttributeEnum<T>::_dumpGraph(void) const 
    153219  { 
    154220     StdOStringStream oss; 
     
    157223     return (oss.str()); 
    158224  } 
    159  
    160   template <class T> 
    161   void CAttributeEnum<T>::_fromString(const StdString & str) 
    162   { 
    163     CEnum<T>::fromString(str); 
    164   } 
    165  
    166   template <class T> 
    167   bool CAttributeEnum<T>::_toBuffer (CBufferOut& buffer) const 
    168   { 
    169      return CEnum<T>::toBuffer(buffer); 
    170   } 
    171  
    172   template <class T> 
    173   bool CAttributeEnum<T>::_fromBuffer(CBufferIn& buffer) 
    174   { 
    175     return CEnum<T>::fromBuffer(buffer); 
    176   } 
    177  
    178   template <typename T> 
    179   void CAttributeEnum<T>::generateCInterface(ostream& oss,const string& className) 
    180   { 
    181     CInterface::AttributeCInterface<CEnumBase>(oss, className, this->getName()); 
    182   } 
    183  
    184   template <typename T> 
    185   void CAttributeEnum<T>::generateFortran2003Interface(ostream& oss,const string& className) 
    186   { 
    187     CInterface::AttributeFortran2003Interface<string>(oss, className, this->getName()); 
    188   } 
    189  
    190   template <typename T> 
    191   void CAttributeEnum<T>::generateFortranInterfaceDeclaration_(ostream& oss,const string& className) 
    192   { 
    193     CInterface::AttributeFortranInterfaceDeclaration<string>(oss, className, this->getName()+"_"); 
    194   } 
    195  
    196   template <typename T> 
    197   void CAttributeEnum<T>::generateFortranInterfaceBody_(ostream& oss,const string& className) 
    198   { 
    199     CInterface::AttributeFortranInterfaceBody<string>(oss, className, this->getName()); 
    200   } 
    201  
    202   template <typename T> 
    203   void CAttributeEnum<T>::generateFortranInterfaceDeclaration(ostream& oss,const string& className) 
    204   { 
    205     CInterface::AttributeFortranInterfaceDeclaration<string>(oss, className, this->getName()); 
    206   } 
    207  
    208   template <typename T> 
    209   void CAttributeEnum<T>::generateFortranInterfaceGetDeclaration_(ostream& oss,const string& className) 
    210   { 
    211     CInterface::AttributeFortranInterfaceGetDeclaration<string>(oss, className, this->getName()+"_"); 
    212   } 
    213  
    214   template <typename T> 
    215   void CAttributeEnum<T>::generateFortranInterfaceGetBody_(ostream& oss,const string& className) 
    216   { 
    217     CInterface::AttributeFortranInterfaceGetBody<string>(oss, className, this->getName()); 
    218   } 
    219  
    220   template <typename T> 
    221   void CAttributeEnum<T>::generateFortranInterfaceGetDeclaration(ostream& oss,const string& className) 
    222   { 
    223     CInterface::AttributeFortranInterfaceGetDeclaration<string>(oss, className, this->getName()); 
    224   } 
    225225} // namespace xios 
    226226 
Note: See TracChangeset for help on using the changeset viewer.