XIOS  1.0
Xml I/O Server
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définitions de type Énumérations Valeurs énumérées Amis Macros
event_client.hpp
Aller à la documentation de ce fichier.
1 #ifndef __EVENT_CLIENT_HPP__
2 #define __EVENT_CLIENT_HPP__
3 
4 #include "xios_spl.hpp"
5 #include "buffer_out.hpp"
6 #include "message.hpp"
7 
8 namespace xios
9 {
11  {
12  public:
13  static const size_t headerSize;
14 
15  CEventClient(int classId, int typeId);
16 
17  void push(int rank, int nbSender, CMessage& msg);
18  void send(size_t timeLine, const std::list<int>& sizes, std::list<CBufferOut*>&);
19 
20  bool isEmpty(void);
21  std::list<int> getRanks(void);
22  std::list<int> getSizes(void);
23  int getClassId(void) { return classId; }
24  int getTypeId(void) { return typeId; }
25 
26  private:
27  int classId;
28  int typeId;
29  std::list<int> ranks;
30  std::list<int> nbSenders;
31  std::list<CMessage*> messages;
32  };
33 }
34 
35 #endif
static const size_t headerSize
void send(size_t timeLine, const std::list< int > &sizes, std::list< CBufferOut * > &)
CEventClient(int classId, int typeId)
std::list< int > nbSenders
#define xios(arg)
void push(int rank, int nbSender, CMessage &msg)
std::list< int > getSizes(void)
std::list< CMessage * > messages
std::list< int > getRanks(void)
std::list< int > ranks