Leosac  0.7.0
OpenSourceAccessControl
HardwareFwd.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014-2017 Leosac
3 
4  This file is part of Leosac.
5 
6  Leosac is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Affero General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Leosac is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Affero General Public License for more details.
15 
16  You should have received a copy of the GNU Affero General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #pragma once
21 
22 #include "tools/Uuid.hpp"
23 
24 namespace Leosac
25 {
26 namespace Hardware
27 {
41 enum class DeviceClass
42 {
43  UNKNOWN = 0,
44  GPIO = 1,
45  RFID_READERS = 2,
46  LED = 3,
47  BUZZER = 4
48 };
49 
50 class Device;
51 using DeviceId = UUID;
52 using DevicePtr = std::shared_ptr<Device>;
53 
54 class GPIO;
55 using GPIOPtr = std::shared_ptr<GPIO>;
56 
57 class LED;
58 using LEDPtr = std::shared_ptr<LED>;
59 
60 class Buzzer;
61 using BuzzerPtr = std::shared_ptr<Buzzer>;
62 }
63 }
DeviceClass
An enumeration describing the class of the device.
Definition: HardwareFwd.hpp:41
std::shared_ptr< GPIO > GPIOPtr
Definition: HardwareFwd.hpp:55
This is the header file for a generated source file, GitSHA1.cpp.
std::shared_ptr< LED > LEDPtr
Definition: HardwareFwd.hpp:58
Abstraction of a GPIO device attributes.
Definition: GPIO.hpp:41
Base class for hardware devices.
Definition: Device.hpp:44
Thin wrapper around boost::uuids::uuid.
Definition: Uuid.hpp:35
std::shared_ptr< Buzzer > BuzzerPtr
Definition: HardwareFwd.hpp:61
std::shared_ptr< Device > DevicePtr
Definition: HardwareFwd.hpp:52
Abstraction of LED device attributes.
Definition: LED.hpp:36
Abstraction of Buzzer device attributes.
Definition: Buzzer.hpp:42