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
|
Logmap objects contain a collection of compressed links to log records. More...
#include <ZblLogMap.h>
Public Member Functions | |
ZblLogMap () | |
ZblLogMap (int id, const QString &name) | |
ZblLogMap (const ZblLogMap &other) | |
ZblLogMapData::MarkType | getMapType () |
returns this log map's mark type More... | |
bool | isValidMapType (int mapType) |
Determine if a value is a valid logmap type. More... | |
bool | insertMark (qint64 recordID, qint64 lastRecordID, qint64 seekPosition) |
Creates a new log mark in the database. More... | |
bool | hasMark (qint64 recordID) |
Determine if the log map contains a mark for the specified log record. More... | |
qint64 | findNextMark (qint64 startID, bool forward=true) const |
Search forward or backward for the next mark from a specified starting position. More... | |
bool | removeMark (qint64 recordID, qint64 lastRecordID) |
Removes the specified mark from the log map. More... | |
bool | clear () |
Removes all marks from the log map. More... | |
ZblLogLinkList | getLogLinkList () const |
Obtain a ZblLogLinkList object containing expanded log links. More... | |
Protected Attributes | |
QSharedDataPointer< ZblLogMapData > | m_d |
The log map data object. More... | |
Logmap objects contain a collection of compressed links to log records.
ZblLogMap objects are implicitly shared. The ZLogMap class provides a Javascript wrapper for this class.
Definition at line 19 of file ZblLogMap.h.
|
inline |
Definition at line 23 of file ZblLogMap.h.
|
inline |
Definition at line 25 of file ZblLogMap.h.
|
inline |
Definition at line 30 of file ZblLogMap.h.
|
inline |
Removes all marks from the log map.
Definition at line 119 of file ZblLogMap.h.
Referenced by Zbl::ZLogMap::clear(), and Zbl::ZLogMap::getReader().
|
inline |
Search forward or backward for the next mark from a specified starting position.
The search begins with the record after the specified starting ID.
startID | The log record ID from which to start the search. Zero starts from the beginning of map, -1 starts from the end of map. |
forward | true = search forward, false = search backward |
Definition at line 95 of file ZblLogMap.h.
Referenced by Zbl::ZLogMap::findNextMark().
|
inline |
Obtain a ZblLogLinkList object containing expanded log links.
Definition at line 127 of file ZblLogMap.h.
Referenced by Zbl::ZblLogSearch::populateLinkModel().
ZblLogMapData::MarkType Zbl::ZblLogMap::getMapType | ( | ) |
|
inline |
Determine if the log map contains a mark for the specified log record.
recordID | The log record ID to test |
Definition at line 75 of file ZblLogMap.h.
Referenced by Zbl::ZLogMap::hasMark().
|
inline |
Creates a new log mark in the database.
recordID | the starting log record number for the mark |
lastRecordID | the ending (inclusive) log record number for the mark |
seekPosition | the seek position of the starting record, -1 if unknown |
Definition at line 59 of file ZblLogMap.h.
Referenced by Zbl::ZLogMap::insertMark().
|
inline |
Determine if a value is a valid logmap type.
mapType | An integer value representing a logmap type. |
Definition at line 49 of file ZblLogMap.h.
|
inline |
Removes the specified mark from the log map.
recordID | the starting log record number for the mark |
lastRecordID | the ending (inclusive) log record number for the mark |
Definition at line 107 of file ZblLogMap.h.
Referenced by Zbl::ZLogMap::removeMark().
|
protected |
The log map data object.
Definition at line 138 of file ZblLogMap.h.
Referenced by clear(), findNextMark(), getLogLinkList(), hasMark(), insertMark(), removeMark(), and ZblLogMap().
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.