You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(9) |
Oct
(124) |
Nov
(120) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(6) |
Feb
(34) |
Mar
(49) |
Apr
(81) |
May
(25) |
Jun
(3) |
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(37) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Frank V. C. <fr...@us...> - 2000-11-24 13:44:43
|
Update of /cvsroot/corelinux/clfll/debian In directory slayer.i.sourceforge.net:/tmp/cvs-serv30586 Modified Files: rules Log Message: 112702 Function Library Loader Index: rules =================================================================== RCS file: /cvsroot/corelinux/clfll/debian/rules,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** rules 2000/11/02 21:17:31 1.1.1.1 --- rules 2000/11/24 13:44:40 1.2 *************** *** 4,8 **** package=libclfll ! version=0.2.2 version_major=0 --- 4,8 ---- package=libclfll ! version=0.1.0 version_major=0 *************** *** 23,26 **** --- 23,27 ---- cd doc/latex && for i in *.eps; do epstopdf $$i; done cd doc/latex && make pdf && make ps && mv refman.pdf clfll-ref.pdf && mv refman.ps clfll-ref.ps + cd doc/man/man3 && for h in *.3; do gzip $h; done touch build-stamp |
|
From: Frank V. C. <fr...@us...> - 2000-11-23 15:42:42
|
Update of /cvsroot/corelinux/clfll/doc In directory slayer.i.sourceforge.net:/tmp/cvs-serv22416/doc Modified Files: clfll.cfg.in clfll.html Log Message: Touching up for release, code out of sync with clfw at the moment Index: clfll.cfg.in =================================================================== RCS file: /cvsroot/corelinux/clfll/doc/clfll.cfg.in,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** clfll.cfg.in 2000/11/02 21:17:27 1.1.1.1 --- clfll.cfg.in 2000/11/23 15:42:39 1.2 *************** *** 3,7 **** # General configuration options #--------------------------------------------------------------------------- ! PROJECT_NAME = CoreLinux++ PROJECT_NUMBER = @CLFLL_VERSION@ OUTPUT_DIRECTORY = --- 3,7 ---- # General configuration options #--------------------------------------------------------------------------- ! PROJECT_NAME = "CoreLinux++ FunctionLibraryLoader" PROJECT_NUMBER = @CLFLL_VERSION@ OUTPUT_DIRECTORY = Index: clfll.html =================================================================== RCS file: /cvsroot/corelinux/clfll/doc/clfll.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** clfll.html 2000/11/02 21:17:27 1.1.1.1 --- clfll.html 2000/11/23 15:42:40 1.2 *************** *** 7,11 **** <body> <hr noshade=noshade> ! This is the <a href="index.html">CoreLinux++ Framework</a> reference manual<br> Provided by <a href="http://corelinux.sourceforge.net">The CoreLinux Consortium</A><br> </body> --- 7,11 ---- <body> <hr noshade=noshade> ! This is the <a href="index.html">CoreLinux++ FunctionLibraryLoader Framework</a> reference manual<br> Provided by <a href="http://corelinux.sourceforge.net">The CoreLinux Consortium</A><br> </body> |
|
From: Frank V. C. <fr...@us...> - 2000-11-23 15:42:42
|
Update of /cvsroot/corelinux/clfll In directory slayer.i.sourceforge.net:/tmp/cvs-serv22416 Modified Files: README clfll.spec.in configure.in Log Message: Touching up for release, code out of sync with clfw at the moment Index: README =================================================================== RCS file: /cvsroot/corelinux/clfll/README,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** README 2000/11/21 16:29:27 1.2 --- README 2000/11/23 15:42:39 1.3 *************** *** 1,4 **** ============================================== ! CoreLinux++ Function Library Loader Beta 0.0.1 ============================================== --- 1,4 ---- ============================================== ! CoreLinux++ Function Library Loader Beta 0.1.0 ============================================== Index: clfll.spec.in =================================================================== RCS file: /cvsroot/corelinux/clfll/clfll.spec.in,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** clfll.spec.in 2000/11/03 12:35:02 1.2 --- clfll.spec.in 2000/11/23 15:42:39 1.3 *************** *** 17,27 **** License: LGPL BuildRoot: /var/tmp/%{name}-buildroot ! Requires: libcorelinux, libclfw %description OOA and OOD for Linux dynamic libraries. ! This package provides the shared libraries for corelinux abstract frameworks ! so that you can run any corelinux framework based extension code on the machine. OOA: Object Oriented Analysis --- 17,27 ---- License: LGPL BuildRoot: /var/tmp/%{name}-buildroot ! Requires: libcorelinux >= 0.4.30, libclfw >= 0.2.6 %description OOA and OOD for Linux dynamic libraries. ! This package provides the shared libraries FunctionLibraryLoader implementation which ! is defined by the CoreLinux++ Framework LibraryLoad abstraction. OOA: Object Oriented Analysis *************** *** 32,36 **** Group: Development/Libraries Summary: Header files, static library and manual pages for libclfll ! Requires: libclfll = %{version} %description dev --- 32,36 ---- Group: Development/Libraries Summary: Header files, static library and manual pages for libclfll ! Requires: libclfll = %{version} libclfw-dev >= 0.2.6 %description dev *************** *** 38,42 **** This package provides the include files, the manpages ! and the static library for development of corelinux.abstract frameworks OOA: Object Oriented Analysis --- 38,42 ---- This package provides the include files, the manpages ! and the static library for development efforts using libclfll++ OOA: Object Oriented Analysis *************** *** 45,61 **** %package doc ! Group: Development/Libraries ! Summary: Reference manual for libclfll ! Requires: libclfll = %{version} %description doc OOA and OOD for Linux: reference manual. ! This package provides the full reference manual in HTML, PS and PDF format. HTML: /usr/doc/%{name}-doc-%{version}/html/index.html ! PS: /usr/doc/%{name}-doc-%{version}/clfrmwkr-ref.ps.gz ! PDF: /usr/doc/%{name}-doc-%{version}/clfrmwkr-ref.pdf.gz OOA: Object Oriented Analysis --- 45,61 ---- %package doc ! Group: Development/Documentation/CoreLinux ! Summary: Reference manuals for libclfll ! #Requires: libclfll = %{version} %description doc OOA and OOD for Linux: reference manual. ! This package provides the full reference manual for libclfll in HTML, PS and PDF format. HTML: /usr/doc/%{name}-doc-%{version}/html/index.html ! PS: /usr/doc/%{name}-doc-%{version}/clfll-ref.ps.gz ! PDF: /usr/doc/%{name}-doc-%{version}/clfll-ref.pdf.gz OOA: Object Oriented Analysis *************** *** 90,100 **** (mkdir doc/ps) (mkdir doc/pdf) ! (cd doc/latex && make pdf && mv refman.pdf ../pdf/clfrmwkr-ref.pdf && mv refman.ps ../ps/clfrmwkr-ref.ps) ! (gzip doc/ps/clfrmwkr-ref.ps) ! (gzip doc/pdf/clfrmwkr-ref.pdf) # the manual pages ! (mkdir -p $RPM_BUILD_ROOT%{prefix}/man/man3) ! (cp -r doc/man/* $RPM_BUILD_ROOT%{prefix}/man/man3) # the examples --- 90,101 ---- (mkdir doc/ps) (mkdir doc/pdf) ! (cd doc/latex && make pdf && mv refman.pdf ../pdf/clfll-ref.pdf && mv refman.ps ../ps/clfll-ref.ps) ! (gzip doc/ps/clfll-ref.ps) ! (gzip doc/pdf/clfll-ref.pdf) ! (cd doc/man/man3 && for h in *.3; do gzip $h; done) # the manual pages ! #(mkdir -p $RPM_BUILD_ROOT%{prefix}/man/man3) ! #(cp -r doc/man/* $RPM_BUILD_ROOT%{prefix}/man/man3) # the examples *************** *** 109,115 **** (cd clfll && make install-includeHEADERS prefix=$RPM_BUILD_ROOT%{prefix} includedir=$RPM_BUILD_ROOT%{prefix}/include/clfll) ! (cd src/libs && make install prefix=$RPM_BUILD_ROOT%{prefix} includedir=$RPM_BUILD_ROOT%{prefix}/include/clfll) ! (/bin/sh admin/mkinstalldirs $RPM_BUILD_ROOT%{prefix}/man/man3 ) ! (cd doc/man/man3 && cp *.3 $RPM_BUILD_ROOT%{prefix}/man/man3/) %post -p /sbin/ldconfig --- 110,116 ---- (cd clfll && make install-includeHEADERS prefix=$RPM_BUILD_ROOT%{prefix} includedir=$RPM_BUILD_ROOT%{prefix}/include/clfll) ! (cd src/clfll && make install prefix=$RPM_BUILD_ROOT%{prefix} includedir=$RPM_BUILD_ROOT%{prefix}/include/clfll) ! #(/bin/sh admin/mkinstalldirs $RPM_BUILD_ROOT%{prefix}/man/man3 ) ! #(cd doc/man/man3 && cp *.3 $RPM_BUILD_ROOT%{prefix}/man/man3/) %post -p /sbin/ldconfig *************** *** 133,137 **** %{_libdir}/%{lib_name}.a %{_libdir}/%{lib_name}.la ! %{_mandir}/man3/*.3.gz %doc debian/README.Redhat --- 134,138 ---- %{_libdir}/%{lib_name}.a %{_libdir}/%{lib_name}.la ! %doc doc/man %doc debian/README.Redhat Index: configure.in =================================================================== RCS file: /cvsroot/corelinux/clfll/configure.in,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** configure.in 2000/11/21 16:26:02 1.5 --- configure.in 2000/11/23 15:42:39 1.6 *************** *** 9,14 **** CLFLL_MAJOR_VERSION=0 ! CLFLL_MINOR_VERSION=0 ! CLFLL_MICRO_VERSION=1 dnl --- 9,14 ---- CLFLL_MAJOR_VERSION=0 ! CLFLL_MINOR_VERSION=1 ! CLFLL_MICRO_VERSION=0 dnl |
|
From: Frank V. C. <fr...@us...> - 2000-11-23 15:41:36
|
Update of /cvsroot/corelinux/clfw/src/libs/LibLoad In directory slayer.i.sourceforge.net:/tmp/cvs-serv22251/src/libs/LibLoad Modified Files: Library.cpp LibraryObjectRegistry.cpp Log Message: 122583 release 0.2.6 Index: Library.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/LibLoad/Library.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** Library.cpp 2000/11/18 03:35:22 1.4 --- Library.cpp 2000/11/23 15:41:31 1.5 *************** *** 37,49 **** #endif #include <cstring> namespace corelinux { ! static CharPtr gTestMethod( "handlesType" ); ! static CharPtr gGetLoaderMethod( "getLoaderType" ); ! static CharPtr gGetLibraryInstanceMethod( "loadInstance" ); ! static MetaClassPtr findHandler( CharPtr aName, MetaClassPtr aClass ) { MetaClassPtr aPtr( NULLPTR ); --- 37,55 ---- #endif + #if !defined(__LIBRARYINSTANCE_HPP) + #include INCL_LibraryInstance + #endif + + #include <cstring> namespace corelinux { ! const CharPtr gTestMethod( "handlesType" ); ! const CharPtr gGetLoaderTypeMethod( "getLoaderType" ); ! const CharPtr gLoadInstanceMethod( "loadInstance" ); ! const CharPtr gUnLoadInstanceMethod( "unloadInstance" ); ! static MetaClassPtr findHandler( CharCptr aName, MetaClassPtr aClass ) { MetaClassPtr aPtr( NULLPTR ); *************** *** 163,167 **** // ! // Work the magic of ontologies! // --- 169,173 ---- // ! // Find a loader that accepts the type given in the name // *************** *** 229,236 **** // // Setup the recursion looking for an appropriate handler // ! MetaClassPtr Library::findLibraryHandler( CharPtr aName ) { return findHandler --- 235,275 ---- // + // Drop the instance via the loader + // + + void Library::unLoad( LibraryInstancePtr aLibInst ) + throw ( NullPointerException ) + { + if( aLibInst != NULLPTR ) + { + MetaClassPtr aClass + ( + this->findLibraryHandler + ( + aLibInst->getLibraryName() + ) + ); + + if( aClass == NULLPTR ) + { + throw LoaderNotFoundException( LOCATION ); + } + else + { + this->unloadInstance( aLibInst, aClass ); + } + + } + else + { + throw NullPointerException( LOCATION ); + } + } + + // // Setup the recursion looking for an appropriate handler // ! MetaClassPtr Library::findLibraryHandler( CharCptr aName ) { return findHandler *************** *** 247,251 **** LibraryInstancePtr Library::loadInstance ( ! CharPtr aLibrary, MetaClassPtr aTypeClass ) --- 286,290 ---- LibraryInstancePtr Library::loadInstance ( ! CharPtr aLibraryName, MetaClassPtr aTypeClass ) *************** *** 262,266 **** aTypeClass->dispatch ( ! gGetLoaderMethod, (void **)NULLPTR, (void *) &aLoaderType --- 301,305 ---- aTypeClass->dispatch ( ! gGetLoaderTypeMethod, (void **)NULLPTR, (void *) &aLoaderType *************** *** 271,276 **** aLoaderType->dispatch ( ! gGetLibraryInstanceMethod, ! (void **)aLibrary, (void *) &aInstance ); --- 310,315 ---- aLoaderType->dispatch ( ! gLoadInstanceMethod, ! (void **)aLibraryName, (void *) &aInstance ); *************** *** 289,292 **** --- 328,371 ---- return aInstance; + } + + // + // The actual work of unloading the instance + // + + void Library::unloadInstance + ( + LibraryInstancePtr anInstance, + MetaClassPtr aTypeClass + ) + { + // + // First we get the Loader from the LibraryType as it is + // the holder of the goods + // + + MetaTypePtr aLoaderType( NULLPTR ); + + aTypeClass->dispatch + ( + gGetLoaderTypeMethod, + (void **)NULLPTR, + (void *) &aLoaderType + ); + + if( aLoaderType != NULLPTR ) + { + aLoaderType->dispatch + ( + gUnLoadInstanceMethod, + (void **)anInstance, + (void *) NULLPTR + ); + + } + else + { + throw LoaderNotFoundException( LOCATION ); + } } Index: LibraryObjectRegistry.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/LibLoad/LibraryObjectRegistry.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** LibraryObjectRegistry.cpp 2000/11/19 05:19:52 1.4 --- LibraryObjectRegistry.cpp 2000/11/23 15:41:31 1.5 *************** *** 57,62 **** // ! static CharPtr gCreateInstanceMethod( "create" ); ! static CharPtr gDestroyInstanceMethod( "destroy" ); static LibraryObjectPtr fetchObject( CharCptr aName, MetaClassPtr aClass ) --- 57,62 ---- // ! const CharPtr gCreateInstanceMethod( "create" ); ! const CharPtr gDestroyInstanceMethod( "destroy" ); static LibraryObjectPtr fetchObject( CharCptr aName, MetaClassPtr aClass ) *************** *** 182,186 **** { LibraryObjectRegistryPtr aLORPtr( theRegistry.instance() ); - Guard myGuard( aLORPtr->access() ); aLibraryObject = aLORPtr->resolveObject( aLibraryInstance, aName ); --- 182,185 ---- *************** *** 208,212 **** { LibraryObjectRegistryPtr aLORPtr( theRegistry.instance() ); - Guard myGuard( aLORPtr->access() ); aLORPtr->disgardObject( aLibraryInstance, aLibraryObject ); --- 207,210 ---- *************** *** 220,223 **** --- 218,240 ---- // + // Done with all library objects (assumed) + // + void LibraryObjectRegistry::dropAllObjects( LibraryInstancePtr aLibraryInstance ) + throw ( NullPointerException ) + { + if( aLibraryInstance != NULLPTR ) + { + LibraryObjectRegistryPtr aLORPtr( theRegistry.instance() ); + + aLORPtr->dropObjects( aLibraryInstance ); + } + else + { + throw NullPointerException( LOCATION ); + } + } + + + // // Instance methods // *************** *** 234,237 **** --- 251,255 ---- ) { + GUARD; LibraryInstanceMapIterator aFItr( theInstances.find(aInstance) ); LibObjectReference aObjCache = {NULLPTR,1}; *************** *** 309,312 **** --- 327,331 ---- ) { + GUARD; LibraryInstanceMapIterator aFItr( theInstances.find(aInstance) ); *************** *** 345,348 **** --- 364,425 ---- ; // exception ? } + + } + else + { + ; // do nothing + } + } + + // + // Clean out library instance associated library objects + // + + void LibraryObjectRegistry::dropObjects( LibraryInstancePtr aInstance ) + { + GUARD; + + LibraryInstanceMapIterator aFItr; + + if( aInstance == NULLPTR ) + { + aFItr = theInstances.begin(); + } + else + { + aFItr = theInstances.find( aInstance ); + } + + // + // If we have one (either matched or all) + // we go through it's associated objects and + // dispatch the demise of each object, clearing + // the secondary map as we go. + // + + if( aFItr != theInstances.end() ) + { + do + { + ObjectInstanceMapIterator aFOItr( (*aFItr).second.begin() ); + ObjectInstanceMapIterator aFEItr( (*aFItr).second.end() ); + + while( aFOItr != aFEItr ) + { + LibraryObjectPtr aObject( (*aFOItr).second.theLibObj ); + + aObject->getType()->dispatch + ( + aObject, + gDestroyInstanceMethod, + (void **) NULLPTR, + (void *) NULLPTR + ); + ++aFOItr; + } + + (*aFItr).second.clear(); + ++aFItr; + } while( aInstance == NULLPTR && aFItr != theInstances.end() ); } |
|
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: |
|
From: Frank V. C. <fr...@us...> - 2000-11-23 15:41:36
|
Update of /cvsroot/corelinux/clfw/doc In directory slayer.i.sourceforge.net:/tmp/cvs-serv22251/doc Modified Files: clfw.cfg.in Log Message: 122583 release 0.2.6 Index: clfw.cfg.in =================================================================== RCS file: /cvsroot/corelinux/clfw/doc/clfw.cfg.in,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** clfw.cfg.in 2000/11/20 05:22:33 1.8 --- clfw.cfg.in 2000/11/23 15:41:31 1.9 *************** *** 95,99 **** # configuration options related to the man page output #--------------------------------------------------------------------------- ! GENERATE_MAN = NO MAN_OUTPUT = man MAN_EXTENSION = .3 --- 95,99 ---- # configuration options related to the man page output #--------------------------------------------------------------------------- ! GENERATE_MAN = YES MAN_OUTPUT = man MAN_EXTENSION = .3 |
|
From: Frank V. C. <fr...@us...> - 2000-11-23 15:41:36
|
Update of /cvsroot/corelinux/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv22251 Modified Files: clfw.spec.in Log Message: 122583 release 0.2.6 Index: clfw.spec.in =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw.spec.in,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** clfw.spec.in 2000/11/20 05:22:33 1.9 --- clfw.spec.in 2000/11/23 15:41:31 1.10 *************** *** 17,21 **** License: LGPL BuildRoot: /var/tmp/%{name}-buildroot ! Requires: libcorelinux %description --- 17,21 ---- License: LGPL BuildRoot: /var/tmp/%{name}-buildroot ! Requires: libcorelinux >= 0.4.30 %description *************** *** 32,36 **** Group: Development/Libraries Summary: Header files, static library and manual pages for libclfw ! Requires: libclfw = %{version} %description dev --- 32,36 ---- Group: Development/Libraries Summary: Header files, static library and manual pages for libclfw ! Requires: libclfw = %{version}, libcorelinux-dev >= 0.4.30 %description dev *************** *** 45,51 **** %package doc ! Group: Development/Libraries ! Summary: Reference manual for libclfw ! Requires: libclfw = %{version} %description doc --- 45,51 ---- %package doc ! Group: Development/Documentation/CoreLinux ! Summary: Reference manuals for libclfw ! #Requires: libclfw %description doc *************** *** 86,89 **** --- 86,90 ---- # create the reference manual + (rm -rf doc/html doc/latex doc/man && cd doc && doxygen clfw.cfg) (cd doc/latex && for i in *.eps; do epstopdf $i; done) *************** *** 94,100 **** (gzip doc/pdf/clfrmwkr-ref.pdf) # the manual pages ! (mkdir -p $RPM_BUILD_ROOT%{prefix}/man/man3) ! (cp -r doc/man/* $RPM_BUILD_ROOT%{prefix}/man/man3) # the examples --- 95,105 ---- (gzip doc/pdf/clfrmwkr-ref.pdf) + # zip up the man pages + + (cd doc/man/man3 && for h in *.3; do gzip $h; done) + # the manual pages ! #(mkdir -p $RPM_BUILD_ROOT%{prefix}/man/man3) ! #(cp -r doc/man/* $RPM_BUILD_ROOT%{prefix}/man/man3) # the examples *************** *** 132,139 **** %defattr(-,root,root) %{_includedir}/clfw/* - #%{_includedir}/clfw/LibLoad/* %{_libdir}/%{lib_name}.a %{_libdir}/%{lib_name}.la ! #%{_mandir}/man3/*.3.gz %doc debian/README.Redhat --- 137,143 ---- %defattr(-,root,root) %{_includedir}/clfw/* %{_libdir}/%{lib_name}.a %{_libdir}/%{lib_name}.la ! %doc doc/man %doc debian/README.Redhat |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 16:51:05
|
Update of /cvsroot/corelinux/clfll/src/testdrivers/exfl1 In directory slayer.i.sourceforge.net:/tmp/cvs-serv9151 Modified Files: mylib.c Log Message: Removed extern statement Index: mylib.c =================================================================== RCS file: /cvsroot/corelinux/clfll/src/testdrivers/exfl1/mylib.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** mylib.c 2000/11/21 16:26:04 1.1 --- mylib.c 2000/11/21 16:51:02 1.2 *************** *** 23,30 **** */ ! extern "C" ! { ! #include <stdio.h> ! } void pushOut( char *aString ) --- 23,27 ---- */ ! #include <stdio.h> void pushOut( char *aString ) *************** *** 32,34 **** --- 29,40 ---- printf("%s\n", aString); } + + /* + Common rcs information do not modify + $Author$ + $Revision$ + $Date$ + $Locker$ + */ + |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 16:44:41
|
Update of /cvsroot/corelinux/clfll/debian In directory slayer.i.sourceforge.net:/tmp/cvs-serv8155 Added Files: README.Redhat Removed Files: README.redhat Log Message: Fixed name --- NEW FILE --- CoreLinux Function Load Library for Redhat ------------------------------------------ Not everything is in the packages, check the web site of corelinux. It provides all the analysis and design behind these libraries. Moreover, you will find a Coding Standard manual, an OO standard manual a FAQ and other interesting stuff. Check the website for news and updates: http://corelinux.sourceforge.net Right now libclfll is split into three packages: 1- libclfll =========== This package provides the include files, the manpages and the static library for development with corelinux function load library. 2- libclfll-dev =============== This package provides the include files, the manpages and the static library for development with corelinux function load library. 3- libclfll-doc =============== This package provides the full reference manual in HTML, PS and PDF format. Hope you will enjoy this! The CoreLinux Consortium Packages maintainer: Christophe Prud'homme <pru...@us...> --- README.redhat DELETED --- |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 16:29:30
|
Update of /cvsroot/corelinux/clfll In directory slayer.i.sourceforge.net:/tmp/cvs-serv5931 Modified Files: README Log Message: 112702 FunctionLibraryLoad Index: README =================================================================== RCS file: /cvsroot/corelinux/clfll/README,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** README 2000/11/02 21:15:59 1.1.1.1 --- README 2000/11/21 16:29:27 1.2 *************** *** 29,37 **** ------------ ! libclfll requires libclfw at least 0.2.4 libclfw requires libuuid ! libclfw-0.2.4 require libcorelinux at least 0.4.29 Documentation --- 29,37 ---- ------------ ! libclfll requires libclfw at least 0.2.6 libclfw requires libuuid ! libclfw-0.2.6 require libcorelinux at least 0.4.30 Documentation |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 16:28:21
|
Update of /cvsroot/corelinux/clfll In directory slayer.i.sourceforge.net:/tmp/cvs-serv5720 Modified Files: ChangeLog Log Message: 112702 FunctionLibraryLoad Index: ChangeLog =================================================================== RCS file: /cvsroot/corelinux/clfll/ChangeLog,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** ChangeLog 2000/11/02 21:15:59 1.1.1.1 --- ChangeLog 2000/11/21 16:28:19 1.2 *************** *** 1,2 **** --- 1,6 ---- + 2000-11-21 Frank V. Castellucci <fr...@ca...> + + * Working FunctionLibraryLoad implementation + 2000-11-02 Frank V. Castellucci <fr...@ca...> |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 16:26:08
|
Update of /cvsroot/corelinux/clfll/src/testdrivers/exfl1/include In directory slayer.i.sourceforge.net:/tmp/cvs-serv5190/src/testdrivers/exfl1/include Added Files: Makefile.am OutputPlugIn.hpp Log Message: 112702 FunctionLibraryLoad ***** Error reading new file: (2, 'No such file or directory') ***** Error reading new file: (2, 'No such file or directory') |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 16:26:07
|
Update of /cvsroot/corelinux/clfll/src/testdrivers/exfl1 In directory slayer.i.sourceforge.net:/tmp/cvs-serv5190/src/testdrivers/exfl1 Modified Files: Makefile.am examp1.cpp Added Files: OutputPlugIn.cpp mylib.c walker.cpp Log Message: 112702 FunctionLibraryLoad ***** Error reading new file: (2, 'No such file or directory') --- NEW FILE --- /* CoreLinux++ Copyright (C) 1999 CoreLinux Consortium The CoreLinux++ Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The CoreLinux++ Library Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** Dummy routine for showing off the FunctionLoadLibrary implementation */ extern "C" { #include <stdio.h> } void pushOut( char *aString ) { printf("%s\n", aString); } ***** Error reading new file: (2, 'No such file or directory') Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfll/src/testdrivers/exfl1/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Makefile.am 2000/11/18 20:10:11 1.1 --- Makefile.am 2000/11/21 16:26:04 1.2 *************** *** 12,21 **** SUFFIXES = .cpp .hpp .c .h .f .F .o .moc ! #SUBDIRS = include bin_PROGRAMS = exfl1 ! exfl1_SOURCES = examp1.cpp exfl1_LDADD = ${top_builddir}/src/clfll/libclfll++.la # Common rcs information do not modify --- 12,26 ---- SUFFIXES = .cpp .hpp .c .h .f .F .o .moc ! SUBDIRS = include bin_PROGRAMS = exfl1 ! exfl1_SOURCES = examp1.cpp walker.cpp OutputPlugIn.cpp ! exfl1_LDADD = ${top_builddir}/src/clfll/libclfll++.la + + lib_LTLIBRARIES = libmylib.la + libmylib_la_SOURCES = mylib.c + libmylib_la_LDFLAGS = -version-info 0:0:0 # Common rcs information do not modify Index: examp1.cpp =================================================================== RCS file: /cvsroot/corelinux/clfll/src/testdrivers/exfl1/examp1.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** examp1.cpp 2000/11/20 05:26:35 1.3 --- examp1.cpp 2000/11/21 16:26:04 1.4 *************** *** 22,34 **** This example is to show use of the FunctionLoader library ! */ // ! // ClfwCommon.hpp included before anything else. This is not // required but it makes things consistent. You can also // wrap it with: // ! // #if !defined(_CLFWCOMMON_HPP) ! // #include <ClfwCommon.hpp> // #endif // --- 22,36 ---- This example is to show use of the FunctionLoader library ! We supply a number of shared libraries to allow the user to ! experience a "plug-in" capability defined in some way ! */ // ! // ClfllCommon.hpp included before anything else. This is not // required but it makes things consistent. You can also // wrap it with: // ! // #if !defined(_CLFLLCOMMON_HPP) ! // #include <ClfllCommon.hpp> // #endif // *************** *** 46,59 **** #endif ! #if !defined(__METACLASS_HPP) ! #include <clfw/MetaClass.hpp> #endif ! #if !defined(__ONTOLOGY_HPP) ! #include <clfw/Ontology.hpp> #endif ! #include INCL_Library ! #include INCL_LibraryInstance using namespace corelinux; --- 48,62 ---- #endif ! #if !defined(__LIBRARY_HPP) ! #include INCL_Library #endif ! #if !defined(__LIBRARYINSTANCE_HPP) ! #include INCL_LibraryInstance #endif ! #if !defined(__OUTPUTPLUGIN_HPP) ! #include <OutputPlugIn.hpp> ! #endif using namespace corelinux; *************** *** 63,90 **** #include <exception> - - // - // In module function prototypes - // - - int main( void ); - - // - // MetaType information dump - // - - void dumpFundementals( void ); - void dumpMetaTypeInformation( MetaTypePtr ); - void dumpTypeInformation( FrameworkEntityPtr ); - - void walkOntology( MetaClassPtr , int ); - void dumpOntology( void ); - - // - // Assertion and Exception handlers - // - void handleAssertion( AssertionCref aAssert ); - void handleException( ExceptionCref ); - // // Templated function --- 66,69 ---- *************** *** 118,239 **** } - // MetaType or MetaClass parents - - template < class T > void dumpParents( T *aMPtr ) - { - cout << endl << "Meta Parent List : " << endl; - - if( aMPtr->getParentCount() != 0 ) - { - Iterator<T *> *aIterator(aMPtr->createParentIterator()); - - while( aIterator->isValid() ) - { - cout - << "\tClass = " << - aIterator->getElement()->getInstanceTypeName() << endl - << "\tMetaType = " - << aIterator->getElement()->getMetaTypeName() << endl; - aIterator->setNext(); - } - - aMPtr->destroyIterator( aIterator ); - } - else - { - ; // do nothing - } - } - // ! // MetaType or MetaClass Attribute Control Blocks // ! template < class T > void dumpInstanceMembers( T *aMPtr ) ! { ! if( aMPtr->getInstanceMemberCount() != 0 ) ! { ! Iterator<MemberDescriptorPtr> *aIterator ! ( ! aMPtr->createMemberIterator() ! ); ! ! while( aIterator->isValid() ) ! { ! MemberDescriptorCptr anElement( aIterator->getElement() ); ! ! cout << "\tVar name = " << anElement->theTypeVariableName ! << endl; ! cout << "\tVar type = " << anElement->theTypeName ! << endl; ! cout << "\tVar size = " << anElement->theSizeInBytes ! << endl; ! ! if( anElement->theTypePointer != NULLPTR ) ! { ! cout << "\tClass type = " ! << anElement->theTypePointer->getInstanceTypeName() ! << endl; ! } ! else ! { ! cout << "\tNot a FrameworkEntity" << endl; ! } ! ! if( anElement->theGetter != NULLPTR ) ! { ! cout << "\tHas getter " << endl; ! } ! else ! { ! ; // do nothing ! } ! if( anElement->theSetter != NULLPTR ) ! { ! cout << "\tHas setter " << endl; ! } ! else ! { ! ; // do nothing ! } ! aIterator->setNext(); ! } ! ! aMPtr->destroyIterator( aIterator ); ! } ! else ! { ! ; // do nothing ! } ! } // ! // MetaType or MetaClass Dispatch Control Blocks // ! template < class T > void dumpInstanceFunctions( T *aMPtr ) ! { ! if( aMPtr->getInstanceFunctionCount() != 0 ) ! { ! Iterator<DispatchDescriptorPtr> *aIterator ! ( ! aMPtr->createMethodIterator() ! ); ! ! while( aIterator->isValid() ) ! { ! cout << "\tFunction name = " << ! aIterator->getElement()->theClassMethodName << endl; ! aIterator->setNext(); ! } ! aMPtr->destroyIterator( aIterator ); ! } ! else ! { ! ; // do nothing ! } ! } --- 97,120 ---- } // ! // In module function prototypes // ! int main( void ); ! void executePlugIn( LibraryInstancePtr ); // ! // MetaType information dump functions in walker.cpp // ! void dumpTypeInformation( FrameworkEntityPtr ); ! void dumpOntology( void ); ! // ! // Assertion and Exception handlers ! // ! void handleAssertion( AssertionCref aAssert ); ! void handleException( ExceptionCref ); *************** *** 251,260 **** try { ! MetaSpace::initialize(); ! dumpOntology(); ! Library aLibrary; ! LibraryInstancePtr aLibInst = aLibrary.load( "libm.so" ); if( aLibInst == NULLPTR ) --- 132,157 ---- try { ! // ! // ALWAYS initialize the MetaSpace ontologies !!! ! // ! ! MetaSpace::initialize(); ! Library aLibrary; // Standard issue library ! ! // ! // The library resolves loaders based on what is registered and can ! // handle the type specified in the argument. The FunctionLoader ! // checks for ".so" extensions ! // ! ! LibraryInstancePtr aLibInst ! ( ! aLibrary.load( "./.libs/libmylib.so" ) ! ); ! // ! // Begin the test ! // if( aLibInst == NULLPTR ) *************** *** 264,270 **** else { ! cout << "Library " << aLibInst->getLibraryName() << " loaded" << endl; } } catch( AssertionRef aAssert ) --- 161,168 ---- else { ! executePlugIn( aLibInst ); } + // dumpOntology(); } catch( AssertionRef aAssert ) *************** *** 288,408 **** } ! ! void walkOntology( MetaClassPtr aMetaClass, int indent ) { - for( int x = 0; x != indent ; ++x ) - { - cout << "\t"; - } - - cout << aMetaClass->getMetaTypeName() << " (" - << aMetaClass->getDomainName() << ")" << endl; ! Iterator<MetaClassPtr> *aIterator( aMetaClass->createIterator()); ! ! while( aIterator->isValid() == true ) ! { ! walkOntology( aIterator->getElement(), indent+1 ); ! aIterator->setNext(); ! } ! aMetaClass->destroyIterator( aIterator ); ! } - void dumpOntology( void ) - { // ! // We start by resolving the root of roots :) // ! cout << endl; ! Ontology *aOntology( MetaSpace::getOntology("corelinux") ); ! ! if( aOntology != NULLPTR ) { ! cout << "Dumping ontology " << aOntology->getDomainName() << endl; ! Iterator<MetaClassCptr> *aIterator( aOntology->createRootIterator()); ! while( aIterator->isValid() == true ) ! { ! walkOntology( (MetaClassPtr)aIterator->getElement(),0 ); ! aIterator->setNext(); ! } ! aOntology->destroyIterator( aIterator ); ! } ! else ! { ! throw NullPointerException( LOCATION ); ! } ! } ! // ! // Dump info on meta types ! // ! void dumpMetaTypeInformation( MetaTypePtr aMTPtr ) ! { ! // ! // Standard stuff ! // ! cout << endl ! << "Analyzing class [" << aMTPtr->getInstanceTypeName() ! << "] MetaType [" << aMTPtr->getMetaTypeName() << "]" << endl ! << "Namespace = " << aMTPtr->getDomainName() << endl ! << "Description = " << aMTPtr->getTypeDescription() << ! endl; ! cout << endl ! << "type class version = " << aMTPtr->getTypeVersion() << endl ! << "instance size = " << aMTPtr->getTypeSize() << endl ! << "abstract type = " << ! ( aMTPtr->isAbstractType() ? "true" : "false" ) << ! endl; ! if( aMTPtr->isAbstractType() == false ) ! { ! AllocatorPtr aAPtr( aMTPtr->getAllocator() ); ! cout ! << "number allocs = " << aAPtr->getAllocateCount() ! << endl ! << "number deallocs = " << aAPtr->getDeallocateCount() ! << endl; } else { ! ; // do nothing } - - // - // Parent Dump - // - - dumpParents<MetaType>( aMTPtr ); - - // - // Data Member dump - // - - dumpInstanceMembers<MetaType>( aMTPtr ); - - // - // Dump dispatch table - // - - dumpInstanceFunctions<MetaType>( aMTPtr ); - } - // - // Dump info on types - // - - void dumpTypeInformation( FrameworkEntityPtr anFEPtr ) - { - dumpMetaTypeInformation( anFEPtr->getType() ); - } // --- 186,263 ---- } ! void executePlugIn( LibraryInstancePtr aLibInst ) { ! cout << endl ! << aLibInst->getLibraryName() ! << " loaded" ! << endl; // ! // Invoke the instance to get the object from the object registry // ! LibraryObjectPtr aObj( aLibInst->getObject("OutputPlugIn") ); ! if( aObj != NULLPTR ) { ! cout << endl ! << "Function object loaded, we can now execute the plugin:" ! << endl << endl; ! // ! // Here is an easy way when you know the object type, of course ! // we could have made a simple interface execute( char * ) which ! // set the output and called the plug-in, but hey ! // ! OutputPlugInPtr myType( OutputPlugIn::castDown( aObj ) ); + cout << "executing :" << endl; + myType->setOutputString("When the type is known"); + myType->execute(); + cout << endl; ! // ! // Here is another way to do things, when you know the type and ! // the attributes to be used in the execute ! // ! cout << "executing :" << endl; ! setValue<CharPtr> ! ( ! "OutputString", ! "With output string set prior to execute", ! aObj ! ); ! myType->execute(); ! cout << endl; ! // ! // And here is the output assuming you have done the ! // reasoning with the attributes of the MetaClass (grin) ! // ! cout << "executing :" << endl; ! aObj->getType()->dispatch ! ( ! aObj, ! "execute", ! (void **)"When there is not much known about the type", ! (void *)NULLPTR ! ); ! cout << endl; ! ! // dumpTypeInformation( aObj ); ! aLibInst->returnObject( aObj ); ! cout << endl; } else { ! cout << "Can't resolve object" << endl; } } // |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 16:26:07
|
Update of /cvsroot/corelinux/clfll/src/clfll In directory slayer.i.sourceforge.net:/tmp/cvs-serv5190/src/clfll Modified Files: FunctionLibraryInstance.cpp FunctionLibraryObject.cpp Log Message: 112702 FunctionLibraryLoad Index: FunctionLibraryInstance.cpp =================================================================== RCS file: /cvsroot/corelinux/clfll/src/clfll/FunctionLibraryInstance.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** FunctionLibraryInstance.cpp 2000/11/20 05:26:35 1.1 --- FunctionLibraryInstance.cpp 2000/11/21 16:26:04 1.2 *************** *** 47,50 **** --- 47,51 ---- { #include <dlfcn.h> + #include <string.h> } *************** *** 151,159 **** if( anObject != NULLPTR && anObject->getFunctionPointer() == NULLPTR ) { ! CharPtr anError( NULLPTR ); ! VoidPtr anAddress( NULLPTR ); - anAddress = dlsym( theLibraryHandle, aObjName ); - if( (anError = dlerror()) != NULLPTR ) { --- 152,165 ---- if( anObject != NULLPTR && anObject->getFunctionPointer() == NULLPTR ) { ! CharPtr anError( NULLPTR ); ! VoidPtr anAddress( NULLPTR ); ! CharPtr aLibrarySymbol( getAlternateSymbol(anObject) ); ! ! anAddress = dlsym ! ( ! theLibraryHandle, ! (aLibrarySymbol == NULLPTR ? aObjName : aLibrarySymbol) ! ); if( (anError = dlerror()) != NULLPTR ) { *************** *** 189,192 **** --- 195,236 ---- LibraryObjectRegistry::returnObject( this, anObject ); } + } + + // + // Get the library symbol + // + + CharPtr FunctionLibraryInstance::getAlternateSymbol + ( + FunctionLibraryObjectPtr aObject + ) + { + CharPtr *alternate( NULLPTR ); + MetaTypePtr aType( aObject->getType() ); + + Iterator<MemberDescriptorPtr>* + aIterator( aType->createMemberIterator() ); + + while( alternate == NULLPTR && aIterator->isValid() ) + { + if( strcmp + ( + aIterator->getElement()->theTypeVariableName, + "LibrarySymbol" + ) == 0 ) + { + alternate = (CharPtr*) aType->get( "LibrarySymbol", aObject ); + } + else + { + ; // do nothing + } + + aIterator->setNext(); + } + + aType->destroyIterator( aIterator ); + + return *alternate; } Index: FunctionLibraryObject.cpp =================================================================== RCS file: /cvsroot/corelinux/clfll/src/clfll/FunctionLibraryObject.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** FunctionLibraryObject.cpp 2000/11/20 05:26:35 1.1 --- FunctionLibraryObject.cpp 2000/11/21 16:26:04 1.2 *************** *** 81,90 **** OPEN_METATYPE_PARENTS( FunctionLibraryObject ) ! DEFINE_METATYPE_PARENT( LibraryObject ) ! CLOSE_METATYPE_PARENT; // We define our properties data descriptors ! DEFINE_INSTANCEDATA_DESCRIPTOR(FunctionLibraryObject,Handle,FunctionPointer); // We construct the values references --- 81,95 ---- OPEN_METATYPE_PARENTS( FunctionLibraryObject ) ! DEFINE_METATYPE_PARENT( LibraryObject ) ! CLOSE_METATYPE_PARENT; // We define our properties data descriptors ! DEFINE_INSTANCEDATA_DESCRIPTOR ! ( ! FunctionLibraryObject, ! Handle, ! FunctionPointer ! ); // We construct the values references |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 16:26:06
|
Update of /cvsroot/corelinux/clfll In directory slayer.i.sourceforge.net:/tmp/cvs-serv5190 Modified Files: configure.in Log Message: 112702 FunctionLibraryLoad Index: configure.in =================================================================== RCS file: /cvsroot/corelinux/clfll/configure.in,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** configure.in 2000/11/20 05:26:35 1.4 --- configure.in 2000/11/21 16:26:02 1.5 *************** *** 87,100 **** CXXFLAGS="${CXXFLAGS} -I/usr/include/clfw -I/usr/include/corelinux" LDFLAGS="${LDFLAGS} " ! LIBS="${LIBS} -lclfw++ -luuid -lcl++ -ldl" ],[ ! echo "You need to install corelinux framework (libclfw++), or libcorelinux (libcl++). see http://corelinux.sourceforge.net" exit; ! ],-luuid) - # - # check libuuid - # - AC_SUBST(LIBS) --- 87,96 ---- CXXFLAGS="${CXXFLAGS} -I/usr/include/clfw -I/usr/include/corelinux" LDFLAGS="${LDFLAGS} " ! LIBS="${LIBS} -lcl++ -lclfw++ -luuid -ldl" ],[ ! echo "You need to install corelinux framework (libclfw++) or corelinux (libcl++) or uuid (libuuid) or dl (libdl). see http://corelinux.sourceforge.net" exit; ! ], -luuid -lcl++) AC_SUBST(LIBS) *************** *** 109,112 **** src/clfll/Makefile \ src/testdrivers/Makefile \ ! src/testdrivers/exfl1/Makefile , [ chmod +x debian/rules ] ) --- 105,109 ---- src/clfll/Makefile \ src/testdrivers/Makefile \ ! src/testdrivers/exfl1/Makefile \ ! src/testdrivers/exfl1/include/Makefile, [ chmod +x debian/rules ] ) |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 16:26:06
|
Update of /cvsroot/corelinux/clfll/clfll In directory slayer.i.sourceforge.net:/tmp/cvs-serv5190/clfll Modified Files: FunctionLibraryInstance.hpp FunctionLibraryObject.hpp Log Message: 112702 FunctionLibraryLoad Index: FunctionLibraryInstance.hpp =================================================================== RCS file: /cvsroot/corelinux/clfll/clfll/FunctionLibraryInstance.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** FunctionLibraryInstance.hpp 2000/11/20 05:26:35 1.1 --- FunctionLibraryInstance.hpp 2000/11/21 16:26:03 1.2 *************** *** 32,35 **** --- 32,36 ---- namespace corelinux { + DECLARE_CLASS( FunctionLibraryObject ); DECLARE_CLASS( FunctionLibraryInstance ); *************** *** 94,97 **** --- 95,99 ---- protected: + // // Constructors and destructor *************** *** 100,104 **** FunctionLibraryInstance( void ); ! FunctionLibraryInstance( FunctionLibraryInstanceCref ); /// Assignment operator not allowed --- 102,112 ---- FunctionLibraryInstance( void ); ! ! /// Copy constructor not allowed ! ! FunctionLibraryInstance ! ( ! FunctionLibraryInstanceCref ! ); /// Assignment operator not allowed *************** *** 108,111 **** --- 116,131 ---- FunctionLibraryInstanceCref ); + + // + // Accessor + // + /** + Allows the object, by defining a "LibrarySymbol" attribute + to be defined, to be fetched prior to the dlsym call + @param FunctionLibraryObjectPtr that is being initialized + @return CharPtr to name or null + */ + + virtual CharPtr getAlternateSymbol( FunctionLibraryObjectPtr ); private: Index: FunctionLibraryObject.hpp =================================================================== RCS file: /cvsroot/corelinux/clfll/clfll/FunctionLibraryObject.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** FunctionLibraryObject.hpp 2000/11/20 05:26:35 1.1 --- FunctionLibraryObject.hpp 2000/11/21 16:26:03 1.2 *************** *** 34,37 **** --- 34,45 ---- DECLARE_CLASS( FunctionLibraryObject ); + /** + FunctionLibraryObject is the base class for all other + functional library object declarations, this enables + the LibraryObjectRegistry to locate it as part of + the objects produced by the FunctionLibraryInstance. + @see FunctionLibraryInstance + */ + class FunctionLibraryObject : public LibraryObject { *************** *** 43,48 **** --- 51,60 ---- // Constructors and destructor // + /// Default constructor + FunctionLibraryObject( void ); + /// Virtual Destructor + virtual ~FunctionLibraryObject( void ); *************** *** 62,65 **** --- 74,84 ---- // + // + // Required for implementation + // + /// Execute method which is called direct or through dispatch + + virtual void execute( void ) = 0; + /** @name Data members for Meta access */ *************** *** 70,73 **** --- 89,93 ---- protected: + // // Constructors and destructor |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 16:23:06
|
Update of /cvsroot/corelinux/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv4762 Modified Files: README Log Message: 122583 Release 0.2.6 Index: README =================================================================== RCS file: /cvsroot/corelinux/clfw/README,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** README 2000/11/16 19:19:50 1.14 --- README 2000/11/21 16:23:03 1.15 *************** *** 18,21 **** --- 18,27 ---- 0. Pre-pre-amble + Well, we have the LibraryLoad abstraction being tested and found working via + a concrete implementation we will be providing (libclfll++). That has been + tested for the preliminary functions of resolving a library loader, and + invoking library object instances of the kind defined by the function of + the library (shared library loader, etc. ) + Quite a bit was added in regards to the whole meta thing. At the highest level is the MetaSpace which manages Ontologies which are the semantic network of *************** *** 46,50 **** libclfw requires libuuid ! libclfw-0.2.5 require libcorelinux at least 0.4.29 Documentation --- 52,56 ---- libclfw requires libuuid ! libclfw-0.2.6 require libcorelinux at least 0.4.30 Documentation |
|
From: Frank V. C. <fr...@us...> - 2000-11-21 13:14:24
|
Update of /cvsroot/corelinux/clfll/src/testdrivers/exfl1/include In directory slayer.i.sourceforge.net:/tmp/cvs-serv15320/include Log Message: Directory /cvsroot/corelinux/clfll/src/testdrivers/exfl1/include added to the repository |
|
From: Frank V. C. <fr...@us...> - 2000-11-20 05:26:38
|
Update of /cvsroot/corelinux/clfll/src/testdrivers/exfl1 In directory slayer.i.sourceforge.net:/tmp/cvs-serv13808/src/testdrivers/exfl1 Modified Files: examp1.cpp Log Message: 122702 - Needs latest CVS clfw Index: examp1.cpp =================================================================== RCS file: /cvsroot/corelinux/clfll/src/testdrivers/exfl1/examp1.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** examp1.cpp 2000/11/18 22:45:22 1.2 --- examp1.cpp 2000/11/20 05:26:35 1.3 *************** *** 54,59 **** #endif - #include INCL_Library using namespace corelinux; --- 54,59 ---- #endif #include INCL_Library + #include INCL_LibraryInstance using namespace corelinux; *************** *** 255,260 **** Library aLibrary; ! aLibrary.load( "something.so" ); } --- 255,269 ---- Library aLibrary; + + LibraryInstancePtr aLibInst = aLibrary.load( "libm.so" ); ! if( aLibInst == NULLPTR ) ! { ! cout << "Can't load library" << endl; ! } ! else ! { ! cout << "Library " << aLibInst->getLibraryName() << " loaded" << endl; ! } } |
|
From: Frank V. C. <fr...@us...> - 2000-11-20 05:26:38
|
Update of /cvsroot/corelinux/clfll/clfll In directory slayer.i.sourceforge.net:/tmp/cvs-serv13808/clfll Modified Files: FunctionLoader.hpp Makefile.am Added Files: FunctionLibraryInstance.hpp FunctionLibraryObject.hpp Log Message: 122702 - Needs latest CVS clfw ***** Error reading new file: (2, 'No such file or directory') ***** Error reading new file: (2, 'No such file or directory') Index: FunctionLoader.hpp =================================================================== RCS file: /cvsroot/corelinux/clfll/clfll/FunctionLoader.hpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** FunctionLoader.hpp 2000/11/18 22:45:22 1.1 --- FunctionLoader.hpp 2000/11/20 05:26:35 1.2 *************** *** 34,40 **** --- 34,56 ---- #endif + #if !defined(__MAP_HPP) + #include <corelinux/Map.hpp> + #endif + #include <cstring> + namespace corelinux { + + struct KeyComp + { + bool operator()(CharCptr s1, CharCptr s2) const + { + return strcmp(s1, s2) < 0; + } + }; + + CORELINUX_MAP( CharCptr, LibraryInstancePtr, KeyComp, InstanceMap ); + DECLARE_CLASS( FunctionLoader ); *************** *** 89,93 **** virtual LibraryInstancePtr load( CharPtr ) throw ( LoadException ); - protected: --- 105,108 ---- *************** *** 103,106 **** --- 118,123 ---- private: + + static InstanceMap theInstances; }; Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfll/clfll/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Makefile.am 2000/11/18 22:45:22 1.2 --- Makefile.am 2000/11/20 05:26:35 1.3 *************** *** 13,19 **** include_HEADERS = ClfllCommon.hpp \ ! FunctionLoader.hpp \ ! FunctionLibraryType.hpp \ ! Makefile.am # Common rcs information do not modify --- 13,21 ---- include_HEADERS = ClfllCommon.hpp \ ! FunctionLoader.hpp \ ! FunctionLibraryType.hpp \ ! FunctionLibraryInstance.hpp \ ! FunctionLibraryObject.hpp \ ! Makefile.am # Common rcs information do not modify |
|
From: Frank V. C. <fr...@us...> - 2000-11-20 05:26:38
|
Update of /cvsroot/corelinux/clfll/src/clfll In directory slayer.i.sourceforge.net:/tmp/cvs-serv13808/src/clfll Modified Files: FunctionLoader.cpp Makefile.am Added Files: FunctionLibraryInstance.cpp FunctionLibraryObject.cpp Log Message: 122702 - Needs latest CVS clfw ***** Error reading new file: (2, 'No such file or directory') ***** Error reading new file: (2, 'No such file or directory') Index: FunctionLoader.cpp =================================================================== RCS file: /cvsroot/corelinux/clfll/src/clfll/FunctionLoader.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** FunctionLoader.cpp 2000/11/18 22:45:22 1.1 --- FunctionLoader.cpp 2000/11/20 05:26:35 1.2 *************** *** 27,34 **** #endif ! #include <cstdio> namespace corelinux { // // Constructor --- 27,44 ---- #endif ! #if !defined(__FUNCTIONLIBRARYINSTANCE_HPP) ! #include <FunctionLibraryInstance.hpp> ! #endif + extern "C" + { + #include <dlfcn.h> + #include <stdio.h> + } + namespace corelinux { + InstanceMap FunctionLoader::theInstances; + // // Constructor *************** *** 66,70 **** // ! bool FunctionLoader::operator==( FunctionLoaderCref aFunctionLoader ) const { return ( this == &aFunctionLoader ); --- 76,83 ---- // ! bool FunctionLoader::operator== ! ( ! FunctionLoaderCref aFunctionLoader ! ) const { return ( this == &aFunctionLoader ); *************** *** 79,95 **** return ( *this ); } ! LibraryInstancePtr FunctionLoader::load( CharPtr ) throw ( LoadException ) { LibraryInstancePtr aPtr( NULLPTR ); return aPtr; } - ! //! version FunctionLoader for the MetaType const DwordCref version(1); ! //! meta indentifier for the FunctionLoader const UniversalIdentifier metaIdentifier --- 92,131 ---- return ( *this ); } + + // + // Load routine produces the appropriate instance after creating + // with dlopen + // ! LibraryInstancePtr FunctionLoader::load( CharPtr aLibName ) ! throw ( LoadException ) { LibraryInstancePtr aPtr( NULLPTR ); + InstanceMapIterator aFItr(FunctionLoader::theInstances.find(aLibName)); + + if( aFItr != FunctionLoader::theInstances.end() ) + { + aPtr = (*aFItr).second; + } + else + { + Handle libHandle( dlopen( aLibName, RTLD_NOW ) ); + if( libHandle != NULLPTR ) + { + aPtr = new FunctionLibraryInstance( aLibName, libHandle ); + } + else + { + ; // exception? + } + } return aPtr; } ! // version FunctionLoader for the MetaType const DwordCref version(1); ! // meta indentifier for the FunctionLoader const UniversalIdentifier metaIdentifier *************** *** 113,119 **** DISPATCH_STATIC_FUNCTION( FunctionLoader, loadInstance ) CharPtr aLibraryName = (CharPtr)args; LibraryInstancePtr *myRet = (LibraryInstancePtr *) ret ; ! *myRet = NULLPTR; CLOSE_DISPATCH_FUNCTION; --- 149,159 ---- DISPATCH_STATIC_FUNCTION( FunctionLoader, loadInstance ) + CharPtr aLibraryName = (CharPtr)args; LibraryInstancePtr *myRet = (LibraryInstancePtr *) ret ; ! ! FunctionLoader aLoader; ! *myRet = aLoader.load( aLibraryName ); ! CLOSE_DISPATCH_FUNCTION; *************** *** 126,130 **** CLOSE_DISPATCH_TABLE; ! // we use the abstract macro for MetaTypeAggregate autonaming DEFINE_METATYPE --- 166,170 ---- CLOSE_DISPATCH_TABLE; ! // we use the regular macro for FunctionLoader autonaming DEFINE_METATYPE Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfll/src/clfll/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Makefile.am 2000/11/18 22:45:22 1.2 --- Makefile.am 2000/11/20 05:26:35 1.3 *************** *** 12,18 **** SUFFIXES = .cpp .hpp .c .h .f .F .o .moc ! SRCS = clfll.cpp \ ! FunctionLoader.cpp \ ! FunctionLibraryType.cpp \ Makefile.am --- 12,20 ---- SUFFIXES = .cpp .hpp .c .h .f .F .o .moc ! SRCS = clfll.cpp \ ! FunctionLoader.cpp \ ! FunctionLibraryType.cpp \ ! FunctionLibraryInstance.cpp \ ! FunctionLibraryObject.cpp \ Makefile.am |
|
From: Frank V. C. <fr...@us...> - 2000-11-20 05:26:37
|
Update of /cvsroot/corelinux/clfll In directory slayer.i.sourceforge.net:/tmp/cvs-serv13808 Modified Files: configure.in Log Message: 122702 - Needs latest CVS clfw Index: configure.in =================================================================== RCS file: /cvsroot/corelinux/clfll/configure.in,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** configure.in 2000/11/18 22:45:21 1.3 --- configure.in 2000/11/20 05:26:35 1.4 *************** *** 81,106 **** # - # check corelinux presence - # - - AC_CHECK_LIB(cl++, ACCheckCoreLinux,[ - CXXFLAGS="${CXXFLAGS} -I/usr/include/corelinux" - LDFLAGS="${LDFLAGS} " - LIBS="${LIBS} -lcl++" - ],[ - echo "You need to install corelinux (libcorelinux). see http://corelinux.sourceforge.net" - exit; - ],-lstdc++) - - # # check framework presence # AC_CHECK_LIB(clfw++, ACCheckCoreLinuxFramework,[ ! CXXFLAGS="${CXXFLAGS} -I/usr/include/clfw" LDFLAGS="${LDFLAGS} " ! LIBS="${LIBS} -lclfw++" ],[ ! echo "You need to install corelinux framework (libclfw++). see http://corelinux.sourceforge.net" exit; ],-luuid) --- 81,93 ---- # # check framework presence # AC_CHECK_LIB(clfw++, ACCheckCoreLinuxFramework,[ ! CXXFLAGS="${CXXFLAGS} -I/usr/include/clfw -I/usr/include/corelinux" LDFLAGS="${LDFLAGS} " ! LIBS="${LIBS} -lclfw++ -luuid -lcl++ -ldl" ],[ ! echo "You need to install corelinux framework (libclfw++), or libcorelinux (libcl++). see http://corelinux.sourceforge.net" exit; ],-luuid) *************** *** 109,117 **** # check libuuid # - - AC_CHECK_LIB(uuid,uuid_compare,,[ - echo "You need to install libuuid" - exit; - ],-lstdc++) AC_SUBST(LIBS) --- 96,99 ---- |
|
From: Frank V. C. <fr...@us...> - 2000-11-20 05:22:36
|
Update of /cvsroot/corelinux/clfw/clfw/LibLoad In directory slayer.i.sourceforge.net:/tmp/cvs-serv13547/clfw/LibLoad Modified Files: LibraryInstance.hpp Log Message: 122753 Library Load Refits Index: LibraryInstance.hpp =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/LibLoad/LibraryInstance.hpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** LibraryInstance.hpp 2000/11/19 05:19:52 1.3 --- LibraryInstance.hpp 2000/11/20 05:22:33 1.4 *************** *** 123,126 **** --- 123,148 ---- protected: + // + // Constructors + // + + /// Never used, exception thrown + + LibraryInstance( void ) throw ( Assertion ); + + /// Copy constructor, never used + + LibraryInstance( LibraryInstanceCref ) + throw ( Assertion ); + + + /// Assignment operator never used + + LibraryInstanceRef operator=( LibraryInstanceCref ) + throw ( Assertion ); + + // + // Support methods + // /** Instance method for derivations to call to actually *************** *** 147,164 **** private: - /// Never used, exception thrown - - LibraryInstance( void ) throw ( Assertion ); - - /// Copy constructor, never used - - LibraryInstance( LibraryInstanceCref ) - throw ( Assertion ); - - - /// Assignment operator never used - - LibraryInstanceRef operator=( LibraryInstanceCref ) - throw ( Assertion ); private: --- 169,172 ---- |
|
From: Frank V. C. <fr...@us...> - 2000-11-20 05:22:36
|
Update of /cvsroot/corelinux/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv13547 Modified Files: clfw.spec.in Log Message: 122753 Library Load Refits Index: clfw.spec.in =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw.spec.in,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** clfw.spec.in 2000/11/03 13:23:42 1.8 --- clfw.spec.in 2000/11/20 05:22:33 1.9 *************** *** 111,116 **** (cd clfw && cd LibLoad && make install prefix=$RPM_BUILD_ROOT%{prefix} includedir=$RPM_BUILD_ROOT%{prefix}/include/clfw/LibLoad) (cd src/libs && make install prefix=$RPM_BUILD_ROOT%{prefix} includedir=$RPM_BUILD_ROOT%{prefix}/include/clfw) ! (/bin/sh admin/mkinstalldirs $RPM_BUILD_ROOT%{prefix}/man/man3 ) ! (cd doc/man/man3 && cp *.3 $RPM_BUILD_ROOT%{prefix}/man/man3/) %post -p /sbin/ldconfig --- 111,116 ---- (cd clfw && cd LibLoad && make install prefix=$RPM_BUILD_ROOT%{prefix} includedir=$RPM_BUILD_ROOT%{prefix}/include/clfw/LibLoad) (cd src/libs && make install prefix=$RPM_BUILD_ROOT%{prefix} includedir=$RPM_BUILD_ROOT%{prefix}/include/clfw) ! #(/bin/sh admin/mkinstalldirs $RPM_BUILD_ROOT%{prefix}/man/man3 ) ! #(cd doc/man/man3 && cp *.3 $RPM_BUILD_ROOT%{prefix}/man/man3/) %post -p /sbin/ldconfig *************** *** 135,139 **** %{_libdir}/%{lib_name}.a %{_libdir}/%{lib_name}.la ! %{_mandir}/man3/*.3.gz %doc debian/README.Redhat --- 135,139 ---- %{_libdir}/%{lib_name}.a %{_libdir}/%{lib_name}.la ! #%{_mandir}/man3/*.3.gz %doc debian/README.Redhat |
|
From: Frank V. C. <fr...@us...> - 2000-11-20 05:22:36
|
Update of /cvsroot/corelinux/clfw/doc In directory slayer.i.sourceforge.net:/tmp/cvs-serv13547/doc Modified Files: clfw.cfg.in Log Message: 122753 Library Load Refits Index: clfw.cfg.in =================================================================== RCS file: /cvsroot/corelinux/clfw/doc/clfw.cfg.in,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** clfw.cfg.in 2000/11/18 22:43:14 1.7 --- clfw.cfg.in 2000/11/20 05:22:33 1.8 *************** *** 35,39 **** GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES - VERBATIM_HEADERS = NO #--------------------------------------------------------------------------- # configuration options related to warning and progress messages --- 35,38 ---- *************** *** 52,56 **** RECURSIVE = YES EXCLUDE = ! EXCLUDE_PATTERNS = */corelinux/*.hpp EXAMPLE_PATH = ../src/testdrivers/ EXAMPLE_PATTERNS = --- 51,55 ---- RECURSIVE = YES EXCLUDE = ! EXCLUDE_PATTERNS = EXAMPLE_PATH = ../src/testdrivers/ EXAMPLE_PATTERNS = *************** *** 96,100 **** # configuration options related to the man page output #--------------------------------------------------------------------------- ! GENERATE_MAN = YES MAN_OUTPUT = man MAN_EXTENSION = .3 --- 95,99 ---- # configuration options related to the man page output #--------------------------------------------------------------------------- ! GENERATE_MAN = NO MAN_OUTPUT = man MAN_EXTENSION = .3 |