X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkFactory.cxx;h=3d4aef1d4d45ca196f30c85f81bcad68c16bd6d4;hb=bf1bdd88621c0556024de37768c2d17d12f2a265;hp=cfd3c6ec531894a0a3dcda4aeab7b906be244ce8;hpb=bf42bb34e170d933fea13937f90aefc0c4458920;p=bbtk.git diff --git a/kernel/src/bbtkFactory.cxx b/kernel/src/bbtkFactory.cxx index cfd3c6e..3d4aef1 100644 --- a/kernel/src/bbtkFactory.cxx +++ b/kernel/src/bbtkFactory.cxx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkFactory.cxx,v $ Language: C++ - Date: $Date: 2010/09/12 14:59:29 $ - Version: $Revision: 1.51 $ + Date: $Date: 2012/05/30 17:17:00 $ + Version: $Revision: 1.52 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -115,6 +115,7 @@ namespace bbtk bbtkMessage("output",2,p->GetDescription()<AddFactory(GetThisPointer()); +printf("EED Factory::DoLoadPackage > %s %s %s \n",libname.c_str(), pkgname.c_str(),path.c_str()); mPackageMap[pkgname] = p; return true; } @@ -140,6 +141,8 @@ namespace bbtk void Factory::LoadPackage( const std::string& name ) { + + // Note : in the following : // name : the user supplied name // - abreviated name e.g. pkg pkg.so libbpkg libbbpkg.so @@ -149,6 +152,8 @@ namespace bbtk // // lastname : string before the last / (if any), or user supplied name + + if(name != ""){ bbtkDebugMessageInc("kernel",7,"Factory::LoadPackage(\""<.so std::string upath; + + pkgname = Utilities::ExtractPackageName(name,upath); + + printf("EED Factory::LoadPackage A. %s\n", name.c_str()); + printf("EED Factory::LoadPackage A. %s\n", upath.c_str()); + printf("EED Factory::LoadPackage A. %s\n", pkgname.c_str()); + bbtkMessage("debug",1,"Package name ["<GetName()<<"\")"<AddFactory(GetThisPointer()); + +printf("EED Factory::InsertPackage %s\n", p->GetName().c_str() ); + mPackageMap[p->GetName()] = p; bbtkDebugDecTab("kernel",9);