mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tidy up Resource::Manager APIs
This commit is contained in:
@@ -77,12 +77,12 @@ Consumer& Consumer::operator= (Consumer const& other)
|
||||
return *this;
|
||||
}
|
||||
|
||||
std::string Consumer::label ()
|
||||
std::string Consumer::to_string () const
|
||||
{
|
||||
if (m_logic == nullptr)
|
||||
return "(none)";
|
||||
|
||||
return m_entry->label();
|
||||
return m_entry->to_string();
|
||||
}
|
||||
|
||||
bool Consumer::admin () const
|
||||
@@ -125,5 +125,11 @@ Entry& Consumer::entry()
|
||||
return *m_entry;
|
||||
}
|
||||
|
||||
std::ostream& operator<< (std::ostream& os, Consumer const& v)
|
||||
{
|
||||
os << v.to_string();
|
||||
return os;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user