54 virtual void claim(std::string resource) {
claims_.insert(resource); }
75 const char*
what() const noexcept
override {
return msg.c_str();}
virtual ~HardwareInterface()=default
Abstract Hardware Interface.
std::set< std::string > claims_
An exception related to a HardwareInterface.
virtual void claim(std::string resource)
Claim a resource by name.
const char * what() const noexcept override
void clearClaims()
Clear the resources this interface is claiming.
std::set< std::string > getClaims() const
Get the list of resources this interface is currently claiming.
HardwareInterfaceException(const std::string &message)