![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1999 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: taskFactory.h,v $ $Revision: 1.8 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00013 00014 #ifndef DtSimTaskFactory_H_ 00015 #define DtSimTaskFactory_H_ 00016 00017 #include "vrfutil/stringAndIntKeyFactory.h" 00018 #include "vrftasks/vrftasksDefines.h" 00019 00020 class DtSimTask; 00021 00025 class DT_DLL_vrftasks DtSimTaskFactory : public DtStringAndIntKeyFactory<DtSimTask> 00026 { 00027 public: 00028 DtSimTaskFactory(); 00029 virtual ~DtSimTaskFactory(); 00030 00033 00034 virtual DtSimTask* createTask(const DtString& type); 00035 virtual DtSimTask* createTask(int type); 00037 00038 static DtSimTaskFactory* create(); 00039 00040 protected: 00042 virtual DtString creationTypeName() const; 00043 }; 00044 00045 typedef DtSimTaskFactory::DtCreatorFcn DtSimTaskCreatorFcn; 00046 00047 #endif 00048 00049