roo_monitoring
API Documentation for roo_monitoring
Loading...
Searching...
No Matches
roo_monitoring::LogCursor Class Reference

Cursor used when seeking through multiple log files. More...

#include <log.h>

Public Member Functions

 LogCursor ()
 Creates a cursor at the start of the log sequence.
 
 LogCursor (int64_t file, int64_t position)
 Creates a cursor for a specific file and position.
 
int64_t file () const
 Returns the file timestamp associated with the cursor.
 
int64_t position () const
 Returns the byte position within the file.
 

Detailed Description

Cursor used when seeking through multiple log files.

Definition at line 95 of file log.h.

Constructor & Destructor Documentation

◆ LogCursor() [1/2]

roo_monitoring::LogCursor::LogCursor ( )
inline

Creates a cursor at the start of the log sequence.

Definition at line 98 of file log.h.

◆ LogCursor() [2/2]

roo_monitoring::LogCursor::LogCursor ( int64_t  file,
int64_t  position 
)
inline

Creates a cursor for a specific file and position.

Definition at line 100 of file log.h.

Member Function Documentation

◆ file()

int64_t roo_monitoring::LogCursor::file ( ) const
inline

Returns the file timestamp associated with the cursor.

Definition at line 104 of file log.h.

Referenced by roo_monitoring::LogReader::seek().

◆ position()

int64_t roo_monitoring::LogCursor::position ( ) const
inline

Returns the byte position within the file.

Definition at line 106 of file log.h.

Referenced by roo_monitoring::LogReader::seek().


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