MNE-CPP  beta 1.0
rtdataclient.h
Go to the documentation of this file.
1 //=============================================================================================================
38 #ifndef RTDATACLIENT_H
39 #define RTDATACLIENT_H
40 
41 //*************************************************************************************************************
42 //=============================================================================================================
43 // MNE INCLUDES
44 //=============================================================================================================
45 
46 #include "rtclient_global.h"
47 
48 
49 //*************************************************************************************************************
50 //=============================================================================================================
51 // FIFF INCLUDES
52 //=============================================================================================================
53 
54 #include <fiff/fiff_stream.h>
55 #include <fiff/fiff_info.h>
56 #include <fiff/fiff_tag.h>
57 
58 
59 //*************************************************************************************************************
60 //=============================================================================================================
61 // QT INCLUDES
62 //=============================================================================================================
63 
64 #include <QSharedPointer>
65 #include <QString>
66 #include <QTcpSocket>
67 
68 
69 //*************************************************************************************************************
70 //=============================================================================================================
71 // DEFINE NAMESPACE RTCLIENTLIB
72 //=============================================================================================================
73 
74 namespace RTCLIENTLIB
75 {
76 
77 
78 //*************************************************************************************************************
79 //=============================================================================================================
80 // USED NAMESPACES
81 //=============================================================================================================
82 
83 using namespace FIFFLIB;
84 
85 
86 //=============================================================================================================
92 class RTCLIENTSHARED_EXPORT RtDataClient : public QTcpSocket
93 {
94  Q_OBJECT
95 public:
96  typedef QSharedPointer<RtDataClient> SPtr;
97  typedef QSharedPointer<const RtDataClient> ConstSPtr;
99  //=========================================================================================================
105  explicit RtDataClient(QObject *parent = 0);
106 
107  //=========================================================================================================
113  void connectToHost(const QString& p_sRtServerHostName);
114 
115  //=========================================================================================================
121  virtual void disconnectFromHost();
122 
123  //=========================================================================================================
129  qint32 getClientId();
130 
131  //=========================================================================================================
137  FiffInfo::SPtr readInfo();
138 
139  //=========================================================================================================
147  void readRawBuffer(qint32 p_nChannels, MatrixXf& data, fiff_int_t& kind);
148 
149  //=========================================================================================================
155  void setClientAlias(const QString &p_sAlias);
156 
157 private:
158  qint32 m_clientID;
160 signals:
161 
162 public slots:
163 
164 };
165 
166 } // NAMESPACE
167 
168 #endif // RTDATACLIENT_H
Real-time data client.
Definition: rtdataclient.h:92
#define RTCLIENTSHARED_EXPORT
rtclient library export/import macros.
QSharedPointer< FiffInfo > SPtr
Definition: fiff_info.h:99
QSharedPointer< RtDataClient > SPtr
Definition: rtdataclient.h:96
FiffInfo class declaration.
FiffStream class declaration.
Definition: fiff.h:98
QSharedPointer< const RtDataClient > ConstSPtr
Definition: rtdataclient.h:97
FiffTag class declaration, which provides fiff tag I/O and processing methods.