source: XMLIO_V2/dev/dev_rv/src/xmlio/server.hpp @ 207

Last change on this file since 207 was 196, checked in by hozdoba, 13 years ago
File size: 1.3 KB
Line 
1#ifndef __XMLIO_Server__
2#define __XMLIO_Server__
3
4/// xmlioserver headers ///
5#include "xmlioserver_spl.hpp"
6#include "mpi_manager.hpp"
7#include "buffer_list.hpp"
8#include "array.hpp"
9
10namespace xmlioserver {
11namespace comm {
12
13   /// ////////////////////// Déclarations ////////////////////// ///
14   
15   class CServer
16   {
17      public :
18     
19         /// Constructeurs ///
20         CServer(MPIComm comm_client_server);
21               
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             
38         void setContext(const std::vector<CLinearBuffer> & buffer);     // manager 1, method 0
39         void updateCalendar(const std::vector<CLinearBuffer> & buffer); // manager 1, method 1
40         
41         void writeData(const std::vector<CLinearBuffer> & buffer, int prec); // manager 2, method 0 - 1
42     
43      private :
44     
45         /// Propriété privée ///
46         CBufferList blist;
47     
48   }; // class CServer 
49
50} // namespace comm
51} // namespace xmlioserver
52
53#endif //__XMLIO_Server__
Note: See TracBrowser for help on using the repository browser.