2016-11-19 16:25:39 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "message.h"
|
|
|
|
#include <string>
|
2016-11-19 22:52:43 +00:00
|
|
|
#include <iterator>
|
2016-11-19 16:25:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class text_message : public message
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::string _text;
|
|
|
|
|
2016-11-19 16:40:00 +00:00
|
|
|
protected:
|
|
|
|
virtual std::string get_message_length() override;
|
|
|
|
virtual std::string get_message() override;
|
2016-11-19 23:18:14 +00:00
|
|
|
virtual void process_data(std::string&) override;
|
2016-11-19 16:40:00 +00:00
|
|
|
|
2016-11-19 16:25:39 +00:00
|
|
|
public:
|
|
|
|
text_message();
|
|
|
|
text_message(std::string);
|
|
|
|
|
2016-11-19 22:52:43 +00:00
|
|
|
std::string get_text();
|
|
|
|
|
2016-11-19 16:25:39 +00:00
|
|
|
virtual ~text_message() override;
|
|
|
|
};
|