VR-Forces 4.0.4 Class Documentation
include/vrfplan/taskCommand.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2006 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: taskCommand.h,v $ $Revision: 1.3 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00013 
00014 #ifndef taskCommand_h
00015 #define taskCommand_h
00016 
00017 #include "vrfplan/simCommand.h"
00018 #include "vrfplan/vrfplanDefines.h"
00019 #include "vrfutil/rwString.h"
00020 
00021 class DtSimTask;
00022 
00026 class DT_DLL_vrfplan DtTaskCommand : public DtSimCommand
00027 {
00028 public:
00030    DtTaskCommand();
00031 
00033    DtTaskCommand(const DtString& writeName,
00034       DtReaderWriterRegistry* parentRegistry = NULL);
00035 
00037    DtTaskCommand(const DtString & writeName, const DtTaskCommand& orig,
00038       DtReaderWriterRegistry* parentRegistry = NULL);
00039 
00041    virtual ~DtTaskCommand();
00042 
00044    DtTaskCommand& operator=(const DtTaskCommand& orig);
00045 
00047    int type() const;
00048 
00050    virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
00051       parentRegistry = 0) const;
00052 
00054 
00055    virtual DtString objectName() const;
00056    virtual void setObjectName(const DtString& name);
00058 
00060    virtual const DtSimTask* task() const;
00062    virtual void setTask(const DtSimTask* task);
00063 
00065    virtual DtString stringRep() const;
00066 
00068    virtual int netRepSize() const;
00069 
00071    virtual bool setFromNet(const char* contentBuffer, 
00072       unsigned contentSize);
00073 
00075    virtual bool setToNet();
00076 
00078    static DtSimCommand* creator();
00079 
00080 protected:
00082 
00083    virtual void putData(FILE *fp, int indentLevel = 0);
00084    virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
00085       const DtVariableBindingsList& variableBindings);
00087 
00088 protected:
00089    DtRwString myObjectName;
00090    DtSimTask* myTask;
00091 };
00092 
00093 #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)