source: XMLIO_V2/dev/dev_rv/src/xmlio/client.hpp @ 191

Last change on this file since 191 was 190, checked in by hozdoba, 13 years ago
File size: 1.4 KB
Line 
1#ifndef __XMLIO_Client__
2#define __XMLIO_Client__
3
4/// xmlioserver headers ///
5#include "xmlioserver_spl.hpp"
6#include "mpi_manager.hpp"
7#include "buffer_pair.hpp"
8#include "array.hpp"
9
10namespace xmlioserver {
11namespace comm {
12
13   /// ////////////////////// Déclarations ////////////////////// ///
14   
15   class CClient
16   {
17      public :
18     
19         /// Constructeurs ///
20         CClient(MPIComm comm_client_server);
21               
22         /// Destructeur ///
23         ~CClient(void); 
24         
25      protected : 
26     
27         /// Accesseur ///
28         const CBufferPair & getBufferPair(void) const;
29         
30      public :
31     
32         /// Appels distants///   
33         void initialize(void); // manager 0, method 0
34         void finalize(void);   // manager 0, method 1
35             
36         void setContext(const StdString & idContext); // manager 1, method 0
37         void updateCalendar(long int timestep);       // manager 1, method 1
38         
39         void sendData(const StdString & fieldId, const ARRAY(float, 1) dataArray);  // manager 2, method 0
40         void sendData(const StdString & fieldId, const ARRAY(double, 1) dataArray); // manager 2, method 1
41         
42      private :
43     
44         /// Propriété privée ///
45         CBufferPair bpair;
46     
47   }; // class CClient   
48   
49} // namespace comm
50} // namespace xmlioserver
51
52#endif //__XMLIO_Client__
Note: See TracBrowser for help on using the repository browser.