Ignore:
Timestamp:
06/03/13 11:21:19 (11 years ago)
Author:
ymipsl
Message:

Enhancement : Add fortran interface to know if an attribute is set or not
ex : CALL xios_is_defined_field_attr("field_A",enabled=ok)

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/attribute.cpp

    r369 r432  
    11#include "attribute.hpp" 
    22#include "base_type.hpp" 
     3#include "generate_interface.hpp" 
     4 
    35 
    46namespace xios 
     
    4850         return (this->getId());  
    4951      } 
     52    
     53      void CAttribute::generateCInterfaceIsDefined(ostream& oss, const string& className) 
     54      { 
     55        CInterface::AttributeIsDefinedCInterface(oss, className, this->getName()) ; 
     56      } 
    5057       
     58      void CAttribute::generateFortran2003InterfaceIsDefined(ostream& oss, const string& className) 
     59      { 
     60        CInterface::AttributeIsDefinedFortran2003Interface(oss, className, this->getName()) ; 
     61      } 
     62       
     63       
     64      void CAttribute::generateFortranInterfaceIsDefinedDeclaration_(ostream& oss,const string& className) 
     65      { 
     66        CInterface::AttributeFortranInterfaceIsDefinedDeclaration(oss, className, this->getName()+"_") ; 
     67      } 
     68 
     69      void CAttribute::generateFortranInterfaceIsDefinedDeclaration(ostream& oss,const string& className) 
     70      { 
     71        CInterface::AttributeFortranInterfaceIsDefinedDeclaration(oss, className, this->getName()) ; 
     72      } 
     73 
     74      void CAttribute::generateFortranInterfaceIsDefinedBody_(ostream& oss,const string& className) 
     75      { 
     76        CInterface::AttributeFortranInterfaceIsDefinedBody(oss, className, this->getName()) ; 
     77      } 
    5178 
    5279      ///-------------------------------------------------------------- 
     
    81108     } 
    82109 
     110  
    83111} // namespace xios 
Note: See TracChangeset for help on using the changeset viewer.