TorqueScript  0.2
platformcontext.hpp
1 
15 #pragma once
16 
17 #include <memory>
18 
19 #include <torquescript/filehandlebase.hpp>
20 
21 namespace TorqueScript
22 {
24  {
25  public:
30  virtual void logEcho(const std::string& message);
31 
36  virtual void logError(const std::string& message);
37 
42  virtual void logWarning(const std::string& message);
43 
48  virtual void logDebug(const std::string& message);
49 
56  virtual std::unique_ptr<FileHandleBase> getFileHandle(const std::string& path);
57  };
58 }
Definition: platformcontext.hpp:24
virtual void logWarning(const std::string &message)
Asks the interpreter to handle a warning log message.
virtual void logError(const std::string &message)
Asks the interpreter to handle an error log message.
virtual void logDebug(const std::string &message)
Asks the interpreter to handle a debug log message.
virtual void logEcho(const std::string &message)
Asks the interpreter to handle a simple echo message.
virtual std::unique_ptr< FileHandleBase > getFileHandle(const std::string &path)
Retrieves an abstract file handle to the file at the specified path. This allows for platform-depende...
Definition: ast.hpp:28