swift
matchinglog.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_SIMULATION_MATCHINGLOG_H
7 #define SWIFT_MISC_SIMULATION_MATCHINGLOG_H
8 
9 #include <QDBusArgument>
10 #include <QMetaType>
11 #include <QStringList>
12 
13 #include "misc/swiftmiscexport.h"
14 
15 namespace swift::misc::simulation
16 {
19  {
20  MatchingLogNothing = 0,
21  MatchingLogIntro = 1 << 0,
22  MatchingLogModelstring = 1 << 1,
23  MatchingLogStepwiseReduce = 1 << 2,
24  MatchingLogScoring = 1 << 3,
25  MatchingLogCombinedDefaultType = 1 << 4,
26  MatchingLogSimplified = MatchingLogIntro,
27  MatchingLogAll =
28  MatchingLogModelstring | MatchingLogStepwiseReduce | MatchingLogScoring | MatchingLogCombinedDefaultType
29  };
30  Q_DECLARE_FLAGS(MatchingLog, MatchingLogFlag)
31 
32 
33  SWIFT_MISC_EXPORT QString matchingLogToString(MatchingLog log);
34 
36  SWIFT_MISC_EXPORT const QString &matchingLogFlagToString(MatchingLogFlag logFlag);
37 } // namespace swift::misc::simulation
38 
39 Q_DECLARE_METATYPE(swift::misc::simulation::MatchingLog)
41 Q_DECLARE_OPERATORS_FOR_FLAGS(swift::misc::simulation::MatchingLog)
42 
43 #endif // SWIFT_MISC_SIMULATION_MATCHINGLOG_H
MatchingLogFlag
What to log.
Definition: matchinglog.h:19
#define SWIFT_MISC_EXPORT
Export a class or function from the library.