MNE-CPP  beta 1.0
realtimesourceestimate.cpp
Go to the documentation of this file.
1 //=============================================================================================================
36 //*************************************************************************************************************
37 //=============================================================================================================
38 // INCLUDES
39 //=============================================================================================================
40 
41 #include "realtimesourceestimate.h"
42 
43 
44 //*************************************************************************************************************
45 //=============================================================================================================
46 // QT INCLUDES
47 //=============================================================================================================
48 
49 
50 //*************************************************************************************************************
51 //=============================================================================================================
52 // USED NAMESPACES
53 //=============================================================================================================
54 
55 using namespace XMEASLIB;
56 //using namespace IOBuffer;
57 
58 
59 //*************************************************************************************************************
60 //=============================================================================================================
61 // DEFINE MEMBER METHODS
62 //=============================================================================================================
63 
65 : NewMeasurement(QMetaType::type("RealTimeSourceEstimate::SPtr"), parent)
66 , m_bStcSend(true)
67 , m_pMNEStc(new MNESourceEstimate)
68 , m_bInitialized(false)
69 {
70 
71 }
72 
73 
74 //*************************************************************************************************************
75 
77 {
78 
79 }
80 
81 
82 //*************************************************************************************************************
83 
85 {
86  QMutexLocker locker(&m_qMutex);
87  return m_pMNEStc;
88 }
89 
90 
91 //*************************************************************************************************************
92 
94 {
95  m_qMutex.lock();
96 
97  //Store
98  *m_pMNEStc = v;
99 
100  m_bInitialized = true;
101 
102  m_qMutex.unlock();
103 
104  emit notify();
105 
106 }
107 
Contains the declaration of the RealTimeSourceEstimate class.
QSharedPointer< MNESourceEstimate > SPtr
virtual void setValue(MNESourceEstimate &v)
virtual MNESourceEstimate::SPtr & getValue()