VR-Forces 4.0.4 Class Documentation
include/vrfutil/formEntry.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: formEntry.h,v $ $Revision: 1.4 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00013 
00014 #ifndef DtFormationEntry_H_
00015 #define DtFormationEntry_H_
00016 
00017 #include "vrfutil/rdrWritr.h"
00018 #include "vrfutil/rwInt.h"
00019 #include "vrfutil/rwVector.h"
00020 #include "vrfutil/rwString.h"
00021 
00027 #include "vrfutil/vrfutilDefines.h"
00028 class DT_DLL_vrfutil DtFormationEntry : public DtReaderWriter
00029 {
00030 public:
00031 
00033    DtFormationEntry();
00034 
00036    DtFormationEntry(const DtString& name, DtReaderWriterRegistry* const 
00037       parentRegistry = NULL);
00038    DtFormationEntry(const DtSymbolString& name, DtReaderWriterRegistry* const 
00039       parentRegistry = NULL);
00040 
00042    virtual ~DtFormationEntry();
00043 
00045    DtFormationEntry(const DtString& name, const DtFormationEntry& orig, 
00046       DtReaderWriterRegistry* parentRegistry = NULL);
00047    DtFormationEntry(const DtSymbolString& name, const DtFormationEntry& orig, 
00048       DtReaderWriterRegistry* parentRegistry = NULL);
00049 
00051    DtFormationEntry& operator=(const DtFormationEntry& orig);
00052 
00055    virtual const DtRwInt& promotionId() const;
00056    virtual void setPromotionId(int id);
00058 
00061    virtual const DtRwInt& leaderPromotionId() const;
00062    virtual void setLeaderPromotionId(int id);
00064 
00067    virtual const DtRwVector& positionOffset() const;
00068    virtual void setPositionOffset(const DtVector& offset);
00070 
00073    virtual const DtRwString& subordinateFormation() const;
00074    virtual void setSubordinateFormation(const DtString& formationName);
00076 
00079    virtual void setListItem(DtListItem* item);
00080    virtual DtListItem* listItem();
00082 
00084    DtFormationEntry* clone(const DtString& name, 
00085                            DtReaderWriterRegistry* parentRegistry = NULL);
00086    DtFormationEntry* clone(const DtSymbolString& name, 
00087                            DtReaderWriterRegistry* parentRegistry = NULL);
00088 
00089 
00090    bool operator==(const DtFormationEntry&) const;
00091    bool operator!=(const DtFormationEntry&) const;
00092 
00093 protected:
00094 
00098 
00105    DtRwInt     myPromotionId;
00106 
00112    DtRwInt     myLeaderPromotionId;
00113 
00119    DtRwVector  myPositionOffsetRelLeader;
00120 
00128    DtRwString mySubordinateFormation;
00130 
00131    DtListItem* myListItem;
00132 };
00133 
00134 #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)