27 #include <QCoreApplication> 29 #include <QStringList> 38 Plugin::Plugin() :
Pvl() {
58 QString library = g[
"Library"];
63 QString pluginName = g[
"Routine"];
68 QLibrary lib(libraryFile.
expanded());
69 bool loadedOk = lib.load();
72 path =
"$ISISROOT/lib/";
73 libraryFile = path + library;
76 lib.setFileName(libraryFile.
expanded());
78 QFunctionPointer plugin = lib.resolve(pluginName.toLatin1().data());
80 QString msg =
"Unable to find plugin [" + pluginName +
81 "] in shared library [" + lib.fileName() +
"]";
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
File name manipulation and expansion.
Namespace for the standard library.
Contains multiple PvlContainers.
#define _FILEINFO_
Macro for the filename and line number.
A type of error that cannot be classified as any of the other error types.
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Container for cube-like labels.
PvlGroup & group(const int index)
Return the group at the specified index.
Namespace for ISIS/Bullet specific routines.
QFunctionPointer GetPlugin(const QString &group)
This method returns a void pointer to a C function (i.e., the plugin) It does this by looking in itse...