Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::ProcessNameSelector Class Reference

#include <Selector.h>

Inheritance diagram for art::ProcessNameSelector:
art::SelectorBase

Public Member Functions

 ProcessNameSelector (std::string const &pn)
 
- Public Member Functions inherited from art::SelectorBase
virtual ~SelectorBase ()=default
 
bool match (BranchDescription const &p) const
 
std::string print (std::string const &indent) const
 

Private Member Functions

bool doMatch (BranchDescription const &p) const override
 
std::string doPrint (std::string const &indent) const override
 

Private Attributes

std::string pn_
 

Detailed Description

Definition at line 60 of file Selector.h.

Constructor & Destructor Documentation

art::ProcessNameSelector::ProcessNameSelector ( std::string const &  pn)
inlineexplicit

Definition at line 62 of file Selector.h.

63  : pn_{pn.empty() ? std::string{"*"} : pn}
64  {}
std::string string
Definition: nybbler.cc:12

Member Function Documentation

bool art::ProcessNameSelector::doMatch ( BranchDescription const &  p) const
inlineoverrideprivatevirtual

Implements art::SelectorBase.

Definition at line 68 of file Selector.h.

69  {
70  return (pn_ == "*") || (p.processName() == pn_);
71  }
p
Definition: test.py:223
std::string art::ProcessNameSelector::doPrint ( std::string const &  indent) const
inlineoverrideprivatevirtual

Implements art::SelectorBase.

Definition at line 74 of file Selector.h.

75  {
76  std::string result{indent + "Process name: "};
77  if (pn_ == "*") {
78  result += "(empty)";
79  } else {
80  result += "'" + pn_ + "'";
81  }
82  return result;
83  }
static QCString result
std::string string
Definition: nybbler.cc:12

Member Data Documentation

std::string art::ProcessNameSelector::pn_
private

Definition at line 85 of file Selector.h.


The documentation for this class was generated from the following file: