30 #ifndef HARDWARE_INTERFACE_HARDWARE_RESOURCE_MANAGER_H 31 #define HARDWARE_INTERFACE_HARDWARE_RESOURCE_MANAGER_H 41 struct ClaimResources;
42 struct DontClaimResources;
78 template <
class ResourceHandle,
class ClaimPolicy = DontClaimResources>
103 ClaimPolicy::claim(
this, name);
107 catch(
const std::logic_error& e)
117 struct ClaimResources
122 struct DontClaimResources
130 #endif // HARDWARE_INTERFACE_HARDWARE_RESOURCE_MANAGER_H Abstract Hardware Interface.
An exception related to a HardwareInterface.
virtual void claim(std::string resource)
Claim a resource by name.
Class for handling named resources.
ResourceHandle getHandle(const std::string &name)
Get a resource handle by name.
ResourceHandle ResourceHandleType
ResourceHandle getHandle(const std::string &name)
Get a resource handle by name.
Base class for handling hardware resources.