1 //===-- LogFilterExactMatch.h -----------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_DARWINLOG_LOGFILTEREXACTMATCH_H 10 #define LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_DARWINLOG_LOGFILTEREXACTMATCH_H 11 12 #include <string> 13 14 #include "DarwinLogInterfaces.h" 15 #include "DarwinLogTypes.h" 16 #include "LogFilter.h" 17 18 class LogFilterExactMatch : public LogFilter { 19 public: 20 LogFilterExactMatch(bool match_accepts, FilterTarget filter_target, 21 const std::string &match_text); 22 23 bool DoesMatch(const LogMessage &message) const override; 24 25 private: 26 const FilterTarget m_filter_target; 27 const std::string m_match_text; 28 }; 29 30 #endif 31