WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. Zuble QML Types   |  Zuble C++ Classes   |  Zuble Overview
Zuble  0.1
Zuble Framework C++/QML extension API
ZblLogParams.h
Go to the documentation of this file.
1 /*
2  * Zuble - A run-time system for QML/Javascript applications
3  * Copyright (C) 2016 Bob Dinitto
4  *
5  * Filename: ZblLogParams.h
6  * Created on: 1/24/2016
7  * Author: Bob Dinitto
8  *
9  * Zuble is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  *
23  */
24 
25 #ifndef ZBLLOGPARAMS_H
26 #define ZBLLOGPARAMS_H
27 
28 #include "zglobal.h"
29 #include <QString>
30 
31 namespace Zbl {
32 
39 {
40 public:
41 
42  ZblLogParams();
43 
45  bool enableZubleLogging,
46  bool enableFileOutput,
47  bool enableStdOutput,
48  const QString& logOutputDir,
49  bool enableModelOutput,
50  bool enableDetails)
51  :
52  m_enableLogging(enableZubleLogging),
53  m_enableFileOutput(enableFileOutput),
54  m_enableStdOutput(enableStdOutput),
55  m_enableModelOutput(enableModelOutput),
56  m_enableDetails(enableDetails),
57  m_fileFormat(fileFormat),
58  m_logOutputDir(logOutputDir)
59  {}
60 
61  ZblLogParams(const ZblLogParams& params);
62 
63  ZblLogParams& operator=(const ZblLogParams& params);
64  bool operator==(const ZblLogParams& params)
65  {return equals(params);}
66  bool operator!=(const ZblLogParams& params)
67  {return !equals(params);}
68  bool equals(const ZblLogParams& params);
69 
70 
76 
82 
88 
94 
100 
105 
110  QString m_logOutputDir;
111 
112 };
113 
114 } // Zbl
115 
116 Q_DECLARE_METATYPE(Zbl::ZblLogParams)
117 
118 #endif // ZBLLOGPARAMS_H
bool operator==(const ZblLogParams &params)
Definition: ZblLogParams.h:64
ZblLogParams(LogFileFormat fileFormat, bool enableZubleLogging, bool enableFileOutput, bool enableStdOutput, const QString &logOutputDir, bool enableModelOutput, bool enableDetails)
Definition: ZblLogParams.h:44
enum Zbl::logFileFormat LogFileFormat
Specifies the output format for Zuble log files.
LogFileFormat m_fileFormat
The current logger output file format.
Definition: ZblLogParams.h:104
bool m_enableModelOutput
Enables log output to log histogram buffer.
Definition: ZblLogParams.h:93
Definition: ZAndGate.cpp:6
bool operator!=(const ZblLogParams &params)
Definition: ZblLogParams.h:66
QString m_logOutputDir
Directory in which log files are created.
Definition: ZblLogParams.h:110
This class contains the Zuble logging parameters that control log output.
Definition: ZblLogParams.h:38
bool equals(const ZblLogParams &params)
bool m_enableFileOutput
Enables log output to file.
Definition: ZblLogParams.h:81
bool m_enableLogging
Enables Zuble logging.
Definition: ZblLogParams.h:75
bool m_enableStdOutput
Enables log output to stdout.
Definition: ZblLogParams.h:87
ZblLogParams & operator=(const ZblLogParams &params)
bool m_enableDetails
Logs will include detailed debugging information.
Definition: ZblLogParams.h:99