3 #ifndef GAUDIALG_GAUDICOMMON_H
4 #define GAUDIALG_GAUDICOMMON_H 1
36 namespace Gaudi {
namespace Utils {
template <
class TYPE>
struct GetData ; } }
58 template <
class PBASE >
71 static const bool IgnoreRootInTES =
false;
83 static const bool UseRootInTES =
true;
90 typedef std::map<std::string,unsigned int>
Counter ;
138 template <
class TYPE >
139 typename Gaudi::Utils::GetData<TYPE>::return_type
141 const std::string& location ,
142 const bool useRootInTES = true )
const ;
146 template <
class TYPE >
147 typename Gaudi::Utils::GetData<TYPE>::return_type
149 const std::string& location ,
150 const bool useRootInTES =
true )
const ;
177 template <
class TYPE >
179 const std::string& location ,
180 const bool useRootInTES =
true )
const ;
208 template <
class TYPE ,
class TYPE2 >
209 typename Gaudi::Utils::GetData<TYPE>::return_type
211 const std::string& location ,
212 const bool useRootInTES =
true )
const ;
240 const std::string& location ,
241 const bool useRootInTES =
true )
const ;
267 template <
class TOOL >
268 TOOL* tool (
const std::string&
type ,
269 const std::string& name ,
271 bool create =
true )
const ;
294 template <
class TOOL >
295 TOOL* tool (
const std::string&
type ,
297 bool create =
true )
const ;
320 template <
class SERVICE >
322 const bool create =
true )
const ;
350 (
const std::string&
msg ,
352 const size_t mx = 10 )
const ;
377 (
const std::string&
msg ,
379 const size_t mx = 10 )
const ;
396 (
const std::string&
msg ,
398 const size_t mx = 10 )
const ;
411 (
const std::string&
msg ,
424 const std::string& message =
"" ,
436 const char* message ,
447 (
const std::string &
msg ,
460 (
const std::string & msg ,
461 const std::exception & exc ,
472 (
const std::string& msg =
"no message" ,
544 void resetMsgStream()
const;
561 void msgLevelHandler (
Property& theProp );
594 template <
class CallerClass>
596 updMgrSvc()->registerCondition(dynamic_cast<CallerClass*>(
this),condition,mf);
628 template <
class CallerClass,
class CondType>
629 inline void registerCondition(
const std::string &condition, CondType *&condPtrDest,
631 updMgrSvc()->registerCondition(dynamic_cast<CallerClass*>(
this),condition,mf,condPtrDest);
634 template <
class CallerClass>
636 updMgrSvc()->registerCondition(dynamic_cast<CallerClass*>(
this),std::string(condition),mf);
653 template <
class CallerClass,
class TargetClass>
655 updMgrSvc()->registerCondition(dynamic_cast<CallerClass*>(
this),condition,mf);
675 const std::string& name ,
683 {
return i_gcInitialize(); }
692 {
return i_gcFinalize(); }
733 virtual inline unsigned long release() {
return PBASE::release(); }
745 void printErrorHandler (
Property& ) ;
747 void printPropsHandler (
Property& ) ;
749 void printStatHandler (
Property& ) ;
754 inline const std::string &
context()
const {
return m_context; }
758 inline const std::string &
rootInTES()
const {
return m_rootInTES; }
765 const std::string fullTESLocation
766 (
const std::string & location ,
767 const bool useRootInTES )
const ;
772 void addToToolList (
IAlgTool * tool )
const;
776 void initGaudiCommonConstructor(
const IInterface * parent = 0 );
839 #endif // GAUDIALG_GAUDICOMMON_H