source: XIOS/dev/dev_ym/XIOS_COUPLING/src/event_server.hpp @ 1878

Last change on this file since 1878 was 1853, checked in by ymipsl, 4 years ago

Coupling branch : replace hasServer and hasClient combination by the name of correct service : CLIENT, GATHERER or OUT_SERVER.

YM

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
File size: 811 bytes
Line 
1#ifndef __EVENT_SERVER_HPP__
2#define __EVENT_SERVER_HPP__
3
4#include "xios_spl.hpp"
5#include "buffer_in.hpp"
6#include "buffer_server.hpp"
7
8namespace xios
9{
10  class CContextServer ;
11
12  class CEventServer
13  {
14    public:
15   
16    int classId ;
17    int type ;
18    int nbSender ;
19
20    CEventServer(CContextServer* contextServer) : contextServer_(contextServer) {}
21
22    void push(int rank,CServerBuffer* serverBuffer ,char* startBuffer,int size) ;
23    CContextServer* getContextServer(void) { return contextServer_ ;}
24   
25    struct SSubEvent
26    {
27      int rank ;
28      CServerBuffer* serverBuffer ;
29      CBufferIn*  buffer ;
30      int size ;
31    } ;
32   
33    list<SSubEvent> subEvents ;   
34   
35    bool isFull(void) ;
36    ~CEventServer() ; 
37    private :
38
39    CContextServer* contextServer_ ;
40  } ;
41
42}
43
44#endif
Note: See TracBrowser for help on using the repository browser.