8#include "AtmosModelFactory.h"
11#include "IException.h"
47 PvlGroup &algo = pvl.findObject(
"AtmosphericModel")
48 .findGroup(
"Algorithm", Pvl::Traverse);
50 QString algorithm =
"";
51 if(algo.hasKeyword(
"AtmName")) {
52 algorithm = QString(algo[
"AtmName"]);
54 else if(algo.hasKeyword(
"Name")) {
55 algorithm = QString(algo[
"Name"]);
58 QString msg =
"Keyword [Name] or keyword [AtmName] must ";
59 msg +=
"exist in [Group = Algorithm]";
60 throw IException(IException::User, msg, _FILEINFO_);
65 FileName f(
"AtmosModel.plugin");
67 p->read(
"AtmosModel.plugin");
70 p->read(
"$ISISROOT/lib/AtmosModel.plugin");
77 return (*plugin)(pvl, pmodel);
static AtmosModel * Create(Pvl &pvl, PhotoModel &pmodel)
Create an AtmosModel object using a PVL specification.
Isotropic atmos scattering model.
Loads plugins from a shared library.
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...
This is free and unencumbered software released into the public domain.