summaryrefslogtreecommitdiff
path: root/src/plain.hpp
blob: c5c613c1a5d3f83ecbf5fad4c9df4fe28deddd63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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