EUDAQ
 All Classes Namespaces Files Functions Variables Pages
DataSender.hh
1 #ifndef EUDAQ_INCLUDED_DataSender
2 #define EUDAQ_INCLUDED_DataSender
3 
4 #include "eudaq/Platform.hh"
5 #include <string>
6 
7 namespace eudaq {
8 
9  class TransportClient;
10  class Event;
11  class AidaPacket;
12 
13  class DLLEXPORT DataSender {
14  public:
15  DataSender(const std::string &type, const std::string &name);
16  ~DataSender();
17  void Connect(const std::string &server);
18  void SendEvent(const Event &);
19  void SendPacket(const AidaPacket &);
20 
21  private:
22  std::string m_type, m_name;
23  TransportClient *m_dataclient;
24  };
25 }
26 
27 #endif // EUDAQ_INCLUDED_DataSender
Definition: AidaPacket.hh:39
Definition: Event.hh:38
Definition: TransportClient.hh:9
Definition: DataSender.hh:13