Debian Codegraph @

Source/Logger/CLogMessage.h

raw
1 /*
2 * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team.
3 *
4 * This file is part of the reasoning system Konclude.
5 * For details and support, see <http://konclude.com/>.
6 *
7 * Konclude is free software: you can redistribute it and/or modify
8 * it under the terms of version 3 of the GNU Lesser General Public
9 * License (LGPLv3) as published by the Free Software Foundation.
10 *
11 * Konclude 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 (Lesser) General Public License for more details.
15 *
16 * You should have received a copy of the GNU (Lesser) General Public
17 * License along with Konclude. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20 #ifndef LOGGER_CLOGMESSAGE_H
21 #define LOGGER_CLOGMESSAGE_H
22
23 #include <QString>
24 #include <QDateTime>
25 #include <QObject>
26
27 #include "LoggerSettings.h"
28
29 namespace Konclude {
30
31 namespace Logger {
32
33 /*! \class CLogMessage
34 * \version 0.3
35 * \author Andreas Steigmiller
36 * \brief The abstract base Class for each Log-Entry for the CLogger
37 */
38 class CLogMessage {
39
40 public:
41 CLogMessage(QString logDomain, QString logMessage, double logLevel, void *logObject);
42 ~CLogMessage();
43
44
45 QString getMessage();
46 void setMessage(QString logMessage);
47
48 QDateTime getDateTime();
49 QString getDateTimeString();
50 QString getDateTimeMSecString();
51 QString getTimeMSecString();
52
53 double getLogLevel();
54 void setLogLevel(double logLevel);
55
56 QString getDomain();
57 void setDomain(QString logDomain);
58
59 void setLogObject(void *logObject);
60 void *getLogObject();
61
62
63 void setLogID(qint64 id);
64 qint64 getLogID();
65
66
67 void setLockCount(qint64 count);
68 void incLockCount();
69 void decLockCount();
70 qint64 getLockCount();
71
72
73
74 private:
75 QString message;
76 QString domain;
77 QDateTime datetime;
78 double level;
79 qint64 logID;
80 void *object;
81 qint64 lockCount;
82
83 };
84
85 }; // end namespace Logger
86
87 }; // end namespace Konclude
88
89 #endif // LOGGER_CLOGMESSAGE_H