|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
25 #include <odb/callback.hxx>
26 #include <odb/core.hxx>
42 #pragma db object callback(validation_callback) \
43 optimistic polymorphic table("HARDWARE_Device")
56 const std::string &
name()
const;
DeviceClass
An enumeration describing the class of the device.
std::string name_
Name of an hardware device must be unique due to an implementation details.
virtual void validation_callback(odb::callback_event e, odb::database &) const
Base class for hardware devices.
virtual ~Device()=default
This is the header file for a generated source file, GitSHA1.cpp.
bool enabled_
Is this device supposed to be enabled?
DeviceClass device_class() const
const std::string & name() const
uint64_t odb_version() const
DeviceClass device_class_
Thin wrapper around boost::uuids::uuid.