BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
WriterRpc.h
Go to the documentation of this file.
1#ifndef DISTBOSS_WRITER_RPC_H
2#define DISTBOSS_WRITER_RPC_H
3
6#include "dis.hxx"
7#include <map>
8#include <string>
9
10template<class Writer>
11class WriterRpc : virtual public DimRpc, virtual public RpcInterface
12{
13 public :
14
15 WriterRpc(const std::string& svrName, const std::string& fname);
16 virtual ~WriterRpc();
17
18 int wait_to_end();
19
20
21 private :
22
23 void rpcHandler();
24
25 void clearBak(int clientId);
26
27 WriterRpc(); //stop default
28
29
30 private :
31
32 int m_evtDone;
33
34 int m_inCode;
35 int m_outCode;
36
37 int m_size;
38 void* m_pEvt;
39
41
42 std::string m_svrName;
43
44 std::map<int, AutoEnlargeBuffer*> m_evtBak;
45};
46
48
49#endif
#define private
int wait_to_end()
Definition: WriterRpc.cc:41
virtual ~WriterRpc()
Definition: WriterRpc.cc:18