MNE-CPP  beta 1.0
realtimecov.cpp
Go to the documentation of this file.
1 //=============================================================================================================
36 //*************************************************************************************************************
37 //=============================================================================================================
38 // INCLUDES
39 //=============================================================================================================
40 
41 #include "realtimecov.h"
42 
43 #include <time.h>
44 
45 
46 //*************************************************************************************************************
47 //=============================================================================================================
48 // QT INCLUDES
49 //=============================================================================================================
50 
51 
52 //*************************************************************************************************************
53 //=============================================================================================================
54 // USED NAMESPACES
55 //=============================================================================================================
56 
57 using namespace XMEASLIB;
58 
59 
60 //*************************************************************************************************************
61 //=============================================================================================================
62 // DEFINE MEMBER METHODS
63 //=============================================================================================================
64 
65 RealTimeCov::RealTimeCov(QObject *parent)
66 : NewMeasurement(QMetaType::type("RealTimeCov::SPtr"), parent)
67 , m_pFiffCov(new FiffCov)
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_pFiffCov;
88 }
89 
90 
91 //*************************************************************************************************************
92 
94 {
95  m_qMutex.lock();
96  //Store
97  *m_pFiffCov = v;
98  m_bInitialized = true;
99  m_qMutex.unlock();
100 
101  emit notify();
102 }
103 
virtual void setValue(FiffCov &v)
Definition: realtimecov.cpp:93
QSharedPointer< FiffCov > SPtr
Definition: fiff_cov.h:97
RealTimeCov(QObject *parent=0)
Definition: realtimecov.cpp:65
virtual FiffCov::SPtr & getValue()
Definition: realtimecov.cpp:84
covariance data
Definition: fiff_cov.h:94
Contains the declaration of the RealTimeCov class.