Skip to content

Commit

Permalink
mon: Add basic operator<< to MonCaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Farnum committed Mar 10, 2010
1 parent c6e7495 commit efcd0d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mon/MonCaps.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ struct MonCaps {
__u64 auid;
public:
MonCaps() : default_action(0), allow_all(false) {}
const string& get_str() { return text; }
const string& get_str() const { return text; }
bool parse(bufferlist::iterator& iter);
rwx_t get_caps(int service);
void set_allow_all(bool allow) { allow_all = allow; }
void set_auid(__u64 uid) { auid = uid; }
};

inline ostream& operator<<(ostream& out, const MonCaps& m) {
return out << m.get_str();
}
#endif

0 comments on commit efcd0d8

Please sign in to comment.