Isis Developer Reference
Isis::WorkOrderFactory Class Reference

Instantiate work orders from QString versions of the class name. More...

#include <WorkOrderFactory.h>

Collaboration diagram for Isis::WorkOrderFactory:
Collaboration graph

Static Public Member Functions

static WorkOrdercreate (Project *project, QString type)
 This instantiates a work order given a project and a type name (class name in a string).
 

Detailed Description

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"

Author
2012-08-22 Steven Lambright

Member Function Documentation

◆ create()

WorkOrder * Isis::WorkOrderFactory::create ( Project * project,
QString type )
static

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.

Parameters
projectThe project to give to the work order constructor
typeThe work order type (class name) - for example "Isis::ImportImagesWorkOrder"
Exceptions
IException::Unknown"Could not create the work order through WorkOrderFactory"
Returns
WorkOrder Returns the instantiated WorkOrder

References _FILEINFO_, and Isis::IException::Unknown.


The documentation for this class was generated from the following files: