20 #ifndef vtkPVPluginLoader_h 21 #define vtkPVPluginLoader_h 40 bool LoadPluginByName(
const char* name,
bool acceptDelayed =
true);
45 bool LoadPlugin(
const char* filename) {
return this->LoadPluginInternal(filename,
false); }
46 bool LoadPluginSilently(
const char* filename) {
return this->LoadPluginInternal(filename,
true); }
53 bool LoadDelayedLoadPlugin(
54 const std::string&
name,
const std::vector<std::string>& xmls,
const std::string& filename);
61 void LoadPluginConfigurationXMLFromString(
const char* xmlcontents);
62 void LoadPluginConfigurationXML(
const char* configurationFile);
68 void LoadPluginsFromPluginSearchPath();
85 void LoadPluginsFromPluginConfigFile();
90 void LoadPluginsFromPath(
const char* path);
97 vtkGetStringMacro(FileName);
105 vtkGetStringMacro(PluginName);
113 vtkGetStringMacro(PluginVersion);
121 vtkGetStringMacro(ErrorString);
130 vtkGetStringMacro(SearchPaths);
137 vtkGetMacro(Loaded,
bool);
145 static void UnregisterLoadPluginCallback(
int id);
153 static void PluginLibraryUnloaded(
const char* pluginname);
159 bool LoadPluginInternal(
const char* filename,
bool no_errors);
171 bool IsLoaded(
const char* filename,
bool acceptDelayed =
false);
173 vtkSetStringMacro(ErrorString);
174 vtkSetStringMacro(PluginName);
175 vtkSetStringMacro(PluginVersion);
176 vtkSetStringMacro(FileName);
177 vtkSetStringMacro(SearchPaths);
189 static bool CallPluginLoaderCallbacks(
const char* nameOrFile);
bool LoadPluginSilently(const char *filename)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
defines the core interface for any ParaView plugin.
Used to load ParaView plugins.
static class VTKREMOTINGCORE_EXPORT vtkPVPluginLoaderCleanerInitializer vtkPVPluginLoaderCleanerInitializerInstance
std::function< bool(const char *)> PluginLoaderCallback
#define VTKREMOTINGCORE_EXPORT
bool LoadPlugin(const char *filename)
Tries to the load the plugin given the path to the plugin file.
void operator=(const vtkObjectBase &)