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;
58 void name(
const std::string &name);
DeviceClass
An enumeration describing the class of the device.
This is the header file for a generated source file, GitSHA1.cpp.
DeviceClass device_class_
uint64_t odb_version() const
const std::string & name() const
Base class for hardware devices.
Thin wrapper around boost::uuids::uuid.
virtual void validation_callback(odb::callback_event e, odb::database &) const
std::string name_
Name of an hardware device must be unique due to an implementation details.
virtual ~Device()=default
bool enabled_
Is this device supposed to be enabled?
DeviceClass device_class() const