not enough information... skip it
{
const bool isGaudiSvc = (
std::find( libs.begin(), endLib, gaudiSvc ) != endLib );
cout <<
"ERROR: ApplicationMgr can not be created. Check environment" <<
endl;
}
using Gaudi::PluginService::Details::Registry;
Registry&
registry = Registry::instance();
bool allGood = true;
if ( err != 1 ) {
allGood = false;
continue;
}
it != factories.
end(); ++it ) {
const string ident = *it;
if ( bkgNames.
find(ident) != bkgNames.
end() ) {
cout <<
"\t==> skipping [" << ident <<
"]..." <<
endl;
}
continue;
}
const Registry::FactoryInfo info = registry.getInfo(*it);
const string rtype = info.rtype;
if (info.properties.find("ReflexName") != info.properties.end())
continue;
cout <<
"WARNING: library [" << *iLib <<
"] exposes factory ["
<< ident << "] which is declared in ["
continue;
}
bool known = true;
if ( ident == "ApplicationMgr" ) type = "ApplicationMgr";
else if ( rtype ==
typeid(
IInterface*).name() ) type =
"IInterface";
else if ( rtype ==
typeid(
IAlgorithm*).name() ) type =
"Algorithm";
else if ( rtype ==
typeid(
IService* ).name() ) type =
"Service";
else if ( rtype ==
typeid(
IAlgTool* ).name() ) type =
"AlgTool";
else if ( rtype ==
typeid(
IAuditor* ).name() ) type =
"Auditor";
else if ( rtype ==
typeid(
IConverter*).name() ) type =
"Converter";
else if ( rtype ==
typeid(
DataObject*).name() ) type =
"DataObject";
else type = "Unknown", known = false;
string name = ident;
if ( type == "IInterface" ) {
continue;
}
if ( type == "Converter" || type == "DataObject" ) {
continue;
}
if ( !known ) {
cout <<
"WARNING: Unknown (return) type [" << rtype <<
"] !!\n"
<< "WARNING: component [" << ident << "] is skipped !"
allGood = false;
continue;
}
cout <<
" - component: " << info.className <<
" (";
if (info.className != name)
string cname = "DefaultName";
try {
if ( type == "Algorithm" ) {
}
else if ( type == "Service") {
}
else if ( type == "AlgTool") {
prop->release();
}
else if ( type == "Auditor") {
}
else if ( type == "ApplicationMgr") {
}
else {
continue;
}
}
cout <<
"ERROR: Error instantiating " << name
<< " from " << *iLib << endl;
cout <<
"ERROR: Got exception: " << e.
what() << endl;
allGood = false;
continue;
}
catch ( ... ) {
cout <<
"ERROR: Error instantiating " << name
<< " from " << *iLib << endl;
allGood = false;
continue;
}
if( prop ) {
if (
genComponent( *iLib, name, type, prop->getProperties() )) {
allGood = false;
}
} else {
cout <<
"ERROR: could not cast IInterface* object to an IProperty* !\n"
<< "ERROR: return type from PluginSvc is [" << rtype << "]...\n"
<< "ERROR: NO Configurable will be generated for ["
<< name << "] !"
<< endl;
allGood = false;
}
}
fs::path(*iLib+
"_confDb.py") ).
string();
if (!userModule.empty())
py << "from " << userModule << " import *" <<endl;
}
dummySvc = 0;
}