15 if ( slash != std::string::npos ) {
26 if ( slash == std::string::npos ) {
50 if ( propName.empty() ) {
65 std::vector< std::string >::const_iterator it = myTypesAndNamesList.begin(),
66 itEnd = myTypesAndNamesList.end();
67 for ( ; it != itEnd; ++it ) {
73 const std::vector< std::string >
75 std::vector< std::string > theList;
77 GaudiHandleArrayBase::ConstBaseHandleArray::const_iterator it = baseArray.begin(),
78 itEnd = baseArray.end();
79 for ( ; it != itEnd; ++it ) theList.push_back( ((*it)->*pMemFunc)() );
102 std::vector< std::string >::const_iterator it = theList.begin(),
103 itEnd = theList.end(), itLast = itEnd - 1;
104 for ( ; it != itEnd; ++it ) {
105 repr +=
"'" + *it +
"'";
106 if ( it != itLast ) repr +=
",";
119 if ( !propName.empty() ) msg += propName +
" = ";
std::ostream & operator<<(std::ostream &os, const GaudiHandleInfo &handle)
std::vector< const GaudiHandleBase * > ConstBaseHandleArray
const std::string messageName() const
name used for printing messages
virtual ConstBaseHandleArray getBaseArray() const =0
Get a read-only vector of const GaudiHandleBase* pointing to the real handles.
virtual const std::string pythonPropertyClassName() const
Name of the componentType with "HandleArray" appended.
const std::string & parentName() const
The name of the parent.
const std::vector< std::string > names() const
Return a vector with "type/name" strings of all handles in the array.
const std::vector< std::string > getBaseInfos(std::string(GaudiHandleBase::*pMemFunc)() const ) const
Helper function to get a vector of strings filled with the return value of each tool of a member func...
const std::vector< std::string > types() const
Return a vector with "type" strings of all handles in the array.
const std::string & propertyName() const
name as used in declareProperty(name,gaudiHandle)
bool setTypesAndNames(const std::vector< std::string > &myTypesAndNamesList)
Set the array of handles from list of "type/name" strings in .
virtual void clear()=0
Clear the list of handles.
virtual const std::string pythonRepr() const
Python representation of handle, i.e.
std::string m_typeAndName
virtual bool push_back(const std::string &myHandleTypeAndName)=0
Add a handle to the array with "type/name" given in .
void setTypeAndName(const std::string &myTypeAndName)
The component "type/name" string.
std::string type() const
The concrete component class name: the part before the '/'.
const std::vector< std::string > typesAndNames() const
Return a vector with "type/name" strings of all handles in the array.
std::string name() const
The instance name: the part after the '/'.
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".
virtual const std::string pythonRepr() const =0
Python representation of handle, i.e.
const std::string pythonPropertyClassName() const
Name of the componentType with "Handle" appended.
void setName(const std::string &myName)
Set the instance name (part after the '/') without changing the class type.
const std::string & componentType() const
virtual const std::string pythonRepr() const
Python representation of array of handles, i.e.