15 if ( slash != std::string::npos ) {
26 if ( slash == std::string::npos ) {
50 if ( propName.
empty() ) {
65 for (
const auto& it : myTypesAndNamesList ) {
66 if ( !push_back( it ) )
return false;
74 for (
const auto& it : getBaseArray() ) theList.
push_back( (it->*pMemFunc)() );
96 auto theList = typesAndNames();
97 auto first = theList.begin();
98 auto last = theList.end();
99 if ( first != last ) { repr +=
"'" + *first +
"'"; ++first; }
100 for (;first!=last;++first) repr +=
",'" + *first +
"'";
111 if ( !propName.empty() ) msg += propName +
" = ";
std::string messageName() const
name used for printing messages
std::ostream & operator<<(std::ostream &os, const GaudiHandleInfo &handle)
void setTypeAndName(std::string myTypeAndName)
The component "type/name" string.
std::string pythonPropertyClassName() const override
Name of the componentType with "Handle" 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 <myTypesAndNamesList>.
std::string m_typeAndName
std::string pythonRepr() const override
Python representation of array of handles, i.e.
std::string pythonRepr() const override
Python representation of handle, i.e.
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 std::string pythonRepr() const =0
Python representation of handle, i.e.
void setName(const std::string &myName)
Set the instance name (part after the '/') without changing the class type.
std::string pythonPropertyClassName() const override
Name of the componentType with "HandleArray" appended.
const std::string & componentType() const