19 #include <unordered_map>
21 #include <torquescript/consoleobject.hpp>
22 #include <torquescript/filehandlebase.hpp>
23 #include <torquescript/executionscope.hpp>
33 DECLARE_CONSOLE_OBJECT_BODY()
45 bool openForRead(
const std::string& path);
49 std::string readLine();
56 void write(
const std::string& written);
64 std::unique_ptr<FileHandleBase> mHandle;
Definition: consoleobject.hpp:45
Base class for object instances recognized by the interpreter. These object instances may contain mem...
Definition: consoleobject.hpp:143
A FileObject is a class that may be used to interact with the filesystem provided by the PlatformCont...
Definition: fileobject.hpp:32
void write(const std::string &written)
Writes a string to the file, if the FileObject has been opened with write mode enabled.
bool openForWrite(const std::string &path)
Opens a file at the specified path in write-only mode.
The interpreter class represents a high level instance of the TorqueScript interpreter....
Definition: interpreter.hpp:46
Struct describing a tree of console object initializations.
Definition: executionscope.hpp:48