stuff-from-scratch/apps/notes_tk/text_editor/PlainTextDocument.h

25 lines
372 B
C
Raw Normal View History

2020-06-27 09:47:30 +00:00
#pragma once
#include <string>
#include <memory>
class PlainTextDocument
{
std::string mContent;
public:
PlainTextDocument();
static std::unique_ptr<PlainTextDocument> Create();
std::string GetContent() const;
void SetContent(const std::string& content);
void Clear();
};
using PlainTextDocumentUPtr = std::unique_ptr<PlainTextDocument>;