HITDAQ/hit2023v2/hw.h

47 lines
695 B
C
Raw Normal View History

2023-09-07 13:31:49 +02:00
#ifndef HW_H
#define HW_H
#include <QObject>
#include <QVector>
#include <QThread>
#include "device.h"
#include "eventbuilder.h"
#include "networkthread.h"
2023-09-07 13:31:49 +02:00
class HW : public QObject
{
Q_OBJECT
public:
2023-09-07 13:31:49 +02:00
public:
explicit HW(QObject *parent = 0);
~HW();
QVector<Device*> devices;
EventBuilder eventBuilder;
2024-02-01 18:45:41 +01:00
// NetworkThread networkThread;
2023-09-07 13:31:49 +02:00
Device &operator [](int nr);
void addDevices(int nr_devices);
void removeDevices();
void connectDevices();
void disconnectDevices();
void run();
void stop();
QString report();
void configureDevice(int dev_nr, DeviceConfig dc);
signals:
public slots:
protected:
private:
2023-09-07 13:31:49 +02:00
};
#endif // HW_H