Show
Ignore:
Timestamp:
12/12/07 18:00:42 (1 year ago)
Author:
cneumann
Message:

added: generic interface
changed: factory functions return RefPtr?

The unittests don't pass right now, because of the change
to the factory functions, which leads to containers
being immediately destroyed as they are not assigned to
a RefPtr?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Fields/OSGMInternalFCPointerField.h

    r1030 r1032  
    4545#include "OSGContainerForwards.h" 
    4646#include "OSGMFCPointerFieldBase.h" 
    47  
     47#include "OSGInternalFCPointerFieldDescription.h" 
    4848#include "OSGEditMFCPointerFieldHandle.h" 
    4949#include "OSGGetMFCPointerFieldHandle.h" 
     
    104104                std::reverse_iterator<const_iterator>    const_reverse_iterator; 
    105105     
    106     typedef FieldTraits     <ValueType, 
    107                              NamespaceI          >       MFieldTraits; 
    108     typedef FieldDescription<MFieldTraits, 
    109                              MultiField
    110                              InternalPointerField>       Description; 
     106    typedef FieldTraits<ValueType, 
     107                        NamespaceI            >          MFieldTraits; 
     108    typedef InternalFCPointerFieldDescription< 
     109                        MFieldTraits
     110                        FieldType::MULTI_FIELD>          Description; 
    111111                 
    112112    typedef          ValueType                          *pointer; 
     
    115115    typedef typename MFieldTraits::ArgumentType          ArgumentType; 
    116116     
    117     typedef EditMFCPointerFieldHandle<Self>              EditHandle; 
    118     typedef boost::shared_ptr<typename Self::EditHandle> EditHandlePtr; 
    119     typedef GetMFCPointerFieldHandle <Self>              GetHandle; 
    120     typedef boost::shared_ptr<typename Self::GetHandle > GetHandlePtr; 
     117    typedef EditMFCPointerFieldHandle<Self      >        EditHandle; 
     118    typedef boost::shared_ptr        <EditHandle>        EditHandlePtr; 
     119     
     120    typedef GetMFCPointerFieldHandle <Self      >        GetHandle; 
     121    typedef boost::shared_ptr        <GetHandle >        GetHandlePtr; 
     122     
     123    /*! \}                                                                 */ 
     124    /*---------------------------------------------------------------------*/ 
     125    /*! \name Constants                                                    */ 
     126    /*! \{                                                                 */ 
     127     
     128    static const FieldType::Category fieldCat = FieldType::INTERNAL_POINTER_FIELD; 
    121129     
    122130    /*! \}                                                                 */