VR-Forces 4.0.4 Class Documentation
include/vrfplan/taskStmt.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: taskStmt.h,v $ $Revision: 1.20 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtTaskStmt_H_
00013 #define DtTaskStmt_H_
00014 
00015 class DtTaskStmt;
00016 
00017 #include "vrfplan/simStmt.h"
00018 #include <vlutil/vlNetTypes.h>
00019 #include "vrfplan/vrfplanDefines.h"
00020 
00021 const char DtTaskStmtTypeName[] = "Task";
00022 
00023 class DtSimTask;
00024 
00026 class DT_DLL_vrfplan DtTaskStmt : public DtSimStatement
00027 {
00028 public:
00029 
00032 
00034    DtTaskStmt(DtReaderWriterRegistry* parentRegistry = NULL);
00035 
00037    DtTaskStmt(const DtTaskStmt& orig,
00038       DtReaderWriterRegistry* parentRegistry = NULL);
00039 
00041    virtual ~DtTaskStmt();
00042 
00044    DtTaskStmt& operator=(const DtTaskStmt& orig);
00045 
00047    virtual DtSimStatement* clone(
00048       DtReaderWriterRegistry* parentRegistry = NULL) const;
00049 
00051    virtual int type() const;
00052 
00055    virtual void execute(DtPlan& planContext);
00056 
00064    virtual DtString stringRep(int subBlockIndex = DtSR_STMT) const;
00065 
00067    virtual DtSimTask* task() const;
00069    virtual void setTask(DtSimTask* arg);
00070 
00075    virtual void putSelf(FILE *fp, int indentLevel = 0, 
00076       bool writeUnspecified = false, const DtFilename& path = DtReaderWriter::appPath());
00077 
00080    virtual void getSelf(DtlObjPtr args, const DtFilename& searchPath,
00081       const DtVariableBindingsList& variableBindings);  
00082 
00084    virtual int netRepSize() const;
00085 
00087    virtual bool setFromNet(const char* contentBuffer, 
00088       unsigned contentSize);
00089 
00092    virtual bool setToNet();
00093 
00094    static DtSimStatement * creator(DtReaderWriterRegistry* parentRegistry = NULL);
00095 
00096 protected:
00097 
00098    DtSimTask* myTask;
00099 };
00100 
00101 #endif

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)