MNE-CPP  beta 1.0
mne_rt_server.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef MNE_RT_SERVER_H
37 #define MNE_RT_SERVER_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // MNE INCLUDES
42 //=============================================================================================================
43 
44 #include <rtCommand/commandmanager.h>
45 #include "connectormanager.h"
46 #include "commandserver.h"
47 #include "fiffstreamserver.h"
48 
49 
50 //*************************************************************************************************************
51 //=============================================================================================================
52 // Eigen INCLUDES
53 //=============================================================================================================
54 
55 #include <Eigen/Core>
56 
57 
58 //*************************************************************************************************************
59 //=============================================================================================================
60 // Qt INCLUDES
61 //=============================================================================================================
62 
63 #include <QObject>
64 
65 
66 //*************************************************************************************************************
67 //=============================================================================================================
68 // DEFINE NAMESPACE RTSERVER
69 //=============================================================================================================
70 
71 namespace RTSERVER
72 {
73 
74 //*************************************************************************************************************
75 //=============================================================================================================
76 // USED NAMESPACES
77 //=============================================================================================================
78 
79 using namespace RTCOMMANDLIB;
80 
81 //*************************************************************************************************************
82 //=============================================================================================================
83 // FORWARD DECLARATIONS
84 //=============================================================================================================
85 
86 //=============================================================================================================
92 class MNERTServer : public QObject
93 {
94  Q_OBJECT
95 public:
96  MNERTServer();
97 
98  //=========================================================================================================
102  ~MNERTServer();
103 
104  //=========================================================================================================
108  inline CommandManager& getCommandManager();
109 
110  //=========================================================================================================
114  void init();
115 
116 signals:
117  void closeServer();
118 
119 private:
120 
121  //SLOTS
122  //=========================================================================================================
126  void comClose();
127 
128  //=========================================================================================================
132  void comHelp(Command p_command);
133 
134 
135 
136  FiffStreamServer m_fiffStreamServer;
137  CommandServer m_commandServer;
139  ConnectorManager m_connectorManager;
141  CommandManager m_commandManager;
142 };
143 
144 
145 //*************************************************************************************************************
146 //=============================================================================================================
147 // INLINE DEFINITIONS
148 //=============================================================================================================
149 
151 {
152  return m_commandManager;
153 }
154 
155 
156 } // NAMESPACE
157 
158 #ifndef metatype_matrixxf
159 #define metatype_matrixxf
160 Q_DECLARE_METATYPE(Eigen::MatrixXf);
161 #endif
162 
163 #endif // MNE_RT_SERVER_H
The FiffStreamServer class provides.
CommandManager & getCommandManager()
The MNERTServer class provides a Fiff data simulator.
Definition: mne_rt_server.h:92
implementation of the FiffStreamServer Class.
The ConnectorManager class provides a dynamic plugin loader. As well as the handling of the loaded pl...
implementation of the ConnectorManager Class.
implementation of the CommandServer Class.
Q_DECLARE_METATYPE(Eigen::MatrixXf)
CommandServer manages threaded command connections.
Definition: commandserver.h:84