10 #ifndef ASGSERVICES_SERVICEHANDLE_H
11 #define ASGSERVICES_SERVICEHANDLE_H
14 #ifndef XAOD_STANDALONE
15 # include "GaudiKernel/ServiceHandle.h"
16 #else // not XAOD_STANDALONE
34 class ServiceHandleBase
38 ServiceHandleBase(
const std::string& typeAndName,
const std::string&
parentName );
41 const std::string& typeAndName()
const;
43 const std::string&
type()
const;
45 const std::string&
name()
const;
50 void setTypeAndName(
const std::string& typeAndName);
52 void setName(
const std::string&
name);
56 std::string m_typeAndName;
62 std::string m_parentName;
90 const std::string& serviceName,
91 const std::string& propertyTitle =
"");
100 const T* operator->()
const;
108 void disable () noexcept;
118 mutable std::shared_ptr<
T> m_pservice;
124 std::ostream& operator<< ( std::ostream&
out,
128 #include "AsgServices/ServiceHandle.icc"
130 #endif // not XAOD_STANDALONE
131 #endif // ASGSERVICES_SERVICEHANDLE_H