25 const std::string &name)
46 if(pos >=
m_alg.size()) {
48 <<
"getAlg(" << pos <<
") error! Index is greater than alg size=" <<
m_alg.size() <<
" for " <<
m_output_te_name;
51 if(
m_alg[pos].getPosition() != pos) {
53 <<
"getAlg(" << pos <<
") error! Index mismatch: " <<
m_alg[pos].getPosition() <<
"!=" << pos;
63 std::vector<TrigConfAlg>::const_iterator it =
m_alg.begin();
65 for(; it !=
m_alg.end(); ++it) {
66 if(it->getName() == aname)
break;
76 std::vector<TrigConfAlg>::const_iterator it =
m_alg.begin();
78 for(; it !=
m_alg.end(); ++it) {
79 if(it->getType() == atype)
break;
106 os <<
str(*
this) << std::endl;
113 s <<
"TrigConfSeq: " << o.
getName() <<
" id=" << o.
getId()
114 <<
" contains " << o.
getAlg().size() <<
" algorithm(s): " << std::endl;
116 for(
unsigned int i = 0; i < o.
getAlg().size(); ++i) {
117 s <<
" " <<
str(o.
getAlg()[i]) << std::endl;
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
std::vector< TrigConfAlg >::const_iterator findType(const std::string &atype) const
std::vector< TrigConfAlg > m_alg
bool matchAlgType(const std::string &atype) const
bool matchAlgName(const std::string &aname) const
std::vector< TrigConfAlg >::const_iterator findName(const std::string &aname) const
const TrigConfAlg & getAlg(unsigned int pos) const
const std::string & getName() const
void print(std::ostream &os=std::cout) const
uint16_t m_output_te_index
std::string m_output_te_name
const std::vector< TrigConfAlg > & getAlg() const