1 #ifndef WorkOrderFactory_H
2 #define WorkOrderFactory_H
59 template<
typename ClassType>
61 if (ClassType::staticMetaObject.className() == type) {
62 result =
new ClassType(project);
79 #endif // WorkOrderFactory_H
The main project for cnetsuite.
Definition: Project.h:105
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:45
Parent class for anything that performs an action in Project.
Definition: WorkOrder.h:104
Instantiate work orders from QString versions of the class name.
Definition: WorkOrderFactory.h:54