From 2eae362fd3f50325067fa3d7e13db6882df80e76 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 27 Sep 2019 18:09:07 +0300 Subject: Texo initial. --- src/plain.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/plain.hpp (limited to 'src/plain.hpp') diff --git a/src/plain.hpp b/src/plain.hpp new file mode 100644 index 0000000..c5c613c --- /dev/null +++ b/src/plain.hpp @@ -0,0 +1,25 @@ +#ifndef TEXO_INCLUDED_PLAIN +#define TEXO_INCLUDED_PLAIN + +#include "texo.hpp" + + +class TexoPlainProducer: public TexoProducer { +public: + TexoPlainProducer(TexoExporter &exporter); + void Put(const Texo &piece); +}; + + +class TexoPlainImporter: public TexoImporter { +public: + TexoPlainImporter(TexoProducer &producer); + void Put(const char c); +private: + int space; + int newline; + bool first; +}; + + +#endif -- cgit v1.2.3