9 #ifndef anna_core_mt_Resource_hpp 10 #define anna_core_mt_Resource_hpp 46 const std::string&
getName()
const {
return a_name; }
81 bool operator == (
const std::string& name)
const {
return a_name == name; }
89 bool operator == (
const Resource& other)
const {
return a_name == other.a_name; }
97 void enable() noexcept(false) {
Guard guard(
this,
"Resource"); a_isEnabled =
true; }
103 void disable() noexcept(false) {
Guard guard(
this,
"Resource"); a_isEnabled =
false; }
109 virtual std::string asString()
const ;
121 virtual bool isAvailable()
const noexcept(
false) = 0;
124 const std::string a_name;
void setTimeStamp(const Millisecond &timeStamp)
Definition: Resource.hpp:67
Definition: Millisecond.hpp:24
Resource(const std::string &name)
Definition: Resource.hpp:35
const std::string & getName() const
Definition: Resource.hpp:46
void enable() noexcept(false)
Definition: Resource.hpp:97
const Millisecond & getTimeStamp() const
Definition: Resource.hpp:73
void disable() noexcept(false)
Definition: Resource.hpp:103
xml::Node Node
Definition: Node.hpp:21
Definition: Resource.hpp:26
bool isEnabled() const
Definition: Resource.hpp:58