8#include "PhotoModelFactory.h"
11#include "IException.h"
37 PvlGroup &algo = pvl.findObject(
"PhotometricModel")
40 QString algorithm =
"";
41 if (algo.hasKeyword(
"PhtName")) {
42 algorithm = algo[
"PhtName"][0];
44 else if (algo.hasKeyword(
"Name")) {
45 algorithm = algo[
"Name"][0];
48 QString msg =
"Keyword [Name] or keyword [PhtName] must ";
49 msg +=
"exist in [Group = Algorithm]";
57 p->read(
"PhotoModel.plugin");
60 p->read(
"$ISISROOT/lib/PhotoModel.plugin");
65 plugin = (
PhotoModel * ( *)(
Pvl & pvl)) p->GetPlugin(algorithm);
66 return (*plugin)(pvl);
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....
static PhotoModel * Create(Pvl &pvl)
Create a PhotoModel 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.