8#include "NormModelFactory.h"
11#include "IException.h"
38 PvlGroup &algo = pvl.findObject(
"NormalizationModel")
40 QString algorithm =
"";
41 if (algo.hasKeyword(
"NormName")) {
42 algorithm = QString(algo[
"NormName"]);
44 else if (algo.hasKeyword(
"Name")) {
45 algorithm = QString(algo[
"Name"]);
48 QString msg =
"Keyword [Name] or keyword [NormName] must ";
49 msg +=
"exist in [Group = Algorithm]";
57 p->read(
"NormModel.plugin");
60 p->read(
"$ISISROOT/lib/NormModel.plugin");
66 p->GetPlugin(algorithm);
67 return (*plugin)(pvl, pmodel);
94 PvlGroup &algo = pvl.findObject(
"NormalizationModel")
96 QString algorithm =
"";
97 if (algo.hasKeyword(
"NormName")) {
98 algorithm = QString(algo[
"NormName"]);
100 else if (algo.hasKeyword(
"Name")) {
101 algorithm = QString(algo[
"Name"]);
104 IString msg =
"Keyword [Name] or keyword [NormName] must ";
105 msg +=
"exist in [Group = Algorithm]";
113 p->read(
"NormModel.plugin");
116 p->read(
"$ISISROOT/lib/NormModel.plugin");
124 p->GetPlugin(algorithm);
125 return (*plugin)(pvl, pmodel, amodel);
Isotropic atmos scattering model.
File name manipulation and expansion.
bool fileExists() const
Returns true if the file exists; false otherwise.
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Adds specific functionality to C++ strings.
static NormModel * Create(Pvl &pvl, PhotoModel &pmodel)
Create a NormModel object using a PVL specification.
Loads plugins from a shared library.
Contains multiple PvlContainers.
Container for cube-like labels.
@ Traverse
Search child objects.
This is free and unencumbered software released into the public domain.