ug4
plugin_util.lua File Reference

Functions

function AssertPluginsLoaded (pluginNamesList)
 
function RequiredPlugins (pluginNamesList)
 

Function Documentation

◆ AssertPluginsLoaded()

function AssertPluginsLoaded ( pluginNamesList  )

location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / plugin_util.lua :49-51

function AssertPluginsLoaded(pluginNamesList)
RequiredPlugins(pluginNamesList)
end
function AssertPluginsLoaded(pluginNamesList)
function RequiredPlugins(pluginNamesList)

◆ RequiredPlugins()

function RequiredPlugins ( pluginNamesList  )
Parameters
pluginNamesLista list like {"amg", "d3f"} of plugins to check

location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / plugin_util.lua :32-47

function RequiredPlugins(pluginNamesList)
local notLoadedNames = ""
local cmakePluginString = ""
for i,v in pairs(pluginNamesList) do
if PluginLoaded(v) == false then
notLoadedNames=notLoadedNames..v.." "
cmakePluginString = cmakePluginString.." -D"..v.."=ON"
end
end
if notLoadedNames:len() > 0 then
print("Plugin(s) needed but not loaded: "..notLoadedNames)
print("Please use \n cmake "..cmakePluginString.." ..; make\nin your build directory to add the plugin(s).")
exit()
end
end
function table print(data, style)
UG_API bool PluginLoaded(const std::string &name)
int local(bglp_vertex_descriptor p)
Definition: parallel_matrix.h:57