![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2007 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: modelSetEntry.h,v $ $Revision: 1.5 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DtModelSetEntry_H_ 00013 #define DtModelSetEntry_H_ 00014 00015 #include <vlutil/vlString.h> 00016 #include "vrfutil/rdrWritr.h" 00017 #include "vrfutil/rwObjType.h" 00018 #include "vrfutil/rwBoolean.h" 00019 #include "vrfutil/rwString.h" 00020 #include "vrfutil/rwForces.h" 00021 #include "vrfutil/rwNLengthStringVector.h" 00022 #include "vrfutil/vrfutilDefines.h" 00023 00027 class DT_DLL_vrfutil DtModelSetEntry : public DtReaderWriter 00028 { 00029 public: 00031 DtModelSetEntry(); 00032 00034 DtModelSetEntry(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL); 00035 00037 DtModelSetEntry(const DtModelSetEntry& orig, DtReaderWriterRegistry* const parentRegistry = NULL); 00038 00040 DtModelSetEntry& operator=(const DtModelSetEntry & orig); 00041 00042 virtual ~DtModelSetEntry(); 00043 00044 virtual DtModelSetEntry* clone(); 00045 00046 virtual const char* readerWriterType(); 00047 00048 static DtModelSetEntry* create(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL); 00049 00050 DtString label() const; 00051 void setLabel(const DtString&); 00052 00053 DtString uniqueID() const; 00054 void setUniqueID(const DtString&); 00055 00056 bool canCreate() const; 00057 void setCanCreate(bool); 00058 00059 bool canConfigureDiGuy() const; 00060 void setCanConfigureDiGuy(bool); 00061 00062 bool canAggregate() const; 00063 void setCanAggregate(bool); 00064 00065 void setObjectType(const DtObjectType&); 00066 DtObjectType objectType() const; 00067 00068 void setForces(const DtRwForces&); 00069 const DtRwForces& forces() const; 00070 DtRwForces& forces(); 00071 00072 void setCategories(const DtRwNLengthStringVector&); 00073 const DtRwNLengthStringVector& categories() const; 00074 00075 virtual bool operator==(const DtModelSetEntry&) const; 00076 virtual bool operator!=(const DtModelSetEntry&) const; 00077 00078 protected: 00079 DtRwBoolean myCanCreate; 00080 DtRwBoolean myCanAggregate; 00081 DtRwBoolean myCanConfigureDiGuy; 00082 DtRwString myLabel; 00083 DtRwString myUniqueID; 00084 DtRwObjectType myObjectType; 00085 DtRwForces myForces; 00086 DtRwNLengthStringVector myCategories; 00087 }; 00088 00089 inline void DtModelSetEntry::setLabel(const DtString& s) 00090 { 00091 myLabel = s; 00092 } 00093 00094 inline DtString DtModelSetEntry::label() const 00095 { 00096 return myLabel; 00097 } 00098 00099 inline void DtModelSetEntry::setUniqueID(const DtString& s) 00100 { 00101 myUniqueID = s; 00102 } 00103 00104 inline DtString DtModelSetEntry::uniqueID() const 00105 { 00106 return myUniqueID; 00107 } 00108 00109 inline void DtModelSetEntry::setCanCreate(bool b) 00110 { 00111 myCanCreate = b; 00112 } 00113 00114 inline bool DtModelSetEntry::canCreate() const 00115 { 00116 return myCanCreate; 00117 } 00118 00119 inline void DtModelSetEntry::setCanAggregate(bool b) 00120 { 00121 myCanAggregate = b; 00122 } 00123 00124 inline bool DtModelSetEntry::canAggregate() const 00125 { 00126 return myCanAggregate; 00127 } 00128 00129 inline void DtModelSetEntry::setCanConfigureDiGuy(bool b) 00130 { 00131 myCanConfigureDiGuy = b; 00132 } 00133 00134 inline bool DtModelSetEntry::canConfigureDiGuy() const 00135 { 00136 return myCanConfigureDiGuy; 00137 } 00138 00139 inline void DtModelSetEntry::setObjectType(const DtObjectType& o) 00140 { 00141 myObjectType = o; 00142 } 00143 00144 inline DtObjectType DtModelSetEntry::objectType() const 00145 { 00146 return myObjectType; 00147 } 00148 00149 inline void DtModelSetEntry::setForces(const DtRwForces& f) 00150 { 00151 myForces = f; 00152 } 00153 00154 inline const DtRwForces& DtModelSetEntry::forces() const 00155 { 00156 return myForces; 00157 } 00158 00159 inline DtRwForces& DtModelSetEntry::forces() 00160 { 00161 return myForces; 00162 } 00163 00164 inline void DtModelSetEntry::setCategories(const DtRwNLengthStringVector& c) 00165 { 00166 myCategories = c; 00167 } 00168 00169 inline const DtRwNLengthStringVector& DtModelSetEntry::categories() const 00170 { 00171 return myCategories; 00172 } 00173 00174 #endif 00175