Changeset 2019 for XIOS/dev/dev_trunk_graph/src/attribute_enum_impl.hpp
- Timestamp:
- 01/22/21 12:00:29 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_graph/src/attribute_enum_impl.hpp
r1686 r2019 10 10 namespace xios 11 11 { 12 /// ////////////////////// D éfinitions ////////////////////// ///12 /// ////////////////////// Dfinitions ////////////////////// /// 13 13 template <class T> 14 14 CAttributeEnum<T>::CAttributeEnum(const StdString & id) … … 149 149 } 150 150 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 153 219 { 154 220 StdOStringStream oss; … … 157 223 return (oss.str()); 158 224 } 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) const168 {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 }225 225 } // namespace xios 226 226
Note: See TracChangeset
for help on using the changeset viewer.