Ignore:
Timestamp:
01/10/17 14:36:29 (7 years ago)
Author:
oabramkina
Message:

Intermeadiate version for merging with new server functionalities.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/node/field.hpp

    r1009 r1021  
    1616#include "transformation_enum.hpp" 
    1717#include "variable.hpp" 
     18#include "context_client.hpp" 
    1819 
    1920 
     
    124125         boost::shared_ptr<COutputPin> getSelfReference(CGarbageCollector& gc); 
    125126         boost::shared_ptr<COutputPin> getTemporalDataFilter(CGarbageCollector& gc, CDuration outFreq); 
     127         boost::shared_ptr<COutputPin> getSelfTemporalDataFilter(CGarbageCollector& gc, CDuration outFreq); 
    126128 
    127129//         virtual void fromBinary(StdIStream& is); 
     
    139141        static bool dispatchEvent(CEventServer& event); 
    140142        void sendUpdateData(const CArray<double,1>& data); 
    141         void sendUpdateData(const CArray<double,1>& data, const int srvPool); 
     143        void sendUpdateData(const CArray<double,1>& data, CContextClient* client); 
    142144        static void recvUpdateData(CEventServer& event); 
    143145        void recvUpdateData(vector<int>& ranks, vector<CBufferIn*>& buffers); 
    144146        void writeField(void); 
    145         void sendReadDataRequest(void); 
     147        void sendReadDataRequest(const CDate& tsDataRequested); 
    146148        bool sendReadDataRequestIfNeeded(void); 
    147149        static void recvReadDataRequest(CEventServer& event); 
     
    169171        CVariableGroup* addVariableGroup(const string& id = ""); 
    170172        void sendAddVariable(const string& id = ""); 
    171         void sendAddVariable(const string& id, const int srvPool); 
     173        void sendAddVariable(const string& id, CContextClient* client); 
    172174        void sendAddVariableGroup(const string& id = ""); 
    173175        static void recvAddVariable(CEventServer& event); 
     
    176178        void recvAddVariableGroup(CBufferIn& buffer); 
    177179        void sendAddAllVariables(); 
    178         void sendAddAllVariables(const int srvPool); 
    179  
     180        void sendAddAllVariables(CContextClient* client); 
    180181 
    181182        const std::vector<StdString>& getRefDomainAxisIds(); 
     183 
     184        const string& getExpression(void); 
     185        bool hasExpression(void) const; 
    182186 
    183187      public: 
     
    194198         bool isEOF; 
    195199         CDate lastlast_Write_srv, last_Write_srv, last_operation_srv; 
    196          CDate lastDataRequestedFromServer; 
     200         CDate lastDataRequestedFromServer, lastDataReceivedFromServer; 
     201         bool wasDataAlreadyReceivedFromServer; 
    197202 
    198203         map<int,boost::shared_ptr<func::CFunctor> > foperation_srv; 
     
    204209         bool isReferenceSolved; 
    205210         std::vector<StdString> domAxisScalarIds_; 
    206          bool isReadDataRequestPending; 
    207211         bool useCompressedOutput; 
     212 
     213         // Two variables to identify the time_counter meta data written in file, which has no time_counter 
     214         bool hasTimeInstant; 
     215         bool hasTimeCentered; 
    208216 
    209217         DECLARE_REF_FUNC(Field,field) 
Note: See TracChangeset for help on using the changeset viewer.