λ61
|
#include <FileBackedScriptEnvironment.hpp>
Public Member Functions | |
const std::string & | getScriptFilePath () const |
std::string | toString () const override |
Returns a human-readable string representation of the object. | |
FileBackedScriptEnvironment (const std::string &scriptFilePath, l61_stat &scriptCtx) | |
~FileBackedScriptEnvironment () override=default | |
Public Member Functions inherited from l61::ScriptEngine::ScriptEnvironment | |
template<class T> | |
void | addValue (const std::string &key, T &&value) |
template<class T> | |
T | getValue (const std::string &key) |
template<class T> | |
void | setValue (const std::string &key, const T &value) |
bool | has (const std::string &key) |
sol::table | makeTable (const std::string &name) |
ScriptEnvironment (const ScriptEnvironment &)=delete | |
ScriptEnvironment (ScriptEnvironment &&)=delete | |
ScriptEnvironment & | operator= (const ScriptEnvironment &)=delete |
void | specialRun (const std::function< void(sol::state &)> &func) override |
void | exec (const std::string &code) final |
for user input | |
void | attachDebugger (AbstractScriptDebugger *debugger) override |
sol::protected_function_result | runCodeBlock (const std::string &luaCode) override |
~ScriptEnvironment () override | |
Public Member Functions inherited from l61::Object | |
virtual | ~Object ()=default |
virtual std::size_t | hashCode () const |
Returns a hash code for the object. | |
std::string | typeName () const |
Returns the demangled name of the type. | |
const std::type_info & | typeInfo () const |
Returns RTTI type information object. | |
virtual nlohmann::json | toJsonValue () const |
Serializes the object into JSON form. | |
operator std::string () const | |
Explicit conversion operator to std::string. | |
operator nlohmann::json () const | |
Explicit conversion operator to nlohmann::json. |
Private Attributes | |
const std::string | scriptFilePath |
Additional Inherited Members | |
Protected Member Functions inherited from l61::ScriptEngine::ScriptEnvironment | |
void | lib61_setup () |
sol::state & | getLuaCtx () override |
l61_stat & | getScriptCtx () |
ScriptEnvironment (l61_stat &scriptCtx) | |
Static Protected Member Functions inherited from l61::ScriptEngine::ScriptEnvironment | |
static sol::table | lua_mountLib (sol::this_state state, const std::string &libraryName) |
|
explicit |
|
overridedefault |
const std::string & l61::ScriptEngine::FileBackedScriptEnvironment::getScriptFilePath | ( | ) | const |
|
overridevirtual |
Returns a human-readable string representation of the object.
Derived classes should override this to provide a meaningful textual description of their internal state. Default implementation may just return the type name or placeholder text.
Reimplemented from l61::Object.
|
private |