MNE-CPP
beta 1.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
applications
mne_x_libs
xMeas
newnumeric.cpp
1
//=============================================================================================================
36
//*************************************************************************************************************
37
//=============================================================================================================
38
// INCLUDES
39
//=============================================================================================================
40
41
#include "
newnumeric.h
"
42
43
44
//*************************************************************************************************************
45
//=============================================================================================================
46
// USED NAMESPACES
47
//=============================================================================================================
48
49
using namespace
XMEASLIB
;
50
51
52
//*************************************************************************************************************
53
//=============================================================================================================
54
// DEFINE MEMBER METHODS
55
//=============================================================================================================
56
57
NewNumeric::NewNumeric
(QObject *parent)
58
:
NewMeasurement
(QMetaType::type(
"NewNumeric::SPtr"
), parent)
59
, m_qString_Unit(
""
)
60
, m_dValue(-1)
61
{
62
63
}
64
65
66
//*************************************************************************************************************
67
68
NewNumeric::~NewNumeric
()
69
{
70
71
}
72
73
74
//*************************************************************************************************************
75
76
void
NewNumeric::setValue
(
double
v)
77
{
78
m_qMutex.lock();
79
m_dValue = v;
80
m_qMutex.unlock();
81
emit notify();
82
}
83
84
85
//*************************************************************************************************************
86
87
double
NewNumeric::getValue
()
const
88
{
89
QMutexLocker locker(&m_qMutex);
90
return
m_dValue;
91
}
XMEASLIB
Definition:
frequencyspectrumwidget.h:71
XMEASLIB::NewMeasurement
Definition:
newmeasurement.h:67
XMEASLIB::NewNumeric::~NewNumeric
virtual ~NewNumeric()
Definition:
newnumeric.cpp:68
newnumeric.h
Contains the declaration of the Numeric class.
XMEASLIB::NewNumeric::setValue
virtual void setValue(double v)
Definition:
newnumeric.cpp:76
XMEASLIB::NewNumeric::NewNumeric
NewNumeric(QObject *parent=0)
Definition:
newnumeric.cpp:57
XMEASLIB::NewNumeric::getValue
virtual double getValue() const
Definition:
newnumeric.cpp:87
Generated on Fri Mar 27 2015 22:54:29 for MNE-CPP by
1.8.9.1