1 #ifndef GAUDIKERNEL_TOOLHANDLE_H
2 #define GAUDIKERNEL_TOOLHANDLE_H
46 return parent ?
"PrivateTool" :
"PublicTool";
55 return pNamed->
name();
199 virtual bool push_back(
const std::string& toolTypeAndName ) {
216 inline std::ostream& operator<<( std::ostream& os, const ToolHandle<T>& handle ) {
217 return operator<<(os, static_cast<const GaudiHandleInfo&>(handle) );
222 inline std::ostream& operator<<( std::ostream& os, const ToolHandleArray<T>& handle ) {
223 return operator<<(os, static_cast<const GaudiHandleInfo&>(handle) );
227 #endif // ! GAUDIKERNEL_TOOLHANDLE_H
Handle to be used in lieu of naked pointers to gaudis.
std::string getDefaultType()
Helper function to get default type string from the class type.
const std::string & parentName() const
The name of the parent.
StatusCode release() const
Release the component.
virtual const std::string & name() const =0
Retrieve the name of the instance.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
StatusCode retrieve() const
Retrieve the component.
StatusCode retrieve() const
Retrieve the Service.
IInterface compliant class extending IInterface with the name() method.
Base class to handles to be used in lieu of naked pointers to various Gaudi components.
std::string typeAndName() const
The full type and name: "type/name".
T is the concrete handle type, e.g.