Module: $RCSfile: bbtkFactory.cxx,v $
Language: C++
-Date: $Date: 2008/04/18 12:59:15 $
-Version: $Revision: 1.33 $
+Date: $Date: 2008/07/01 07:58:28 $
+Version: $Revision: 1.37 $
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() )
bbtkDebugMessageInc("Kernel",9,"Factory::InsertPackage(\""<<
p->GetName()<<"\")"<<std::endl);
- std::cout << p.use_count() <<std::endl;
-
p->AddFactory(GetThisPointer<Factory>());
mPackageMap[p->GetName()] = p;
- std::cout << p.use_count() <<std::endl;
-
bbtkDebugDecTab("Kernel",9);
}
//===================================================================
++j)
{
if ( ( j->first.mKind ==
- BlackBoxDescriptor::DEFAULT_WIDGET_ADAPTOR) &&
+ BlackBoxDescriptor::DEFAULT_GUI) &&
//(j->first.mTypeIn == typein) &&
(j->first.mTypeOut.GetNature() == typeout.GetNature() )
)
//===================================================================
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);
}
//===================================================================
ptm = gmtime ( &rawtime );
s << "<p><hr>\n";
- s << "Automatically generated by <b>bbi</b> on "
+ s << "Automatically generated by <b>bbtk</b> on "
<< ptm->tm_mday << "/" << ptm->tm_mon << "/" << ptm->tm_year+1900
<< " - " << ptm->tm_hour << ":" << ptm->tm_min << " GMT\n";
s << "</body></html>\n";