BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/DistBossServer/DistBossServer/WriterRpc.h
Go to the documentation of this file.
1#ifndef DISTBOSS_WRITER_RPC_H
2#define DISTBOSS_WRITER_RPC_H
3
4#include "DistBossUtil/PthrWriterBufPool.h"
5#include "DistBossServer/RpcInterface.h"
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
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
47#include "DistBossServer/template/WriterRpc.cc"
48
49#endif
WriterRpc(const std::string &svrName, const std::string &fname)
int wait_to_end()
virtual ~WriterRpc()