CMS 3D CMS Logo

Filter.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_FILTER_H
2 #define DETECTOR_DESCRIPTION_FILTER_H
3 
4 // -*- C++ -*-
5 //
6 // Package: DetectorDescription/Filter
7 // Class: Filter
8 //
16 //
17 // Original Author: Ianna Osborne
18 // Created: Tue, 12 Mar 2019 09:51:33 CET
19 //
20 //
21 #include <memory>
22 #include <vector>
23 
24 namespace cms {
25 
26  struct Filter {
27  std::vector<std::string_view> keys;
28  std::unique_ptr<Filter> next;
29  struct Filter* up;
30  };
31 
32  namespace dd {
33  bool accepted(std::vector<std::string_view> const&, std::string_view);
34  int contains(std::string_view, std::string_view);
35  bool isRegex(std::string_view);
36  bool compareEqual(std::string_view, std::string_view);
37  std::string_view realTopName(std::string_view input);
38  std::vector<std::string_view> split(std::string_view, const char*);
39  }
40 }
41 
42 #endif
std::vector< std::string_view > split(std::string_view, const char *)
int contains(std::string_view, std::string_view)
std::vector< std::string_view > keys
Definition: Filter.h:27
struct Filter * up
Definition: Filter.h:29
std::unique_ptr< Filter > next
Definition: Filter.h:28
std::string_view realTopName(std::string_view input)
static std::string const input
Definition: EdmProvDump.cc:48
Namespace of DDCMS conversion namespace.
bool compareEqual(std::string_view, std::string_view)
bool accepted(std::vector< std::string_view > const &, std::string_view)
Definition: Filter.py:1
bool isRegex(std::string_view)