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
ZblLogMark.h
Go to the documentation of this file.
1 /*
2  * Zuble - A run-time system for QML/Javascript applications
3  * Copyright (C) 2015 Bob Dinitto
4  *
5  * Filename: ZblLogMark.h
6  * Created on: 11/26/2015
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 ZBLLOGMARK_H
26 #define ZBLLOGMARK_H
27 
28 #include <QtCore/qglobal.h>
29 #include <QMap>
30 #include <QMetaType>
31 
32 
33 namespace Zbl {
34 
48 {
49 public:
50 
51  ZblLogMark();
52  ZblLogMark(const ZblLogMark& other);
53  ZblLogMark(qint64 seekPosition, qint64 recordID);
54  ZblLogMark& operator=(const ZblLogMark& other);
55 
56  bool isNull(){return m_recordID == -1;}
57  qint64 id(){return m_recordID;}
58  qint64 position(){return m_seekPos;}
59 
63  qint64 m_recordID;
64 
72  qint64 m_seekPos;
73 
74 };
75 
76 //typedef QMap<qint64, ZblLogMark> zLogMarkMap;
77 
78 } // Zbl
79 
80 Q_DECLARE_METATYPE(Zbl::ZblLogMark)
81 
82 #endif // ZBLLOGMARK_H
qint64 position()
Definition: ZblLogMark.h:58
qint64 m_recordID
The log record ID.
Definition: ZblLogMark.h:63
qint64 m_seekPos
Index of the first character of this record in the log file. This is the location to seek in the file...
Definition: ZblLogMark.h:72
ZblLogMark & operator=(const ZblLogMark &other)
Definition: ZblLogMark.cpp:47
Defines the location of a single log record in a log file.
Definition: ZblLogMark.h:47
Definition: ZAndGate.cpp:6
qint64 id()
Definition: ZblLogMark.h:57