diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-10-18 17:33:06 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-10-18 17:33:06 +0300 |
commit | 2c12c0652d2b8c8440e1e908f004826840ed14ab (patch) | |
tree | 881dd649f2b15ba5a8cd3aa285d073eee7c73386 /src/importer.cpp | |
parent | 9a23fd146be4ba64b0cb720993bdc73a514fecf2 (diff) | |
download | texo-2c12c0652d2b8c8440e1e908f004826840ed14ab.tar texo-2c12c0652d2b8c8440e1e908f004826840ed14ab.tar.xz texo-2c12c0652d2b8c8440e1e908f004826840ed14ab.zip |
[texo] Semi-working.
Diffstat (limited to 'src/importer.cpp')
-rw-r--r-- | src/importer.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/importer.cpp b/src/importer.cpp index cb8d62e..73f23e6 100644 --- a/src/importer.cpp +++ b/src/importer.cpp @@ -1 +1,22 @@ #include "importer.hpp" + + +TexoImporter::TexoImporter(TexoProducer &producer): producer(producer) +{} + +void TexoImporter::Put(const ScriptVariable &str) +{ + const int len = str.Length(); + for (int i = 0; i < len; ++i) { + Put(str[i]); + } +} + +void TexoImporter::Put(FILE *file) +{ + if (file) { + for (int c = fgetc(file); c != EOF; c = fgetc(file)) { + Put(c); + } + } +} |