20 #ifndef TLP_PLUGINLOADER
21 #define TLP_PLUGINLOADER
24 #include <tulip/WithDependency.h>
48 virtual void start(
const std::string &path) = 0;
60 virtual void loading(
const std::string &filename) = 0;
69 virtual void loaded(
const Plugin *info,
const std::list<Dependency> &dependencies) = 0;
76 virtual void aborted(
const std::string &filename,
const std::string &errormsg) = 0;
83 virtual void finished(
bool state,
const std::string &msg) = 0;
Top-level interface for plug-ins.
A callback class when loading plugins into Tulip.
virtual void loaded(const Plugin *info, const std::list< Dependency > &dependencies)=0
Indicates that a plugin has been loaded successfully.
virtual void numberOfFiles(int)
Indicates the number of files to be loaded.
virtual void aborted(const std::string &filename, const std::string &errormsg)=0
Indicates that an error occurred when trying to load a file.
virtual void finished(bool state, const std::string &msg)=0
Indicates that a file has finished being loaded.
virtual void start(const std::string &path)=0
Called when starting to load plugins into a given directory.
virtual void loading(const std::string &filename)=0
Indicates that a new file is being loaded.