Electric Tiger DAQ  1.0.0
Data Acquisition Software for the Electric Tiger Experiment
q_socket_comm.h
1 #ifndef Q_SOCKETCOMM_H
2 #define Q_SOCKETCOMM_H
3 
4 //C System-Headers
5 //
6 //C++ System headers
7 //
8 //Boost Headers
9 //
10 //Qt Headers
11 #include <QObject>
12 #include <QTcpSocket>
13 #include <QUdpSocket>
14 #include <QDataStream>
15 //Project specific headers
16 //
17 
18 class QSocketComm : public QObject
19 {
20  Q_OBJECT
21 
22 public:
23  explicit QSocketComm( std::string host_name, uint port_number, QObject *parent = 0 );
24  ~QSocketComm();
25 
26  void Send( std::string command, std::string terminator="\n" );
27  void SendScl( std::string command );
28 
29  std::string Receive();
30  std::string ReceiveSafe();
31 
32 private:
33  QTcpSocket *socket;
34 
35 };
36 
37 #endif // Q_SOCKETCOMM_H
Definition: q_socket_comm.h:18