summaryrefslogtreecommitdiff
path: root/src/script.hpp
blob: ab2221b8ffcbda3e0ec00c0ce8778cf592d0b4b3 (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
26
27
#ifndef TEXO_INCLUDED_SCRIPT
#define TEXO_INCLUDED_SCRIPT

#include "exporter.hpp"


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Texo String Exporter
 * Simple utility class to make output into C string.
 */
class TexoString: public TexoExporter {
public:
    TexoString(char *&str);


    bool Put(char c);
    bool Put(const char *addon);


private:
    char *&str;
    int    len;
    int    size;
};


#endif