summaryrefslogtreecommitdiff
path: root/src/script.hpp
blob: 029047d140c38a8207e7e6e2bbb3499d9010a42c (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_SCRIPT
#define TEXO_INCLUDED_SCRIPT

#include "exporter.hpp"

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Texo String Exporter
 * Simple utility class to make output into Script Variable,
 * which can be easily transformed into C string via c_str method.
 */
class TexoExporterString: public TexoExporter {
public:
    TexoExporterString(ScriptVariable & str);


    bool Put(char c);
    bool Put(const ScriptVariable & addon);


private:
    ScriptVariable & str;
};


#endif