Ignore:
Timestamp:
02/03/14 14:16:20 (10 years ago)
Author:
ymipsl
Message:

Enhancement : user defined global and field attribute can be output in the netcdfcf file.
A variable child element inclosed into a file element will be output as a global file attribute.
A variable child element inclosed into a field element will be output as a field attribute.

+ variable fortran interface added

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/field.hpp

    r464 r472  
    5454         enum EEventId 
    5555         { 
    56            EVENT_ID_UPDATE_DATA 
     56           EVENT_ID_UPDATE_DATA, EVENT_ID_ADD_VARIABLE, EVENT_ID_ADD_VARIABLE_GROUP 
    5757         } ; 
    5858          
     
    138138        void parse(xml::CXMLNode & node) ; 
    139139        CArray<double,1>* getInstantData(void)  ; 
     140         
     141        void setVirtualVariableGroup(CVariableGroup* newVVariableGroup); 
     142        void setVirtualVariableGroup(void); 
     143        CVariableGroup* getVirtualVariableGroup(void) const; 
     144        vector<CVariable*> getAllVariables(void) const; 
     145        virtual void solveDescInheritance(bool apply, const CAttributeMap * const parent = 0); 
     146  
     147        CVariable* addVariable(const string& id="") ; 
     148        CVariableGroup* addVariableGroup(const string& id="") ; 
     149        void sendAddVariable(const string& id="") ; 
     150        void sendAddVariableGroup(const string& id="") ; 
     151        static void recvAddVariable(CEventServer& event) ; 
     152        void recvAddVariable(CBufferIn& buffer) ; 
     153        static void recvAddVariableGroup(CEventServer& event) ; 
     154        void recvAddVariableGroup(CBufferIn& buffer) ; 
     155        
    140156      public : 
    141157 
    142158         /// Propriétés privées /// 
    143           
     159         CVariableGroup* vVariableGroup ; 
     160                  
    144161         std::vector<CField*> refObject; 
    145162         CField* baseRefObject; 
Note: See TracChangeset for help on using the changeset viewer.