File indexing completed on 2024-05-19 09:37:13
0001 /* 0002 SPDX-FileCopyrightText: 2015-2020 Milian Wolff <mail@milianw.de> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef FILTERPARAMETERS_H 0008 #define FILTERPARAMETERS_H 0009 0010 #include <cstdint> 0011 #include <limits> 0012 #include <string> 0013 #include <vector> 0014 0015 struct FilterParameters 0016 { 0017 int64_t minTime = 0; 0018 int64_t maxTime = std::numeric_limits<int64_t>::max(); 0019 std::vector<std::string> suppressions; 0020 bool disableEmbeddedSuppressions = false; 0021 bool disableBuiltinSuppressions = false; 0022 bool isFilteredByTime(int64_t totalTime) const 0023 { 0024 return minTime != 0 || maxTime < totalTime; 0025 } 0026 }; 0027 0028 #endif // FILTERPARAMETERS_H