31 const std::string& typName,
const std::string& pattern)
32 :
RangeSelector(bl, range), itsClass(0), itsType(typName), itsPattern(0), itsCount(0) {
35 std::cerr <<
"\n### Warning ### Unknown class name \"" << clsName
36 <<
"\"; will select all classes.\n"
41 if (!pattern.empty()) {
An abstract sequence of beam line components.
virtual const std::string & getName() const
Get element name.
static Element * find(const std::string &name)
Find named Element.
ElementBase * getElement() const
Get the element pointer.
A section of a beam line.
void setSelectionFlag(bool flag) const
Get selection flag.
bool isTreeMember(const Object *subTree) const
Test for tree membership.
const std::string getTypeName() const
Return the element's type name.
Representation of a range within a beam line or sequence.
bool isActive() const
Test for active range.
virtual void execute()
Execute the algorithm.
RangeRep itsRange
Working data for range.
bool match(const std::string &s) const
Match a string against the pattern.
virtual void handleElement(const FlaggedElmPtr &)
The operation to be done for elements.
int getCount() const
Return the count of selected elements.
virtual void execute()
Execute the selection.
const std::string itsType
const RegularExpression * itsPattern