MNE-CPP  beta 1.0
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 
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 }
Contains the declaration of the Numeric class.
virtual void setValue(double v)
Definition: newnumeric.cpp:76
NewNumeric(QObject *parent=0)
Definition: newnumeric.cpp:57
virtual double getValue() const
Definition: newnumeric.cpp:87