Ignore:
Timestamp:
02/13/12 19:35:25 (12 years ago)
Author:
ymipsl
Message:

nouvelle version de developpement de xios

  • nouvelle interface fortran
  • recodage complet de la couche de communication
  • et bien d'autres choses...

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/common/src/node/context.hpp

    r219 r300  
    88 
    99#include "declare_group.hpp" 
     10//#include "context_client.hpp" 
     11//#include "context_server.hpp" 
     12#include "data_output.hpp" 
     13 
     14#include <mpi.h> 
    1015 
    1116namespace xmlioserver { 
     
    1621 
    1722namespace xmlioserver { 
     23   class CContextClient ; 
     24   class CContextServer ; 
     25    
    1826namespace tree { 
    1927    
     
    2230   class CContextAttributes; 
    2331   class CContext; 
    24  
     32   
    2533   ///-------------------------------------------------------------- 
    2634 
     
    3644      , public CContextAttributes 
    3745   { 
     46         public : 
     47         enum EEventId 
     48         { 
     49           EVENT_ID_CLOSE_DEFINITION,EVENT_ID_UPDATE_CALENDAR, 
     50           EVENT_ID_CREATE_FILE_HEADER,EVENT_ID_CONTEXT_FINALIZE 
     51         } ; 
     52          
    3853         /// typedef /// 
    3954         typedef CObjectTemplate<CContext>   SuperClass; 
     
    90105         /// Test /// 
    91106         virtual bool hasChild(void) const; 
     107 
     108         bool eventLoop(void) ; 
     109         bool serverLoop(void) ; 
     110         void clientLoop(void) ; 
     111         void initServer(MPI_Comm intraComm, MPI_Comm interComm) ; 
     112         void initClient(MPI_Comm intraComm, MPI_Comm interComm) ; 
     113         CContextServer* server ; 
     114         CContextClient* client ; 
     115         bool hasClient ; 
     116         bool hasServer ; 
     117         void finalize(void) ; 
     118         void closeDefinition(void) ; 
     119         void findAllEnabledFields(void); 
     120         void solveAllGridRef(void); 
     121         void solveAllOperation(void); 
     122         void solveAllInheritance(void) ; 
     123         void findEnabledFiles(void); 
     124         void closeAllFile(void) ; 
     125         void updateCalendar(int step) ; 
     126         void createFileHeader(void ) ; 
     127      // dispatch event 
     128         static bool dispatchEvent(CEventServer& event) ; 
     129         void sendCloseDefinition(void) ; 
     130         void sendUpdateCalendar(int step) ; 
     131         void sendCreateFileHeader(void) ; 
     132         static void recvUpdateCalendar(CEventServer& event) ; 
     133         void recvUpdateCalendar(CBufferIn& buffer) ; 
     134         static void recvCloseDefinition(CEventServer& event) ; 
     135         static void recvCreateFileHeader(CEventServer& event) ; 
     136         void recvCreateFileHeader(CBufferIn& buffer) ; 
     137         static shared_ptr<CContext> current(void) ; 
    92138          
    93139      public : 
     
    100146         virtual void fromBinary(StdIStream & is); 
    101147          
    102       private : 
     148      public : 
    103149       
    104150         boost::shared_ptr<date::CCalendar>      calendar; 
    105151         boost::shared_ptr<data::CDataTreatment> datat; 
     152  
     153         std::vector<boost::shared_ptr<CFile> > enabledFiles; 
     154 
    106155 
    107156   }; // class CContext 
Note: See TracChangeset for help on using the changeset viewer.