![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2006 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: simCommandFactory.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00013 00014 #ifndef DtSimCommandFactory_H_ 00015 #define DtSimCommandFactory_H_ 00016 00017 #include <vlutil/vlHashlist.h> 00018 00019 class DtSimCommandFactoryEntry; 00020 class DtReaderWriterRegistry; 00021 class DtSimCommand; 00022 00023 typedef DtSimCommand * (*DtSimCommandCreatorFcn)(); 00024 00027 #include "vrfplan/vrfplanDefines.h" 00028 class DT_DLL_vrfplan DtSimCommandFactory 00029 { 00030 public: 00032 DtSimCommandFactory(); 00033 00035 DtSimCommandFactory(const DtSimCommandFactory& orig); 00036 00038 const DtSimCommandFactory& operator=(const DtSimCommandFactory& orig); 00039 00041 virtual ~DtSimCommandFactory(); 00042 00044 virtual void addCreatorFcn(const DtString& type, const int intType, 00045 DtSimCommandCreatorFcn fcn); 00046 00047 virtual DtSimCommand* createSimCommand(const DtString& type); 00048 virtual DtSimCommand* createSimCommand(int type); 00049 00050 static DtSimCommandFactory* create(); 00051 00052 protected: 00053 DtHashlist myStringTypeHashlist; 00054 DtHashlist myIntTypeHashlist; 00055 00056 }; 00057 00058 #endif 00059 00060