added a get_content() method, which excludes command byte & term byte

This commit is contained in:
Kjistóf 2016-12-04 13:58:25 +01:00
parent d673fd24d1
commit cf4bc2f142
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ namespace chat
std::string get() const
{ return byte(_header) + _content + byte(message::TERM); }
std::string get_content() const
{ return _content; }
};
std::ostream& operator<<(std::ostream& os, const chat_message& msg)