CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TriggerExpressionPathReader.h
Go to the documentation of this file.
1 #ifndef HLTrigger_HLTfilters_TriggerExpressionPathReader_h
2 #define HLTrigger_HLTfilters_TriggerExpressionPathReader_h
3 
4 #include <vector>
5 #include <string>
6 
8 
9 namespace triggerExpression {
10 
11  class PathReader : public Evaluator {
12  public:
13  PathReader(const std::string& pattern) : m_pattern(pattern), m_triggers() {}
14 
15  bool operator()(const Data& data) const override;
16 
17  void init(const Data& data) override;
18 
19  std::vector<std::string> patterns() const override { return std::vector<std::string>{m_pattern}; }
20 
21  void dump(std::ostream& out) const override;
22 
23  private:
25  std::vector<std::pair<std::string, unsigned int> > m_triggers;
26  };
27 
28 } // namespace triggerExpression
29 
30 #endif // HLTrigger_HLTfilters_TriggerExpressionPathReader_h
PathReader(const std::string &pattern)
bool operator()(const Data &data) const override
void init(const Data &data) override
void dump(std::ostream &out) const override
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::vector< std::string > patterns() const override
std::vector< std::pair< std::string, unsigned int > > m_triggers