std::string pkgname,
std::string path)
{
-
Package::Pointer p = Package::CreateFromDynamicLibrary(libname,
pkgname,
path);
mPackageMap[pkgname] = p;
return true;
}
- return false;
-
+ return false;
}
//===================================================================
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
// The following is *NOT* a debug time message :
// It's a user intended message.
// Please don't remove it.
- bbtkMessage("output",3," [" <<libname
- <<"] : doesn't exist" <<std::endl);
- }
- else
- {
+ bbtkMessage("output",3," [" << libname <<"] : doesn't exist" <<std::endl);
+ } else {
ok = DoLoadPackage( libname, pkgname, path);
- }
- }
- else
- {
+ }
+ } else {
bbtkError("Path ["<<upath<<"] doesn't exist");
return;
}
- }
- else // ----------------------------------------------------- iterate on the paths
+ } else // ----------------------------------------------------- iterate on the paths
{
std::string path = ".";
foundFile = true;
// Try to Load the library
-
ok = DoLoadPackage( libname, pkgname, path);
if (ok)
{
}
bbtkMessage("output",2,"[" << libname << "] loaded" << std::endl);
}
-
-
-
}
//===================================================================