33 #ifndef HARDWARE_INTERFACE_HARDWARE_INTERFACE_H 34 #define HARDWARE_INTERFACE_HARDWARE_INTERFACE_H 55 virtual void claim(std::string resource) {
claims_.insert(resource); }
80 virtual const char*
what()
const throw()
virtual const char * what() const
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.
virtual ~HardwareInterfaceException()
virtual ~HardwareInterface()
void clearClaims()
Clear the resources this interface is claiming.
HardwareInterfaceException(const std::string &message)
std::set< std::string > getClaims() const
Get the list of resources this interface is currently claiming.