USGS

Isis 3.0 Object Programmers' Reference

Home

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).
 

Private Member Functions

 WorkOrderFactory ()
 This class cannot be instantiated.
 
 ~WorkOrderFactory ()
 Since this class cannot be instantiated, it also cannot be destroyed.
 
 Q_DISABLE_COPY (WorkOrderFactory)
 

Static Private Member Functions

template<typename ClassType >
static void tryType (QString type, Project *project, WorkOrder *&result)
 

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
History:
2012-10-19 Steven Lambright - Added tryType() to reduce the chances of programmer mistakes and to reduce duplicate code.

Definition at line 46 of file WorkOrderFactory.h.

Constructor & Destructor Documentation

Isis::WorkOrderFactory::WorkOrderFactory ( )
private

This class cannot be instantiated.

The constructor is not implemented.

Isis::WorkOrderFactory::~WorkOrderFactory ( )
private

Since this class cannot be instantiated, it also cannot be destroyed.

The destructor is not implemented.

Member Function Documentation

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"

Definition at line 33 of file WorkOrderFactory.cpp.

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


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