From 2c12c0652d2b8c8440e1e908f004826840ed14ab Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 18 Oct 2019 17:33:06 +0300 Subject: [texo] Semi-working. --- src/importer.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/importer.cpp') 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); + } + } +} -- cgit v1.2.3