Module: $RCSfile: bbtkFactory.cxx,v $
Language: C++
-Date: $Date: 2008/04/22 06:59:31 $
-Version: $Revision: 1.35 $
+Date: $Date: 2008/04/22 08:29:09 $
+Version: $Revision: 1.36 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
// lastname : string before the last / (if any), or user supplied name
bbtkDebugMessageInc("Kernel",7,"Factory::LoadPackage(\""<<name<<"\")"<<std::endl);
- bbtkMessage("Debug",1,"Factory::LoadPackage(\""<<name<<"\")"<<std::endl);
+ bbtkMessage("debug",1,"Factory::LoadPackage(\""<<name<<"\")"<<std::endl);
std::vector<std::string> package_paths;
std::string libname; // full path library name
std::string upath;
pkgname = Utilities::ExtractPackageName(name,upath);
- bbtkMessage("Debug",1,"Package name ["<<pkgname<<"]"<<std::endl);
- bbtkMessage("Debug",1,"Package path ["<<upath<<"]"<<std::endl);
+ bbtkMessage("debug",1,"Package name ["<<pkgname<<"]"<<std::endl);
+ bbtkMessage("debug",1,"Package path ["<<upath<<"]"<<std::endl);
// no loading package if already loaded
PackageMapType::iterator iUnload;
libname = Utilities::MakeLibnameFromPath(path, pkgname);
- bbtkMessage("Debug",2,"-> Trying to load [" << libname << "]" <<std::endl);
+ bbtkMessage("debug",2,"-> Trying to load [" << libname << "]" <<std::endl);
// Check if library exists
if ( !Utilities::FileExists(libname) )
ok = DoLoadPackage( libname, pkgname, path);
if (ok)
{
- bbtkMessage("Debug",2," OK"<<std::endl);
+ bbtkMessage("debug",2," OK"<<std::endl);
break; // a package was found; we stop iterating
}
} //------------------ // end for ( package_paths.begin();i!=package_paths.end() )
//===================================================================
void Factory::CheckPackages() const
{
- bbtkMessage("Debug",1,"****** Checking Factory "<<(void*)this
+ bbtkMessage("debug",1,"****** Checking Factory "<<(void*)this
<<std::endl);
PackageMapType::const_iterator i;
for (i = mPackageMap.begin(); i!=mPackageMap.end(); ++i )
{
i->second->CheckBoxes();
}
- bbtkMessage("Debug",1,"****** Checking Factory "<<(void*)this
+ bbtkMessage("debug",1,"****** Checking Factory "<<(void*)this
<<" ... OK"<<std::endl);
}
//===================================================================