summaryrefslogtreecommitdiff
path: root/src/script.hpp
blob: 77f75dfc895f4e31108adfe4c05593324fbe454e (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