![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2005 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: loadPoint.h,v $ $Revision: 1.6 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00014 00015 #ifndef DtLoadPoint_H_ 00016 #define DtLoadPoint_H_ 00017 00018 #include "vrfutil/rdrWritr.h" 00019 #include "vrfutil/nLenIntVec.h" 00020 #include "vrfutil/rwVector.h" 00021 #include "vrfutil/rwTemplatedList.h" 00022 00025 #include "vrfobjparam/vrfobjparamDefines.h" 00026 class DT_DLL_vrfobjparam DtLoadPoint : public DtReaderWriter 00027 { 00028 public: 00029 DtLoadPoint(const DtString& name, 00030 DtReaderWriterRegistry* parentRegistry = NULL); 00031 DtLoadPoint(const DtLoadPoint& orig, 00032 DtReaderWriterRegistry* parentRegistry = NULL); 00033 00034 virtual ~DtLoadPoint(); 00036 DtLoadPoint& operator=(const DtLoadPoint & orig); 00037 00040 DtNLengthIntegerVector& supportedSlots(); 00041 const DtNLengthIntegerVector& supportedSlots() const; 00042 void setSupportedSlots(const DtNLengthIntegerVector&); 00044 00046 const DtRwTemplatedListPtr<DtRwVector>& points() const; 00047 00049 void addPoint(const DtVector&); 00050 00051 virtual const char* readerWriterType() const; 00052 00054 virtual bool operator==(const DtLoadPoint&) const; 00055 virtual bool operator!=(const DtLoadPoint&) const; 00056 00057 protected: 00061 00066 DtNLengthIntegerVector mySlots; 00067 00072 DtRwTemplatedListPtr<DtRwVector> myPoints; 00073 00075 }; 00076 00077 inline void DtLoadPoint::setSupportedSlots(const DtNLengthIntegerVector& s) 00078 { 00079 mySlots = s; 00080 } 00081 00082 inline DtNLengthIntegerVector& DtLoadPoint::supportedSlots() 00083 { 00084 return mySlots; 00085 } 00086 00087 inline const DtNLengthIntegerVector& DtLoadPoint::supportedSlots() const 00088 { 00089 return mySlots; 00090 } 00091 00092 inline const DtRwTemplatedListPtr<DtRwVector>& DtLoadPoint::points() const 00093 { 00094 return myPoints; 00095 } 00096 00097 inline void DtLoadPoint::addPoint(const DtVector& v) 00098 { 00099 myPoints.add(new DtRwVector(v, "embarkation-load-point")); 00100 } 00101 00102 #endif