7 #ifndef CAFU_CONSOLE_INTERPRETER_HPP_INCLUDED
8 #define CAFU_CONSOLE_INTERPRETER_HPP_INCLUDED
10 #include "Templates/Array.hpp"
79 virtual bool RunCommand(
const std::string& Input)=0;
virtual void Unregister(ConVarT *ConVar)=0
Unregisters the given convar from the interpreter again.
This class implements Console Variables ("convars").
Definition: ConVar.hpp:39
virtual ConVarT * FindVar(const std::string &Name)=0
Finds the convar with the given name.
static void RegisterLua(lua_State *LuaState)
Registers the methods of this interface with LuaState as a Lua module as described in the PiL2 book...
Definition: ConsoleInterpreter_LuaBinding.cpp:78
This class is an interface to the console interpreter.
Definition: ConsoleInterpreter.hpp:23
virtual bool RunCommand(const std::string &Input)=0
Compiles and runs the given Lua statements.
virtual ConFuncT * FindFunc(const std::string &Name)=0
Finds the confunc with the given name.
virtual ~ConsoleInterpreterI()
Virtual dtor so that derived classes properly destroy.
Definition: ConsoleInterpreter.hpp:28
virtual std::string LineCompletion(const std::string &LineBegin, ArrayT< std::string > &Completions)=0
This method provides command-line completion for this interpreter.
Definition: ConFunc.hpp:18
virtual void Register(ConVarT *ConVar)=0
Registers a convar with the console interpreter.