57 using namespace XMEASLIB;
72 , m_uiNumChannels(uiNumChannels)
73 , m_ucMultiArraySize(10)
100 if(v.size() != int(m_uiNumChannels))
101 qDebug() <<
"Error Occured in RealTimeMultiSampleArray::setVector: Vector size does not matche the number of channels! ";
103 for(QVector<double>::iterator it = v.begin(); it != v.end(); ++it)
105 if(*it < m_dMinValue) *it = m_dMinValue;
106 else if(*it > m_dMaxValue) *it = m_dMaxValue;
110 m_matSamples.push_back(m_vecValue);
111 if(m_matSamples.size() >= m_ucMultiArraySize &&
notifyEnabled)
114 m_matSamples.clear();
static bool notifyEnabled
RealTimeMultiSampleArray(unsigned int uiNumChannels)
Contains the declaration of the RealTimeMultiSampleArray class.
virtual QVector< double > getVector() const
virtual ~RealTimeMultiSampleArray()
virtual void setVector(QVector< double > v)
The SngChnMeasurement class is the base class of every SngChnMeasurement.