Changeset 1032 for branches/Carsten_PtrWork2/Source/System/FieldContainer/Base/OSGFieldDescriptionBase.h
- Timestamp:
- 12/12/07 18:00:42 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/FieldContainer/Base/OSGFieldDescriptionBase.h
r889 r1032 54 54 OSG_BEGIN_NAMESPACE 55 55 56 class Field;57 56 58 57 template <class AttachmentDescT> … … 141 140 FieldDescriptionBase(const FieldType &elementType, 142 141 const Char8 *szName, 143 const std::string fieldDocumentation,142 const std::string &fieldDocumentation, 144 143 const UInt32 uiFieldId, 145 144 const BitVector vFieldMask, … … 147 146 const UInt32 uiFieldFlags, 148 147 FieldEditMethod fEditMethod, 149 FieldGetMethod fGetMethod, 150 const Char8 *defaultValue = NULL); 148 FieldGetMethod fGetMethod ); 151 149 152 150 FieldDescriptionBase(const FieldType &elementType, 153 151 const Char8 *szName, 154 const std::string fieldDocumentation,152 const std::string &fieldDocumentation, 155 153 const UInt32 uiFieldId, 156 154 const BitVector vFieldMask, … … 158 156 const UInt32 uiFieldFlags, 159 157 FieldIndexEditMethod fIndexedEditMethod, 160 FieldIndexGetMethod fIndexedGetMethod, 161 const Char8 *defaultValue = NULL); 158 FieldIndexGetMethod fIndexedGetMethod ); 162 159 163 160 FieldDescriptionBase(const FieldDescriptionBase &source); … … 187 184 UInt32 getFieldId (void ) const; 188 185 void setFieldId (UInt32 uiFieldId ); 189 190 const Char8 *getDefaultValue(void ) const;191 186 192 187 const FieldType &getFieldType (void ) const; … … 292 287 /*! \{ */ 293 288 294 virtual GetFieldHandlePtr createGetHandler ( const Field *pField)= 0;295 virtual EditFieldHandlePtr createEditHandler( Field *pField)= 0;289 virtual GetFieldHandlePtr createGetHandler (Field const *pField) const = 0; 290 virtual EditFieldHandlePtr createEditHandler(Field *pField) const = 0; 296 291 297 292 #if 0 … … 306 301 #endif 307 302 308 309 303 /*! \} */ 310 304 /*---------------------------------------------------------------------*/ … … 339 333 /*! \{ */ 340 334 335 template <class SFieldT> 336 struct SFieldFunctions 337 { 338 static void beginEdit(SFieldT *pField, 339 UInt32 uiAspect, 340 AspectOffsetStore &oOffsets); 341 342 static bool isShared (SFieldT *pField ); 343 }; 344 345 template <class MFieldT> 346 struct MFieldFunctions 347 { 348 static void beginEdit(MFieldT *pField, 349 UInt32 uiAspect, 350 AspectOffsetStore &oOffsets); 351 352 static bool isShared (MFieldT *pField ); 353 }; 354 341 355 /*! \} */ 342 356 /*---------------------------------------------------------------------*/ … … 364 378 FieldIndexGetMethod _fIndexedGetMethod; 365 379 FieldIndexEditMethod _fIndexedEditMethod; 366 367 IDString _defaultValue;368 380 369 381 /*! \} */
