VR-Forces 4.0.4 Class Documentation
include/vrftasks/launchExpendableResourceTask.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2011 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: launchExpendableResourceTaskTask.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ** Created: 4/26/11 MEM
00008 *******************************************************************************/
00009 
00012 
00018 
00019 
00020 #pragma once
00021 
00022 #include <vlutil/vlNetTypes.h>
00023 
00024 #include "vrftasks/simTask.h"
00025 #include "vrfutil/rwString.h"
00026 #include "vrfutil/rwReal.h"
00027 #include "vrfutil/rwInt.h"
00028 #include "vrfutil/iteratorBase.h"
00039 #include "vrftasks/vrftasksDefines.h"
00040 class DT_DLL_vrftasks DtLaunchExpendableResourceTask : public DtSimTask
00041 {
00042 
00043 public:
00044 
00046    DtLaunchExpendableResourceTask();
00047 
00050    DtLaunchExpendableResourceTask(const DtString & writeName, 
00051       DtReaderWriterRegistry * parentRegistry = 0);
00052 
00054    DtLaunchExpendableResourceTask(const DtString & writeName, const DtLaunchExpendableResourceTask & orig, 
00055       DtReaderWriterRegistry * parentRegistry = 0);
00056 
00058    const DtLaunchExpendableResourceTask & operator=(const DtLaunchExpendableResourceTask & orig);
00059 
00060    virtual ~DtLaunchExpendableResourceTask();
00061 
00063    virtual int type() const;
00064 
00066    virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry * 
00067       parentRegistry = 0) const;
00068 
00070    virtual DtString stringRep() const;
00071 
00073    virtual const DtString & expendableResourceName() const;
00074    virtual void setExpendableResourceName(const DtString & name);
00075 
00077    virtual const int numberToFire() const;
00078    virtual void setNumberToFire(const int number);
00079 
00081    virtual const double timeIntervalBetweenFiring() const;
00082    virtual void setTimeIntervalBetweenFiring(const double interval);
00083 
00084    virtual int netRepSize() const;
00085    virtual bool setFromNet(const char* contentBuffer, unsigned contentSize);
00086    virtual bool setToNet();
00087 
00088    static DtSimTask * creator();
00089 
00090 protected:
00091    DtRwString  myExpendableResourceName;
00092    DtRwInt     myNumberToFire;
00093    DtRwReal    myTimeInterval;
00094 };
00095 

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)