wsd: add getTokenInteger to Message

Change-Id: I2c145aa088082ef056b92c9864b34d8cc2f737cd
Reviewed-on: https://gerrit.libreoffice.org/33861
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
Ashod Nakashian
2017-01-31 22:46:46 -05:00
committed by Ashod Nakashian
parent cd85d8a7f1
commit cd4e8205cf

View File

@ -81,6 +81,11 @@ public:
const std::string& firstLine() const { return _firstLine; }
const std::string& operator[](size_t index) const { return _tokens[index]; }
bool getTokenInteger(const std::string& name, int& value)
{
return LOOLProtocol::getTokenInteger(_tokens, name, value);
}
/// Return the abbreviated message for logging purposes.
const std::string& abbr() const { return _abbr; }
const std::string& id() const { return _id; }