|
From: Frank V. C. <fr...@us...> - 2000-11-23 15:41:36
|
Update of /cvsroot/corelinux/clfw/clfw/LibLoad In directory slayer.i.sourceforge.net:/tmp/cvs-serv22251/clfw/LibLoad Modified Files: Library.hpp LibraryObjectRegistry.hpp Log Message: 122583 release 0.2.6 Index: Library.hpp =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/LibLoad/Library.hpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** Library.hpp 2000/11/18 03:35:20 1.5 --- Library.hpp 2000/11/23 15:41:31 1.6 *************** *** 115,119 **** virtual LibraryInstancePtr load( CharPtr ) ! throw (NullPointerException, LoaderNotFoundException); /** --- 115,119 ---- virtual LibraryInstancePtr load( CharPtr ) ! throw ( NullPointerException, LoaderNotFoundException ); /** *************** *** 131,136 **** virtual LibraryInstancePtr load( CharPtr, MetaClassPtr ) ! throw (NullPointerException, LoaderNotFoundException); protected: --- 131,147 ---- virtual LibraryInstancePtr load( CharPtr, MetaClassPtr ) ! throw ( NullPointerException, LoaderNotFoundException ); + /** + Unload will remove all library objects associated with + the LibraryInstance. + @param LibraryInstancePtr instance pointer + @exception NullPointerException if argument is null + */ + + virtual void unLoad( LibraryInstancePtr ) + throw ( NullPointerException ); + + protected: *************** *** 142,150 **** /// Finds a handler for the library type ! MetaClassPtr findLibraryHandler( CharPtr ); /// Do the actual load LibraryInstancePtr loadInstance( CharPtr , MetaClassPtr ); // --- 153,165 ---- /// Finds a handler for the library type ! MetaClassPtr findLibraryHandler( CharCptr ); /// Do the actual load LibraryInstancePtr loadInstance( CharPtr , MetaClassPtr ); + + /// Do a unload of the instance + + void unloadInstance( LibraryInstancePtr, MetaClassPtr ); // Index: LibraryObjectRegistry.hpp =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/LibLoad/LibraryObjectRegistry.hpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** LibraryObjectRegistry.hpp 2000/11/19 05:19:52 1.4 --- LibraryObjectRegistry.hpp 2000/11/23 15:41:31 1.5 *************** *** 143,147 **** --- 143,157 ---- throw ( NullPointerException ); + + /** + Removes all objects associated with this library instance + @param LibraryInstance pointer to library instance + @exception NullPointerException if instance pointer null + */ + + static void dropAllObjects( LibraryInstancePtr ) + throw ( NullPointerException ); + protected: /// Copy constructor not allowed *************** *** 179,182 **** --- 189,200 ---- void disgardObject( LibraryInstancePtr, LibraryObjectPtr ); + /** + This is called from the static method or destructor to drop + all associated objects of a LibraryInstance regardless of + the reference count + @param LibraryInstancePtr + */ + + void dropObjects( LibraryInstancePtr aPtr = NULLPTR ); protected: |