123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef IVCHART_IMPL_H
- #define IVCHART_IMPL_H
- #include <QDateTime>
- #include <QtDBus/qdbusmessage.h>
- #include <QtDBus/QDBusConnection>
- #include <QThread>
- #include <QWaitCondition>
- #include <QMutex>
- #include <vector>
- #include <memory>
- #include <iostream>
- #include <unistd.h>
- #include "ivchart.pb.h"
- namespace iv {
- class ivchart_impl : public QThread
- {
- public:
- ivchart_impl();
- ~ivchart_impl();
- public:
- void chartvalue(std::string varname,const double fvalue,const double fvalue_RangeMin = 0.0,const double fvalue_RangeMax = 1.0);
- private:
- QDBusMessage mmsg;
- void run();
- QWaitCondition mwc;
- QMutex mWaitMutex;
- iv::ivchart::ivchartarray mvectorchart;
- QMutex mMutexVector;
- int writechart(iv::ivchart::ivchartarray * pxvectorchart);
- };
- }
- #endif // IVCHART_IMPL_H
|