Changeset 300 for XMLIO_V2/dev/common/src/node/context.hpp
- Timestamp:
- 02/13/12 19:35:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/common/src/node/context.hpp
r219 r300 8 8 9 9 #include "declare_group.hpp" 10 //#include "context_client.hpp" 11 //#include "context_server.hpp" 12 #include "data_output.hpp" 13 14 #include <mpi.h> 10 15 11 16 namespace xmlioserver { … … 16 21 17 22 namespace xmlioserver { 23 class CContextClient ; 24 class CContextServer ; 25 18 26 namespace tree { 19 27 … … 22 30 class CContextAttributes; 23 31 class CContext; 24 32 25 33 ///-------------------------------------------------------------- 26 34 … … 36 44 , public CContextAttributes 37 45 { 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 38 53 /// typedef /// 39 54 typedef CObjectTemplate<CContext> SuperClass; … … 90 105 /// Test /// 91 106 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) ; 92 138 93 139 public : … … 100 146 virtual void fromBinary(StdIStream & is); 101 147 102 p rivate:148 public : 103 149 104 150 boost::shared_ptr<date::CCalendar> calendar; 105 151 boost::shared_ptr<data::CDataTreatment> datat; 152 153 std::vector<boost::shared_ptr<CFile> > enabledFiles; 154 106 155 107 156 }; // class CContext
Note: See TracChangeset
for help on using the changeset viewer.