Show
Ignore:
Timestamp:
12/12/07 18:00:42 (10 months 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/Base/Field/OSGSField.h

    r1030 r1032  
    8080    typedef typename SFieldTraits::ArgumentType             ArgumentType; 
    8181 
    82     typedef          FieldDescription<SFieldTraits, 
    83                                       SingleField, 
    84                                       DataField    >        Description; 
     82    typedef          FieldDescription< 
     83                        SFieldTraits, 
     84                        FieldType::SINGLE_FIELD  >          Description; 
     85    typedef          FieldDescription< 
     86                        SFieldTraits, 
     87                        FieldType::SINGLE_FIELD  >          DynamicDescription; 
    8588 
    8689    typedef          EditSFieldHandle <Self      >          EditHandle; 
     
    9396    /*---------------------------------------------------------------------*/ 
    9497 
    95     static const Int32 Namespace     = iNamespace; 
    96  
    97     static const bool isSField       = true; 
    98     static const bool isMField       = false; 
    99  
    100     static const bool isPointerField = false; 
    101  
     98    static const Int32 Namespace            = iNamespace; 
     99 
     100    static const bool  isSField             = true; 
     101    static const bool  isMField             = false; 
     102 
     103    static const bool  isPointerField       = false; 
     104    static const bool  isParentPointerField = false; 
     105     
     106    static const FieldType::Cardinality fieldCard = FieldType::MULTI_FIELD; 
     107    static const FieldType::Category    fieldCat  = FieldType::DATA_FIELD; 
     108     
    102109    /*---------------------------------------------------------------------*/ 
    103110    /*! \name                   Class Get                                  */