8 #include "GaudiKernel/ObjectContainerBase.h"
9 #include "GaudiKernel/ObjectList.h"
10 #include "GaudiKernel/ObjectVector.h"
11 #include "GaudiKernel/KeyedContainer.h"
12 #include "GaudiKernel/IDataProviderSvc.h"
13 #include "GaudiKernel/IDataManagerSvc.h"
14 #include "GaudiKernel/IOpaqueAddress.h"
15 #include "GaudiKernel/SmartDataPtr.h"
16 #include "GaudiKernel/Algorithm.h"
17 #include "GaudiKernel/IRegistry.h"
18 #include "GaudiKernel/MsgStream.h"
19 #include "GaudiKernel/SmartIF.h"
79 for (
typename T::const_iterator
i = p->begin();
i != p->end(); ++
i ) {
80 int idx = p->index(*
i);
81 s << idx <<
":" << (*i)->clID() <<
",";
83 std::string result = s.str();
84 return result.substr(0, result.length()-2);
86 return "Access FAILED.";
94 for (
size_t j = 1; j < flg.size(); j++ ) {
95 if ( !flg[j-1] && flg[j] ) log <<
"| ";
96 else if ( flg[j] ) log <<
" ";
99 log <<
"+--> " << pReg->
name();
101 log <<
" [Address: CLID="
102 << std::showbase << std::hex << pReg->
address()->
clID();
106 log <<
" [No Address]";
115 log <<
" " << typ.substr(0,32);
118 log <<
"Access test FAILED";
122 log <<
" (Unloaded) ";
129 log <<
" [" << numObj <<
"]";
133 case CLID_ObjectList>>16:
136 case CLID_ObjectVector>>16:
139 case (CLID_ObjectVector+0x00030000)>>16:
142 case (CLID_ObjectVector+0x00040000)>>16:
145 case (CLID_ObjectVector+0x00050000)>>16:
152 log <<
"Access test FAILED";
163 typedef std::vector<IRegistry*> Leaves;
166 const std::string* par0 = 0;
171 for ( Leaves::const_iterator
i=leaves.begin();
i != leaves.end();
i++ ) {
172 const std::string&
id = (*i)->identifier();
176 const std::string* par1 = (*i)->address()->par();
178 if ( par0[0] != par1[0] ) {
185 sc =
eventSvc()->retrieveObject(
id, p);
192 flg.push_back(
i+1 == leaves.end());
198 flg.push_back(
i+1 == leaves.end());
219 log <<
MSG::ERROR <<
"Failed to retrieve IDataManagerSvc interface." <<
endmsg;
222 log <<
MSG::ERROR <<
"Failed to access service \""
242 std::string store_name =
"Unknown";
247 store_name = isvc->name();
251 <<
"0x" << std::hex << (
unsigned long) root.
ptr() << std::dec
252 <<
"@" << store_name <<
"]:" <<
endmsg;
253 std::vector<bool> flg;