API Documentation
Loading...
Searching...
No Matches
DeviceManager.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/Device.h>
4#include <QObject>
5namespace NDEVR
6{
7 class HARDWARE_API DeviceManager : public QObject
8 {
9 Q_OBJECT
10 public:
12 bool hasDevice(const UUID& id) const
13 {
14 return m_device_lookup.hasKey(id);
15 }
16 Device* device(const UUID& id)
17 {
18 return m_device_lookup.get(id);
19 }
20 void addDevice(Device* device);
21 void removeDevice(const UUID& id);
22 void update();
23 static DeviceManager& DefaultManager();
24 signals:
26 void deviceRemovedSignal(const UUID& id);
27
28 protected:
31 };
32}
#define HARDWARE_API
Definition DLLInfo.h:74
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Device.h:48
Definition DeviceManager.h:8
Buffer< UUID > m_added_objects
Definition DeviceManager.h:29
void deviceRemovedSignal(const UUID &id)
Device * device(const UUID &id)
Definition DeviceManager.h:16
bool hasDevice(const UUID &id) const
Definition DeviceManager.h:12
Dictionary< UUID, Device * > m_device_lookup
Definition DeviceManager.h:30
void devicesAddedSignal(const Buffer< UUID > &ids)
Definition Dictionary.h:48
Definition UUID.h:66
Definition ACIColor.h:37