Tidy up Resource::Manager APIs

This commit is contained in:
Vinnie Falco
2013-11-09 12:00:37 -08:00
parent 5f4a1917a6
commit b5f8d447a0
5 changed files with 29 additions and 15 deletions

View File

@@ -39,7 +39,7 @@ public:
Consumer& operator= (Consumer const& other);
/** Return a human readable string uniquely identifying this consumer. */
std::string label ();
std::string to_string () const;
/** Returns `true` if this is a privileged endpoint. */
bool admin () const;
@@ -77,6 +77,8 @@ private:
Entry* m_entry;
};
std::ostream& operator<< (std::ostream& os, Consumer const& v);
}
}