Description
|
Retrieves a plugin name that was previously registered with sim.loadModule. The simulator normally automatically loads and registers plugins present in the application directory. Users can use the sim.getModuleName to verify if a specific module is present
|
C/C++ synopsis
|
simChar* simGetModuleName(simInt index,sumUChar* moduleVersion)
|
C/C++ parameters |
index: index to a module. To list-up all module names, start with index=0 and increment index until return value is nullptr
moduleVersion: version of the plugin. Can be nullptr.
|
C/C++ return value
|
Name of the module or nullptr if no module is available at index position, or in case of an error. The user is in charge of destroying the returned name with simReleaseBuffer
|
Lua synopsis
|
string moduleName,int moduleVersion=sim.getModuleName(int index)
|
Lua parameters |
index: index to a module. To list-up all module names, start with index=0 and increment index until return value is nil |
Lua return values
|
moduleName: name of the module or nil if no module is available at that index position.
moduleVersion: version of the plugin
|
Python synopsis |
string moduleName,int moduleVersion=sim.getModuleName(int index) |