]> Git Repo - binutils.git/blob - gprofng/src/FilterSet.h
Automatic date update in version.in
[binutils.git] / gprofng / src / FilterSet.h
1 /* Copyright (C) 2021 Free Software Foundation, Inc.
2    Contributed by Oracle.
3
4    This file is part of GNU Binutils.
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 3, or (at your option)
9    any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, 51 Franklin Street - Fifth Floor, Boston,
19    MA 02110-1301, USA.  */
20
21 #ifndef _FILTERSET_H
22 #define _FILTERSET_H
23
24 #include "dbe_types.h"
25 #include "vec.h"
26
27 class Experiment;
28 class FilterNumeric;
29 class DbeView;
30
31 #define SAMPLE_FILTER_IDX 0
32 #define THREAD_FILTER_IDX 1
33 #define LWP_FILTER_IDX 2
34 #define CPU_FILTER_IDX 3
35
36 class FilterSet
37 {
38 public:
39
40   FilterSet (DbeView *_dbev, Experiment *_exp);
41   ~FilterSet ();
42   char *get_advanced_filter ();
43   FilterNumeric *get_filter (int);
44
45   bool
46   get_enabled ()
47   {
48     return enbl;
49   }
50
51   void
52   set_enabled (bool b)
53   {
54     enbl = b;
55   }
56
57   Vector<FilterNumeric*> *
58   get_all_filters ()
59   {
60     return dfilter;
61   }
62
63 private:
64
65   DbeView *dbev;
66   Experiment *exp;
67   bool enbl;
68   Vector<FilterNumeric*> *dfilter;
69 };
70
71 #endif /* _FILTERSET_H */
72
This page took 0.027702 seconds and 4 git commands to generate.