Isis Developer Reference
WorkOrderFactory.h
Go to the documentation of this file.
1 #ifndef WorkOrderFactory_H
2 #define WorkOrderFactory_H
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 
13 #include <QObject>
14 
15 class QString;
16 
17 namespace Isis {
18  class Project;
19  class WorkOrder;
20 
54  public:
55  static WorkOrder *create(Project *project, QString type);
56 
57  private:
58  template<typename ClassType>
59  static void tryType(QString type, Project *project, WorkOrder * &result) {
60  if (ClassType::staticMetaObject.className() == type) {
61  result = new ClassType(project);
62  }
63  }
73 
74  Q_DISABLE_COPY(WorkOrderFactory);
75  };
76 }
77 
78 #endif // WorkOrderFactory_H
SaveProjectWorkOrder.h
ControlHealthMonitorWorkOrder.h
SetActiveControlWorkOrder.h
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
OpenProjectWorkOrder.h
RenameProjectWorkOrder.h
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
TargetGetInfoWorkOrder.h
Isis::WorkOrder
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:311
SaveProjectAsWorkOrder.h
ExportImagesWorkOrder.h
RemoveImagesWorkOrder.h
Isis::IException::Unknown
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
JigsawWorkOrder.h
MoveDownOneSceneWorkOrder.h
TemplateEditViewWorkOrder.h
WorkOrderFactory.h
ImportMapTemplateWorkOrder.h
Footprint2DViewWorkOrder.h
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
IString.h
Isis::Project
The main project for ipce.
Definition: Project.h:289
ImportShapesWorkOrder.h
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
CubeDnViewWorkOrder.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
ImportControlNetWorkOrder.h
SensorGetInfoWorkOrder.h
ImageFileListViewWorkOrder.h
MatrixViewWorkOrder.h
ImportRegistrationTemplateWorkOrder.h
Isis::WorkOrderFactory::create
static WorkOrder * create(Project *project, QString type)
This instantiates a work order given a project and a type name (class name in a string).
Definition: WorkOrderFactory.cpp:50
Isis::IException
Isis exception class.
Definition: IException.h:91
ImportImagesWorkOrder.h
Isis::WorkOrderFactory
Instantiate work orders from QString versions of the class name.
Definition: WorkOrderFactory.h:53
IException.h
CnetEditorViewWorkOrder.h
BundleObservationViewWorkOrder.h
MoveToTopSceneWorkOrder.h
ImageListActionWorkOrder.h
MoveUpOneSceneWorkOrder.h
MoveToBottomSceneWorkOrder.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
SetActiveImageListWorkOrder.h
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
ExportControlNetWorkOrder.h