VR-Forces 4.0.4 Class Documentation
include/vrftasks/simTaskState.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: simTaskState.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00013 
00014 
00015 #ifndef simTaskState_H_
00016 #define simTaskState_H_
00017 
00018 #include "vrfutil/rdrWritr.h"
00019 #include "vrftasks/taskStateFactory.h"
00020 #include "vrftasks/vrftasksDefines.h"
00021 
00031 class DT_DLL_vrftasks DtSimTaskState : public DtReaderWriter
00032 {
00033 public:
00035    DtSimTaskState();
00036 
00040    DtSimTaskState(const DtString & writeName,
00041       DtReaderWriterRegistry * parentRegistry = 0);
00042 
00044    DtSimTaskState(const DtString & writeName, const DtSimTaskState & orig,
00045       DtReaderWriterRegistry * parentRegistry = 0);
00046 
00048    const DtSimTaskState & operator=(const DtSimTaskState & orig);
00049 
00051    virtual ~DtSimTaskState();
00052 
00055    virtual bool init();
00056 
00064    virtual int type() const;
00065 
00070    virtual DtSimTaskState * clone(const DtString & name, DtReaderWriterRegistry * parentRegistry = 0) const;
00071 
00074    virtual void putData(FILE *fp, int indentLevel = 0);
00075 
00078    virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
00079       const DtVariableBindingsList& variableBindings);
00080 
00091    static DtSimTaskState * createTaskState(DtlObjPtr mtlStream);
00092    static DtSimTaskState * createTaskState(int taskStateType);
00093 
00095    static void addTaskStateCreatorFcn(const DtString & taskName, int taskType,
00096       DtSimTaskStateCreatorFcn fcn);
00097 
00098    static void setFactory(DtSimTaskStateFactory * factory);
00099    static DtSimTaskStateFactory* factory();
00100 
00101    static bool getTaskStateNameFromTaskStateType(int taskStateType, DtString& taskStateName);
00102    static bool getTaskStateTypeFromTaskStateName(const DtString& taskStateName,
00103       int& taskStateType);
00104 
00105    static DtSimTaskStateFactory*  myFactory;
00106 };
00107 
00108 #endif
00109 
00110 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)