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/OSGEditMParentFCPointerFieldHandle.inl

    r1030 r1032  
    101101inline 
    102102EditMParentFCPointerFieldBaseHandle::EditMParentFCPointerFieldBaseHandle( 
    103     Field                      *pField,  
     103    Field                      *pField, 
    104104    FieldDescriptionBase const *pDescription) 
    105105     
     
    127127/*! \class EditMParentFCPointerFieldHandle<FieldT> 
    128128 
    129     Concrete \c EditFieldHandle for multi fields that store pointers. 
     129    Concrete \c EditFieldHandle for multi fields that store parent pointers. 
    130130*/ 
    131131 
     
    142142{ 
    143143    return static_cast<HandledFieldType *>(_pField); 
     144} 
     145 
     146template <class FieldT> 
     147inline typename EditMParentFCPointerFieldHandle<FieldT>::HandledFieldDesc const * 
     148EditMParentFCPointerFieldHandle<FieldT>::castDescDown(void) const 
     149{ 
     150    return static_cast<HandledFieldDesc const *>(_pDescription); 
    144151} 
    145152 
     
    167174inline 
    168175EditMParentFCPointerFieldHandle<FieldT>::EditMParentFCPointerFieldHandle( 
    169     Field                      *pField,  
     176    Field                      *pField, 
    170177    FieldDescriptionBase const *pDescription) 
    171178     
     
    285292EditMParentFCPointerFieldHandle<FieldT>::add(FieldContainer * const pNewElement) 
    286293{ 
    287     FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::add: NIY\n")); 
     294    FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::add: " 
     295              "Operation NOT supported.\n")); 
    288296} 
    289297 
     
    292300EditMParentFCPointerFieldHandle<FieldT>::sub(UInt32 const uiIndex) 
    293301{ 
    294     FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::sub: NIY\n")); 
     302    FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::sub: " 
     303              "Operation NOT supported.\n")); 
    295304} 
    296305 
     
    299308EditMParentFCPointerFieldHandle<FieldT>::sub(FieldContainer * const pOldElement) 
    300309{ 
    301     FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::sub: NIY\n")); 
     310    FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::sub: " 
     311              "Operation NOT supported.\n")); 
    302312} 
    303313 
     
    308318    FieldContainer * const pNewElement) 
    309319{ 
    310     FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::insert: NIY\n")); 
     320    FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::insert: " 
     321              "Operation NOT supported.\n")); 
    311322} 
    312323  
     
    317328    FieldContainer * const pNewElement) 
    318329{ 
    319     FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::replace: NIY\n")); 
     330    FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::replace: " 
     331              "Operation NOT supported.\n")); 
    320332} 
    321333                                
     
    326338    FieldContainer * const pNewElement) 
    327339{ 
    328     FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::replace: NIY\n")); 
     340    FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::replace: " 
     341              "Operation NOT supported.\n")); 
    329342} 
    330343                                  
     
    333346EditMParentFCPointerFieldHandle<FieldT>::clear(void) 
    334347{ 
    335     FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::clear: NIY\n")); 
     348    FWARNING(("EditMParentFCPointerFieldHandle<FieldT>::clear: " 
     349              "Operation NOT supported.\n")); 
    336350} 
    337351