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
Public Member Functions | Public Attributes | List of all members
Zbl::ZblLogMark Class Reference

Defines the location of a single log record in a log file. More...

#include <ZblLogMark.h>

Public Member Functions

 ZblLogMark ()
 
 ZblLogMark (const ZblLogMark &other)
 
 ZblLogMark (qint64 seekPosition, qint64 recordID)
 
ZblLogMarkoperator= (const ZblLogMark &other)
 
bool isNull ()
 
qint64 id ()
 
qint64 position ()
 

Public Attributes

qint64 m_recordID
 The log record ID. More...
 
qint64 m_seekPos
 Index of the first character of this record in the log file. This is the location to seek in the file to begin reading this record. More...
 

Detailed Description

Defines the location of a single log record in a log file.

A seek location may be included as a hint to hasten log record lookups. If a discrepancy between record ID and seek location occurrs use log record ID. This should mitigate the effects editing a log file might have on persisted bookmarks since the seek location would possibly become invalid due to modifications to the log file yet the record being marked might still exist in the file if you search for it.

Definition at line 47 of file ZblLogMark.h.

Constructor & Destructor Documentation

◆ ZblLogMark() [1/3]

Zbl::ZblLogMark::ZblLogMark ( )

Definition at line 29 of file ZblLogMark.cpp.

◆ ZblLogMark() [2/3]

Zbl::ZblLogMark::ZblLogMark ( const ZblLogMark other)

Definition at line 34 of file ZblLogMark.cpp.

◆ ZblLogMark() [3/3]

Zbl::ZblLogMark::ZblLogMark ( qint64  seekPosition,
qint64  recordID 
)

Definition at line 40 of file ZblLogMark.cpp.

Member Function Documentation

◆ id()

qint64 Zbl::ZblLogMark::id ( )
inline

Definition at line 57 of file ZblLogMark.h.

◆ isNull()

bool Zbl::ZblLogMark::isNull ( )
inline

Definition at line 56 of file ZblLogMark.h.

◆ operator=()

ZblLogMark & Zbl::ZblLogMark::operator= ( const ZblLogMark other)

Definition at line 47 of file ZblLogMark.cpp.

◆ position()

qint64 Zbl::ZblLogMark::position ( )
inline

Definition at line 58 of file ZblLogMark.h.

Member Data Documentation

◆ m_recordID

qint64 Zbl::ZblLogMark::m_recordID

The log record ID.

Definition at line 63 of file ZblLogMark.h.

Referenced by id(), isNull(), operator=(), and ZblLogMark().

◆ m_seekPos

qint64 Zbl::ZblLogMark::m_seekPos

Index of the first character of this record in the log file. This is the location to seek in the file to begin reading this record.

-1 = seek location unknown

Definition at line 72 of file ZblLogMark.h.

Referenced by operator=(), position(), and ZblLogMark().


The documentation for this class was generated from the following files: