cpp11chat/text_message.h

27 lines
446 B
C++

#pragma once
#include "message.h"
#include <string>
#include <iterator>
class text_message : public message
{
private:
std::string _text;
protected:
virtual std::string get_message_length() override;
virtual std::string get_message() override;
virtual void process_data(std::string&) override;
public:
text_message();
text_message(std::string);
std::string get_text();
virtual ~text_message() override;
};