|
Geogram Version 1.9.7
A programming library of geometric algorithms
|
LUA bindings for geogram IO and filesystem functions. More...
Go to the source code of this file.
Functions | |
| void | init_lua_io (lua_State *L) |
| Initializes LUA filesystem operations. | |
| void | register_embedded_lua_file (const char *filename, const char *data) |
| Registers an "embedded file", i.e. a static string with some LUA sources in it. | |
| void | get_embedded_lua_file (const char *filename, const char **data) |
| Gets an "embedded file" by its filename. | |
| void | list_embedded_lua_files (std::vector< std::string > &filenames) |
| Lists the "embedded file" filenames. | |
LUA bindings for geogram IO and filesystem functions.
Definition in file lua_io.h.
| void get_embedded_lua_file | ( | const char * | filename, |
| const char ** | data | ||
| ) |
Gets an "embedded file" by its filename.
| [in] | filename | the name that was previously used to register the file, using register_embedded_file() |
| [out] | data | a pointer to the static string with the "file" data, or nullptr if no file was registered with that name. |
| void init_lua_io | ( | lua_State * | L | ) |
Initializes LUA filesystem operations.
| [in] | L | a pointer to the LUA state. |
| void list_embedded_lua_files | ( | std::vector< std::string > & | filenames | ) |
Lists the "embedded file" filenames.
| [out] | filenames | a vector with all the filenames that were previously registered using register_embedded_lua_file() |
| void register_embedded_lua_file | ( | const char * | filename, |
| const char * | data | ||
| ) |
Registers an "embedded file", i.e. a static string with some LUA sources in it.
| [in] | filename | the name of the "file" to be used to retreive the data. |
| [in] | data | the static string with the sources associated with the file. |