|
| LuaInterpreter () |
| LuaInterpreter constructor.
|
|
| ~LuaInterpreter () override |
| LuaInterpreter destructor.
|
|
void | reset () override |
| Clears all variables, restarts from initial state. More...
|
|
bool | execute (const std::string &command, bool save_in_history, bool log) override |
| Executes a single line of code in the interpreted language. More...
|
|
bool | execute_file (const std::string &file_name) override |
| Executes commands from a given file. More...
|
|
Any | resolve (const std::string &id, bool quiet=true) const override |
| Finds a variable by id. More...
|
|
void | bind (const std::string &id, const Any &value) override |
| Binds a value to a variable. More...
|
|
Any | eval (const std::string &expression, bool quiet=true) const override |
| Evaluates a string with an expression. More...
|
|
lua_State * | lua_state () |
| Gets the LUA state. More...
|
|
void | list_names (std::vector< std::string > &names) const override |
| Lists the variable names in this Scope. More...
|
|
| Interpreter () |
| Interpreter constructor.
|
|
void | inspect_meta_type (MetaType *meta_type) |
| Outputs to the logger the methods, slots, properties of a given MetaClass. More...
|
|
void | list_classes () |
| Outputs to the logger the names of all classes registered to GOM.
|
|
void | bind_object (const std::string &id, Object *object) |
| Binds an object to a variable. More...
|
|
Object * | resolve_object (const std::string &id, bool quiet=true) const |
| Finds an objet by id. More...
|
|
Object * | resolve_object_by_global_id (const std::string &id, bool quiet=true) const |
| Finds an objet by global id. More...
|
|
Object * | eval_object (const std::string &expression, bool quiet=true) const |
| Evaluates a string with an expression. More...
|
|
std::string | eval_string (const std::string &expression, bool quiet=true) const |
| Evaluates a string with an expression. More...
|
|
virtual MetaType * | resolve_meta_type (const std::string &type_name) const |
| Finds a MetaType by name. More...
|
|
virtual bool | bind_meta_type (MetaType *mtype) |
| Binds a MetaType. More...
|
|
virtual Object * | create (const ArgList &args) |
| Creates an object. More...
|
|
virtual std::string | get_environment_value (const std::string &name) |
| Gets the value of a Geogram environment value. More...
|
|
virtual void | set_environment_value (const std::string &name, const std::string &value) |
| Sets the value of an environment variable. More...
|
|
virtual void | out (const std::string &message, const std::string &tag="GOM") |
| Displays a message in the terminal or console. More...
|
|
virtual void | err (const std::string &message, const std::string &tag="GOM") |
| Displays an error message in the terminal or console. More...
|
|
virtual void | warn (const std::string &message, const std::string &tag="GOM") |
| Displays a warning message in the terminal or console. More...
|
|
virtual void | status (const std::string &message) |
| Displays a status message. More...
|
|
virtual void | append_dynamic_libraries_path (const std::string &path) |
| Adds a path where dynamic libraries can be loaded. More...
|
|
virtual bool | load_module (const std::string &module_name) |
| Loads a plug-in. More...
|
|
virtual Connection * | connect (Request *from, Callable *to) |
| Connects a signal to a callable. More...
|
|
Interpreter * | interpreter (const std::string &language) |
| Gets an interpreter for a given language. More...
|
|
Interpreter * | interpreter_by_file_extension (const std::string &extension) |
| Gets an interpreter for a given language by file extension. More...
|
|
void | search (const std::string &needle, const std::string &path="") |
| Displays the names of all objects that contain a substring. More...
|
|
const std::string & | get_language () const |
| Gets the name of the interpreted language. More...
|
|
const std::string & | get_filename_extension () const |
| Gets the filename extensions for the interpreted language. More...
|
|
Scope * | get_globals () const |
| Gets the Scope with the global variables. More...
|
|
Scope * | get_meta_types () const |
| Gets the Scope with the meta types. More...
|
|
virtual | ~Interpreter () |
| Interpreter destructor.
|
|
Object * | create (const std::string &classname, const ArgList &args) |
| Creates an object from a classname and arguments list. More...
|
|
virtual void | automatic_completion (const std::string &line, index_t startw, index_t endw, const std::string &cmpword, std::vector< std::string > &matches) |
| Gets the possible automatic completions from a partial command entered by the user in the command line. More...
|
|
virtual void | save_history (const std::string &file_name) const |
| Saves the history to a file. More...
|
|
virtual void | clear_history () |
| Clears the history.
|
|
void | add_to_history (const std::string &command) |
| Adds a command line to the history. More...
|
|
size_t | history_size () const |
| Gets the size of the history. More...
|
|
std::string | history_line (unsigned int l) const |
| Gets one of the commands in the history by line index. More...
|
|
| Object (bool transient=false) |
| Object constructor. More...
|
|
virtual | ~Object () |
| Object destructor.
|
|
virtual MetaClass * | meta_class () const |
| Gets the meta class. More...
|
|
virtual void | set_meta_class (MetaClass *mclass) |
| Sets the meta class. More...
|
|
unsigned int | id () const |
| Gets the identifier of this object. More...
|
|
std::string | string_id () const |
| Gets the unique string identifier. More...
|
|
bool | has_method (const std::string &method_name) const |
| Tests whether a method is defined. More...
|
|
virtual bool | invoke_method (const std::string &method_name, const ArgList &args, Any &ret_val) |
| Invokes a method by method name and argument list, and gets the return value. More...
|
|
bool | invoke_method (const std::string &method_name, const ArgList &args) |
| Invokes a method by method name and argument list. More...
|
|
bool | invoke_method (const std::string &method_name) |
| Invokes a method by method name. More...
|
|
bool | has_property (const std::string &prop_name) const |
| Tests whether a property is defined. More...
|
|
virtual bool | get_property (const std::string &prop_name, std::string &prop_value) const |
| Gets a property. More...
|
|
virtual Connection * | connect_signal_to_slot (const std::string &signal_name, Object *to, const std::string &slot_name) |
| Connects a signal with a slot of another object. More...
|
|
virtual void | add_connection (Connection *connection) |
| Adds a connection to this object. More...
|
|
virtual void | remove_connection (Connection *connection) |
| Removes a connection to this object. More...
|
|
virtual void | get_element (index_t i, Any &value) const |
| Gets an element by index. More...
|
|
virtual void | set_element (index_t i, const Any &value) |
| Sets an element by index. More...
|
|
bool | get_signals_enabled () const |
| Tests wheter signals are enabled. More...
|
|
void | set_signals_enabled (bool value) |
| Enables or disables signals. More...
|
|
bool | get_slots_enabled () const |
| Tests wheter slots are enabled. More...
|
|
void | set_slots_enabled (bool value) |
| Enables or disables slots. More...
|
|
MetaClass * | get_meta_class () const |
| Gets the meta class. More...
|
|
std::string | get_string_id () const |
| Gets the unique string identifier. More...
|
|
virtual std::string | get_doc () const |
| Gets the documentation. More...
|
|
virtual Sign | compare (const Object *other) const |
| Compares this object with another one. More...
|
|
virtual bool | is_a (const MetaType *type) const |
| Tests whether this object inherits a given type. More...
|
|
void | disconnect () |
| Removes all connections from signals of this objects. More...
|
|
void | enable_signals () |
| Enables signals.
|
|
void | disable_signals () |
| Disables signals.
|
|
void | enable_slots () |
| Enables slots.
|
|
void | disable_slots () |
| Disables slots.
|
|
void | set_properties (const ArgList &args) |
| Sets several properties in a single call. More...
|
|
virtual bool | set_property (const std::string &name, const std::string &value) |
| Sets an individual property. More...
|
|
void | help () const |
| Displays some help about this object. More...
|
|
virtual bool | set_property (const std::string &name, const Any &value) |
| Sets an individual property. More...
|
|
virtual bool | get_property (const std::string &prop_name, Any &prop_value) const |
| Gets a property. More...
|
|
void | ref () const |
| Increments the reference count. More...
|
|
void | unref () const |
| Decrements the reference count. More...
|
|
bool | is_shared () const |
| Check if the object is shared. More...
|
|
int | nb_refs () const |
| Gets the number of references that point to this object. More...
|
|
The main class that interfaces the Python interpreter with Graphite.
Definition at line 94 of file lua_interpreter.h.