14 if ( slash != std::string::npos ) {
26 if ( slash == std::string::npos ) {
47 if ( propName.
empty() ) {
61 for (
const auto& it : myTypesAndNamesList ) {
71 for (
const auto& it : getBaseArray() ) theList.
push_back( ( it->*pMemFunc )() );
89 auto theList = typesAndNames();
90 auto first = theList.begin();
91 auto last = theList.end();
92 if ( first != last ) {
93 repr +=
"'" + *first +
"'";
96 for ( ; first != last; ++first ) repr +=
",'" + *first +
"'";
108 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.
void push_back(Container &c, const Value &v, std::true_type)
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