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/Base/OSGAttachmentContainer.cpp

    r932 r1032  
    6969        Field::SFDefaultFlags, 
    7070        static_cast<FieldEditMethodSig>(&Self::editHandleAttachments), 
    71         static_cast<FieldGetMethodSig >(&Self::getHandleAttachments ), 
    72         NULL); 
     71        static_cast<FieldGetMethodSig >(&Self::getHandleAttachments ) ); 
    7372 
    7473    oType.addInitialDesc(pDesc); 
     
    369368             this->getType().getFieldDesc(AttachmentsFieldId))); 
    370369 
    371     returnValue->setAddMethod(boost::bind(&AttachmentContainer::addAttachment, 
    372                                           this, 
    373                                           _1, 
    374                                           _2)); 
     370//     returnValue->setAddMethod(boost::bind(&AttachmentContainer::addAttachment, 
     371//                                           this, 
     372//                                           _1, 
     373//                                           _2)); 
    375374 
    376375    editSField(AttachmentsFieldMask);