X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkPackage.cxx;h=91cdb518372b220f124b1de33af8dc5c22c8912a;hb=12f2166f201f4e5a99c9c7876dadd09da81bfb51;hp=8abe68906c4c81a122b9e0c7193a391caa91d44f;hpb=d6a3121dd19dec63c484cd1eeeda57bd7edb8442;p=bbtk.git diff --git a/kernel/src/bbtkPackage.cxx b/kernel/src/bbtkPackage.cxx index 8abe689..91cdb51 100644 --- a/kernel/src/bbtkPackage.cxx +++ b/kernel/src/bbtkPackage.cxx @@ -1,33 +1,40 @@ +/* + # --------------------------------------------------------------------- + # + # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image + # pour la SantÈ) + # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton + # Previous Authors : Laurent Guigues, Jean-Pierre Roux + # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil + # + # This software is governed by the CeCILL-B license under French law and + # abiding by the rules of distribution of free software. You can use, + # modify and/ or redistribute the software under the terms of the CeCILL-B + # license as circulated by CEA, CNRS and INRIA at the following URL + # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html + # or in the file LICENSE.txt. + # + # As a counterpart to the access to the source code and rights to copy, + # modify and redistribute granted by the license, users are provided only + # with a limited warranty and the software's author, the holder of the + # economic rights, and the successive licensors have only limited + # liability. + # + # The fact that you are presently reading this means that you have had + # knowledge of the CeCILL-B license and that you accept its terms. + # ------------------------------------------------------------------------ */ + + /*========================================================================= Program: bbtk Module: $RCSfile: bbtkPackage.cxx,v $ Language: C++ - Date: $Date: 2009/10/16 08:52:12 $ - Version: $Revision: 1.32 $ + Date: $Date: 2012/11/16 08:49:01 $ + Version: $Revision: 1.37 $ =========================================================================*/ -/* --------------------------------------------------------------------- - -* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale) -* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux -* -* This software is governed by the CeCILL-B license under French law and -* abiding by the rules of distribution of free software. You can use, -* modify and/ or redistribute the software under the terms of the CeCILL-B -* license as circulated by CEA, CNRS and INRIA at the following URL -* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -* or in the file LICENSE.txt. -* -* As a counterpart to the access to the source code and rights to copy, -* modify and redistribute granted by the license, users are provided only -* with a limited warranty and the software's author, the holder of the -* economic rights, and the successive licensors have only limited -* liability. -* -* The fact that you are presently reading this means that you have had -* knowledge of the CeCILL-B license and that you accept its terms. -* ------------------------------------------------------------------------ */ + /** *\file @@ -78,8 +85,10 @@ namespace bbtk mDescription(description), mVersion(version) { + bbtkDebugMessage("object",2,"==> Package('"<mDescriptorMap[*descname]; if ( (dyn==0) || (boost::dynamic_pointer_cast(desc)) ) @@ -244,10 +253,7 @@ namespace bbtk UnLoadDynamicLibrary(pack); // Unload orphan dl packages Package::UnLoadReleasedDynamicallyLoadedPackages(); - - - } #ifdef BBTK_COMPILE_DEBUG_MESSAGES @@ -352,11 +358,8 @@ namespace bbtk /// to test that a dyn lib is a valid bbtk package lib /// NB : The BBTK version exported from the library /// is tested against the current bbtk version - DynamicLibraryHandler Package::OpenDynamicLibrary - ( const std::string& libname, - const std::string& package_name, - DLGetPackageFunction& getpack, - DLDeletePackageFunction& delpack) + DynamicLibraryHandler Package::OpenDynamicLibrary( const std::string& libname,const std::string& package_name, + DLGetPackageFunction& getpack, DLDeletePackageFunction& delpack) { bbtkDebugMessage("package",3,"==> Package::OpenDynamicLibrary(" <mDynamicLibraryHandler)) return; - - + std::string packname = pack.lock()->GetName(); bbtkDebugMessage("package",5,"==> Package::UnLoadDynamicLibrary('" <GetDescriptorMap().empty()) { - + bbtkDebugMessage("package",5," Package not empty ... abort" < package '"< with name BlackBox::Pointer Package::NewBlackBox(const std::string& type, @@ -1399,10 +1407,21 @@ namespace bbtk return s; } //========================================================================== - + void Package::GetBoxesInside(NodeTreeC& tree, int cont) + { + DescriptorMapType::const_iterator i; + std::cout<<"*********a********"<second->GetBoxesInside(tree, cont); + std::cout<<"*****************"< Package::mReleasedDynamicallyLoadedPackages; //========================================================================== + }