VR-Forces 4.0.4 Class Documentation
include/vrftasks/embarkTask.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: embarkTask.h,v $ $Revision: 1.7 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 #ifndef DtEmbarkTask_H_
00019 #define DtEmbarkTask_H_
00020 
00021 #include "vrftasks/simTask.h"
00022 #include <vlutil/vlNetTypes.h>
00023 #include "vrfutil/rwString.h"
00024 #include "vrfutil/rwVector.h"
00025 #include "vrfutil/rwBoolean.h"
00026 #include <vlpi/NetStructs.h>
00027 
00030 
00031 struct DtNetEmbarkTask
00032 {
00033    DtNetU8        myParentNameLength;
00034    DtNetU8        myLoadOverride;
00035    DtNet64Vector  myLoadOverridePosition;
00036 };
00037 
00042 #include "vrftasks/vrftasksDefines.h"
00043 class DT_DLL_vrftasks DtEmbarkTask : public DtSimTask
00044 {
00045 
00046 public:
00047 
00049 
00050    DtEmbarkTask();
00051 
00052 
00055 
00056    DtEmbarkTask(const DtString & writeName, 
00057       DtReaderWriterRegistry * parentRegistry = 0); 
00058 
00059 
00061 
00062    DtEmbarkTask(const DtString & writeName, const 
00063       DtEmbarkTask & orig, DtReaderWriterRegistry * 
00064       parentRegistry = 0);
00065 
00066 
00068 
00069    const DtEmbarkTask & operator=(const 
00070       DtEmbarkTask & orig);
00071 
00072 
00073    virtual ~DtEmbarkTask();
00074 
00075 
00077 
00078    virtual int type() const;
00079 
00080    
00082 
00083    virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry * 
00084       parentRegistry = 0) const;
00085 
00086    
00088 
00089    virtual DtString stringRep() const;
00090 
00091    
00093 
00094    virtual void setParentName(const DtString& parentName );
00095 
00096    
00098 
00099    virtual const DtString& parentName() const;
00100 
00101    
00104 
00105    virtual int netRepSize() const;
00106 
00107    
00109 
00110    virtual bool setFromNet(const char* contentBuffer, 
00111       unsigned contentSize);
00112 
00113    
00116 
00117    virtual bool setToNet();
00118 
00119    
00120    static DtSimTask * creator();
00121 
00122 
00123    virtual void setLoadOverride(bool b);
00124    virtual bool loadOverride() const;
00125 
00126    virtual void setLoadOverridePosition(const DtVector&);
00127    virtual const DtVector& loadOverridePosition() const;
00128 
00129 protected:
00130 
00131    DtRwString myParentName;
00132    DtRwBoolean myLoadOverride;
00133    DtRwVector  myLoadOverridePosition;
00134 };
00135 
00136 
00137 #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)