CLI wrapper for running Phasor scripts and bytecode in-process.
More...
#include <NativeRuntime.hpp>
|
| | NativeRuntime (const std::vector< uint8_t > &bytecodeData, const int argc, const char **argv) |
| | NativeRuntime (const Phasor::Bytecode &bytecode, const int argc, const char **argv) |
| | NativeRuntime (const std::string &script, const int argc, const char **argv) |
| | NativeRuntime (const Phasor::VM &vm, const std::string &script, const int argc, const char **argv) |
| | NativeRuntime (Phasor::VM *vm, const std::vector< uint8_t > &bytecodeData, const int argc, const char **argv) |
| | ~NativeRuntime () |
| int | run () |
| int | runFunctionInt (std::string functionName) |
| std::optional< std::string > | runFunctionString (std::string functionName) |
| void | addNativeFunction (const std::string &name, void *function) |
|
| static int | eval (VM *vm, const std::string &script) |
CLI wrapper for running Phasor scripts and bytecode in-process.
Allows embedding and running Phasor scripts and bytecode within a native application.
Definition at line 18 of file NativeRuntime.hpp.
◆ NativeRuntime() [1/5]
| Phasor::NativeRuntime::NativeRuntime |
( |
const std::vector< uint8_t > & | bytecodeData, |
|
|
const int | argc, |
|
|
const char ** | argv ) |
◆ NativeRuntime() [2/5]
| Phasor::NativeRuntime::NativeRuntime |
( |
const Phasor::Bytecode & | bytecode, |
|
|
const int | argc, |
|
|
const char ** | argv ) |
◆ NativeRuntime() [3/5]
| Phasor::NativeRuntime::NativeRuntime |
( |
const std::string & | script, |
|
|
const int | argc, |
|
|
const char ** | argv ) |
◆ NativeRuntime() [4/5]
| Phasor::NativeRuntime::NativeRuntime |
( |
const Phasor::VM & | vm, |
|
|
const std::string & | script, |
|
|
const int | argc, |
|
|
const char ** | argv ) |
◆ NativeRuntime() [5/5]
| Phasor::NativeRuntime::NativeRuntime |
( |
Phasor::VM * | vm, |
|
|
const std::vector< uint8_t > & | bytecodeData, |
|
|
const int | argc, |
|
|
const char ** | argv ) |
◆ ~NativeRuntime()
| Phasor::NativeRuntime::~NativeRuntime |
( |
| ) |
|
◆ addNativeFunction()
| void Phasor::NativeRuntime::addNativeFunction |
( |
const std::string & | name, |
|
|
void * | function ) |
◆ eval()
| int Phasor::NativeRuntime::eval |
( |
VM * | vm, |
|
|
const std::string & | script ) |
|
static |
◆ run()
| int Phasor::NativeRuntime::run |
( |
| ) |
|
◆ runFunctionInt()
| int Phasor::NativeRuntime::runFunctionInt |
( |
std::string | functionName | ) |
|
◆ runFunctionString()
| std::optional< std::string > Phasor::NativeRuntime::runFunctionString |
( |
std::string | functionName | ) |
|
◆ m_argc
| int Phasor::NativeRuntime::m_argc |
|
private |
◆ m_argv
| char** Phasor::NativeRuntime::m_argv |
|
private |
◆ m_bytecode
| Bytecode Phasor::NativeRuntime::m_bytecode |
|
private |
◆ m_bytecodeData
| std::vector<uint8_t> Phasor::NativeRuntime::m_bytecodeData |
|
private |
◆ m_script
| std::string Phasor::NativeRuntime::m_script |
|
private |
◆ m_vm
| std::shared_ptr<Phasor::VM> Phasor::NativeRuntime::m_vm |
|
private |
The documentation for this class was generated from the following files: