Ignore:
Timestamp:
11/04/15 15:50:19 (9 years ago)
Author:
rlacroix
Message:

Fix the generation of the Fortran interface to support private attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/attribute_template_impl.hpp

    r775 r778  
    245245      void CAttributeTemplate<T>::generateCInterface(ostream& oss,const string& className) 
    246246      { 
    247         if (this->isAttributePublic()) 
    248           CInterface::AttributeCInterface<T>(oss, className, this->getName()) ; 
    249 //        CInterface::AttributeIsDefinedCInterface(oss, className, this->getName()) ; 
     247        CInterface::AttributeCInterface<T>(oss, className, this->getName()); 
    250248      } 
    251249 
     
    253251      void CAttributeTemplate<T>::generateFortran2003Interface(ostream& oss,const string& className) 
    254252      { 
    255         if (this->isAttributePublic()) 
    256           CInterface::AttributeFortran2003Interface<T>(oss, className, this->getName()) ; 
    257 //        CInterface::AttributeIsDefinedFortran2003Interface(oss, className, this->getName()) ; 
     253        CInterface::AttributeFortran2003Interface<T>(oss, className, this->getName()); 
    258254      } 
    259255 
     
    261257      void CAttributeTemplate<T>::generateFortranInterfaceDeclaration_(ostream& oss,const string& className) 
    262258      { 
    263         if (this->isAttributePublic()) 
    264           CInterface::AttributeFortranInterfaceDeclaration<T>(oss, className, this->getName()+"_") ; 
     259        CInterface::AttributeFortranInterfaceDeclaration<T>(oss, className, this->getName() + "_"); 
    265260      } 
    266261 
     
    268263      void CAttributeTemplate<T>::generateFortranInterfaceBody_(ostream& oss,const string& className) 
    269264      { 
    270         if (this->isAttributePublic()) 
    271           CInterface::AttributeFortranInterfaceBody<T>(oss, className, this->getName()) ; 
     265        CInterface::AttributeFortranInterfaceBody<T>(oss, className, this->getName()); 
    272266      } 
    273267 
     
    275269      void CAttributeTemplate<T>::generateFortranInterfaceDeclaration(ostream& oss,const string& className) 
    276270      { 
    277         if (this->isAttributePublic()) 
    278           CInterface::AttributeFortranInterfaceDeclaration<T>(oss, className, this->getName()) ; 
     271        CInterface::AttributeFortranInterfaceDeclaration<T>(oss, className, this->getName()); 
    279272      } 
    280273 
     
    282275      void CAttributeTemplate<T>::generateFortranInterfaceGetDeclaration_(ostream& oss,const string& className) 
    283276      { 
    284         if (this->isAttributePublic()) 
    285           CInterface::AttributeFortranInterfaceGetDeclaration<T>(oss, className, this->getName()+"_") ; 
     277        CInterface::AttributeFortranInterfaceGetDeclaration<T>(oss, className, this->getName() + "_"); 
    286278      } 
    287279 
     
    290282      void CAttributeTemplate<T>::generateFortranInterfaceGetBody_(ostream& oss,const string& className) 
    291283      { 
    292         if (this->isAttributePublic()) 
    293           CInterface::AttributeFortranInterfaceGetBody<T>(oss, className, this->getName()) ; 
     284        CInterface::AttributeFortranInterfaceGetBody<T>(oss, className, this->getName()); 
    294285      } 
    295286 
     
    297288      void CAttributeTemplate<T>::generateFortranInterfaceGetDeclaration(ostream& oss,const string& className) 
    298289      { 
    299         if (this->isAttributePublic()) 
    300           CInterface::AttributeFortranInterfaceGetDeclaration<T>(oss, className, this->getName()) ; 
     290        CInterface::AttributeFortranInterfaceGetDeclaration<T>(oss, className, this->getName()); 
    301291      } 
    302292 
Note: See TracChangeset for help on using the changeset viewer.