Rev | Line | |
---|
[190] | 1 | #ifndef __XMLIO_Server__ |
---|
| 2 | #define __XMLIO_Server__ |
---|
| 3 | |
---|
| 4 | /// xmlioserver headers /// |
---|
| 5 | #include "xmlioserver_spl.hpp" |
---|
[196] | 6 | #include "mpi_manager.hpp" |
---|
| 7 | #include "buffer_list.hpp" |
---|
| 8 | #include "array.hpp" |
---|
[190] | 9 | |
---|
| 10 | namespace xmlioserver { |
---|
| 11 | namespace comm { |
---|
| 12 | |
---|
[196] | 13 | /// ////////////////////// Déclarations ////////////////////// /// |
---|
| 14 | |
---|
| 15 | class CServer |
---|
| 16 | { |
---|
| 17 | public : |
---|
[214] | 18 | |
---|
| 19 | static boost::shared_ptr<CServer> CreateServer(MPIComm comm_client_server); |
---|
| 20 | static boost::shared_ptr<CServer> GetServer(void); |
---|
| 21 | |
---|
[196] | 22 | /// Destructeur /// |
---|
| 23 | ~CServer(void); |
---|
| 24 | |
---|
| 25 | void run(void); |
---|
| 26 | |
---|
| 27 | protected : |
---|
| 28 | |
---|
| 29 | /// Accesseur /// |
---|
| 30 | const CBufferList & getBufferList(void) const; |
---|
| 31 | |
---|
| 32 | public : |
---|
| 33 | |
---|
| 34 | /// Appels distants/// |
---|
| 35 | void initialize(void); // manager 0, method 0 |
---|
| 36 | void finalize(void); // manager 0, method 1 |
---|
| 37 | |
---|
[214] | 38 | void setContext (const std::vector<CLinearBuffer> & buffer); // manager 1, method 0 |
---|
[196] | 39 | void updateCalendar(const std::vector<CLinearBuffer> & buffer); // manager 1, method 1 |
---|
[214] | 40 | void setTimestep (const std::vector<CLinearBuffer> & buffer); // manager 1, method 2 |
---|
[196] | 41 | |
---|
| 42 | void writeData(const std::vector<CLinearBuffer> & buffer, int prec); // manager 2, method 0 - 1 |
---|
| 43 | |
---|
| 44 | private : |
---|
[214] | 45 | |
---|
| 46 | /// Constructeurs /// |
---|
| 47 | CServer(MPIComm comm_client_server); |
---|
[196] | 48 | |
---|
| 49 | /// Propriété privée /// |
---|
| 50 | CBufferList blist; |
---|
[214] | 51 | |
---|
| 52 | static boost::shared_ptr<CServer> Server; |
---|
[196] | 53 | |
---|
| 54 | }; // class CServer |
---|
[190] | 55 | |
---|
| 56 | } // namespace comm |
---|
| 57 | } // namespace xmlioserver |
---|
| 58 | |
---|
| 59 | #endif //__XMLIO_Server__ |
---|
Note: See
TracBrowser
for help on using the repository browser.