![]()  | 
  
    Isis 3 Programmer Reference
    
   | 
 
Instantiate work orders from QString versions of the class name. More...
#include <WorkOrderFactory.h>

Static Public Member Functions | |
| static WorkOrder * | create (Project *project, QString type) | 
| This instantiates a work order given a project and a type name (class name in a string).  More... | |
Private Member Functions | |
| WorkOrderFactory () | |
| This class cannot be instantiated.  More... | |
| ~WorkOrderFactory () | |
| Since this class cannot be instantiated, it also cannot be destroyed.  More... | |
| Q_DISABLE_COPY (WorkOrderFactory) | |
Static Private Member Functions | |
| template<typename ClassType > | |
| static void | tryType (QString type, Project *project, WorkOrder *&result) | 
Instantiate work orders from QString versions of the class name.
This factory creates work orders. To create a work order, you need a Project and the name of the work order. Names of work orders are strings, such as "Isis::ImportImagesWorkOrder"
Definition at line 53 of file WorkOrderFactory.h.
      
  | 
  private | 
This class cannot be instantiated.
The constructor is not implemented.
      
  | 
  private | 
Since this class cannot be instantiated, it also cannot be destroyed.
The destructor is not implemented.
This instantiates a work order given a project and a type name (class name in a string).
Ownership is passed to the caller. The work orders are QObject's so please be mindful of which thread they are in.
| project | The project to give to the work order constructor | 
| type | The work order type (class name) - for example "Isis::ImportImagesWorkOrder" | 
| IException::Unknown | "Could not create the work order through WorkOrderFactory" | 
Definition at line 50 of file WorkOrderFactory.cpp.
References Isis::IException::Unknown.