Isis 3 Programmer Reference
WorkOrderFactory.cpp
1 #include "WorkOrderFactory.h"
2 
6 #include "CubeDnViewWorkOrder.h"
7 #include "ExportControlNetWorkOrder.h"
8 #include "ExportImagesWorkOrder.h"
10 #include "IException.h"
12 #include "ImageListActionWorkOrder.h"
14 #include "ImportImagesWorkOrder.h"
15 #include "ImportShapesWorkOrder.h"
18 #include "IString.h"
19 #include "JigsawWorkOrder.h"
20 #include "MatrixViewWorkOrder.h"
21 #include "MoveDownOneSceneWorkOrder.h"
22 #include "MoveToBottomSceneWorkOrder.h"
23 #include "MoveToTopSceneWorkOrder.h"
24 #include "MoveUpOneSceneWorkOrder.h"
25 #include "OpenProjectWorkOrder.h"
26 #include "RemoveImagesWorkOrder.h"
27 #include "RenameProjectWorkOrder.h"
28 #include "SaveProjectAsWorkOrder.h"
29 #include "SaveProjectWorkOrder.h"
30 #include "SensorGetInfoWorkOrder.h"
33 #include "TargetGetInfoWorkOrder.h"
35 
36 namespace Isis {
50  WorkOrder *WorkOrderFactory::create(Project *project, QString type) {
51  WorkOrder *result = NULL;
52 
53  tryType<BundleObservationViewWorkOrder>(type, project, result);
54  tryType<CnetEditorViewWorkOrder>(type, project, result);
55  tryType<ControlHealthMonitorWorkOrder>(type, project, result);
56  tryType<CubeDnViewWorkOrder>(type, project, result);
57  tryType<ExportImagesWorkOrder>(type, project, result);
58  tryType<ExportControlNetWorkOrder>(type, project, result);
59  tryType<Footprint2DViewWorkOrder>(type, project, result);
60  tryType<ImageFileListViewWorkOrder>(type, project, result);
61  tryType<ImageListActionWorkOrder>(type, project, result);
62  tryType<ImportControlNetWorkOrder>(type, project, result);
63  tryType<ImportImagesWorkOrder>(type, project, result);
64  tryType<ImportShapesWorkOrder>(type, project, result);
65  tryType<ImportMapTemplateWorkOrder>(type, project, result);
66  tryType<ImportRegistrationTemplateWorkOrder>(type, project, result);
67  tryType<JigsawWorkOrder>(type, project, result);
68  tryType<MatrixViewWorkOrder>(type, project, result);
69  tryType<MoveDownOneSceneWorkOrder>(type, project, result);
70  tryType<MoveToBottomSceneWorkOrder>(type, project, result);
71  tryType<MoveToTopSceneWorkOrder>(type, project, result);
72  tryType<MoveUpOneSceneWorkOrder>(type, project, result);
73  tryType<OpenProjectWorkOrder>(type, project, result);
74  tryType<RemoveImagesWorkOrder>(type, project, result);
75  tryType<RenameProjectWorkOrder>(type, project, result);
76  tryType<SaveProjectAsWorkOrder>(type, project, result);
77  tryType<SaveProjectWorkOrder>(type, project, result);
78  tryType<SensorGetInfoWorkOrder>(type, project, result);
79  tryType<SetActiveControlWorkOrder>(type, project, result);
80  tryType<SetActiveImageListWorkOrder>(type, project, result);
81  tryType<TargetGetInfoWorkOrder>(type, project, result);
82  tryType<TemplateEditViewWorkOrder>(type, project, result);
83 
84  if (!result) {
86  QObject::tr("Could not create work order of type [%1] through "
87  "WorkOrderFactory").arg(type),
88  _FILEINFO_);
89  }
90 
91  return result;
92  }
93 }
The main project for ipce.
Definition: Project.h:289
static WorkOrder * create(Project *project, QString type)
This instantiates a work order given a project and a type name (class name in a string).
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:322
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:40
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:134
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Isis exception class.
Definition: IException.h:107
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.