HoverRace  2.0
Classes | Public Member Functions | Private Types | Private Attributes | List of all members
HoverRace::Client::HoverScript::RuntimeEnv Class Reference

Basic restricted environment for potentially untrusted code. More...

#include <RuntimeEnv.h>

+ Inheritance diagram for HoverRace::Client::HoverScript::RuntimeEnv:

Classes

class  LogStream
 
class  LogStreamBuf
 

Public Member Functions

 RuntimeEnv (Script::Core &scripting)
 
virtual ~RuntimeEnv ()
 
- Public Member Functions inherited from HoverRace::Script::Env
 Env (Core &scripting)
 Constructor. More...
 
 Env (const Env &)=delete
 
virtual ~Env ()
 
Envoperator= (const Env &)=delete
 
bool RunScript (const Util::OS::path_t &filename)
 Execute a script from a file. More...
 

Private Types

using SUPER = Script::Env
 

Private Attributes

Script::Core::OutHandle outHandle
 

Additional Inherited Members

- Protected Member Functions inherited from HoverRace::Script::Env
void CopyGlobals ()
 Copy the global environment into the current table at the top of the stack. More...
 
template<class ReturnPolicy = Core::PrintReturn>
int Execute (const Core::Chunk &chunk, ReturnPolicy rp=ReturnPolicy())
 Execute a chunk of code in the current environment. More...
 
CoreGetScripting () const
 
lua_State * GetState () const
 
virtual void InitEnv ()=0
 Initialize the environment in which scripts will run in. More...
 
void LogScriptError (const Script::ScriptExn &ex)
 
void PushEnv ()
 Push the environment onto the stack. More...
 
void SetHelpHandler (Help::HelpHandler *helpHandler)
 
- Static Protected Member Functions inherited from HoverRace::Script::Env
static Core::Chunk LoadChunkFromFile (const Util::OS::path_t &filename)
 Load a chunk from a file. More...
 

Detailed Description

Basic restricted environment for potentially untrusted code.

Author
Michael Imamura

Member Typedef Documentation

Constructor & Destructor Documentation

HoverRace::Client::HoverScript::RuntimeEnv::RuntimeEnv ( Script::Core scripting)
HoverRace::Client::HoverScript::RuntimeEnv::~RuntimeEnv ( )
virtual

Member Data Documentation

Script::Core::OutHandle HoverRace::Client::HoverScript::RuntimeEnv::outHandle
private

The documentation for this class was generated from the following files: