Last modified 10 years ago Last modified on 11/22/2008 09:59:45 AM

Middleware Interface

from: Software Tools -> LSST Framework.

Notes on usage of mwi:


Persistence Framework

Shared Pointers in Python/SWIG

All shared pointer types should be declared in SWIG .i files with:

   SWIG_SHARED_PTR({pointer name}, {C++ type})


   SWIG_SHARED_PTR_DERIVED({pointer name}, {C++ type}, {C++ base class type})

If the C++ type is a Persistable, you should also include

    %include "persistenceMacros.i"
    %lsst_persistable({C++ type})

Once a pointer has been converted to a shared pointer, in either C++ or Python, the original pointer should never be used (or assigned to, or deleted).