|
Isis 3 Programmer Reference
|
11 #include <QCoreApplication>
13 #include <QStringList>
16 #include "IException.h"
22 Plugin::Plugin() :
Pvl() {
42 QString library = g[
"Library"];
47 QString pluginName = g[
"Routine"];
52 QLibrary lib(libraryFile.
expanded());
53 bool loadedOk = lib.load();
56 path =
"$ISISROOT/lib/";
57 libraryFile = path + library;
60 lib.setFileName(libraryFile.
expanded());
62 QFunctionPointer plugin = lib.resolve(pluginName.toLatin1().data());
64 QString msg =
"Unable to find plugin [" + pluginName +
65 "] in shared library [" + lib.fileName() +
"]";
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
PvlGroup & group(const int index)
Return the group at the specified index.
File name manipulation and expansion.
@ Unknown
A type of error that cannot be classified as any of the other error types.
Container for cube-like labels.
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Contains multiple PvlContainers.
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...
Namespace for the standard library.
This is free and unencumbered software released into the public domain.