dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
LogFile Class Reference

#include <logfile.h>

Inheritance diagram for LogFile:

Public Slots

void setReplaySpeed (double val)
 
void setReplayTime (double val)
 LogFile::setReplayTime, sets the playback time. More...
 
void pauseReplay ()
 
void resumeReplay ()
 

Signals

void readReady ()
 
void replayStarted ()
 
void replayFinished ()
 

Public Member Functions

 LogFile (QObject *parent=nullptr)
 
qint64 bytesAvailable () const
 
qint64 bytesToWrite () const
 
bool open (OpenMode mode)
 
void setFileName (QString name)
 
void close ()
 
qint64 writeData (const char *data, qint64 dataSize)
 
qint64 readData (char *data, qint64 maxlen)
 
bool startReplay ()
 
bool stopReplay ()
 

Protected Slots

void timerFired ()
 

Protected Attributes

QByteArray dataBuffer
 
QTimer timer
 
QTime myTime
 
QFile file
 
quint32 lastTimeStamp
 
quint32 lastPlayTime
 
QMutex mutex
 
int lastPlayTimeOffset
 
double playbackSpeed
 

Detailed Description

Definition at line 39 of file logfile.h.

Constructor & Destructor Documentation

LogFile::LogFile ( QObject *  parent = nullptr)
explicit

Definition at line 37 of file logfile.cpp.

Member Function Documentation

qint64 LogFile::bytesAvailable ( ) const

Definition at line 196 of file logfile.cpp.

qint64 LogFile::bytesToWrite ( ) const
inline

Definition at line 45 of file logfile.h.

void LogFile::close ( )

Definition at line 160 of file logfile.cpp.

bool LogFile::open ( OpenMode  mode)

Opens the logfile QIODevice and the underlying logfile. In case we want to save the logfile, we open in WriteOnly. In case we want to read the logfile, we open in ReadOnly.

Definition at line 49 of file logfile.cpp.

void LogFile::pauseReplay ( )
slot

Definition at line 343 of file logfile.cpp.

qint64 LogFile::readData ( char *  data,
qint64  maxlen 
)

Definition at line 187 of file logfile.cpp.

void LogFile::readReady ( )
signal
void LogFile::replayFinished ( )
signal
void LogFile::replayStarted ( )
signal
void LogFile::resumeReplay ( )
slot

Definition at line 348 of file logfile.cpp.

void LogFile::setFileName ( QString  name)
inline

Definition at line 47 of file logfile.h.

void LogFile::setReplaySpeed ( double  val)
inlineslot

Definition at line 56 of file logfile.h.

void LogFile::setReplayTime ( double  val)
slot

LogFile::setReplayTime, sets the playback time.

Parameters
val,thetime in

Definition at line 358 of file logfile.cpp.

bool LogFile::startReplay ( )

Definition at line 255 of file logfile.cpp.

bool LogFile::stopReplay ( )

Definition at line 336 of file logfile.cpp.

void LogFile::timerFired ( )
protectedslot

Definition at line 201 of file logfile.cpp.

qint64 LogFile::writeData ( const char *  data,
qint64  dataSize 
)

Definition at line 170 of file logfile.cpp.

Member Data Documentation

QByteArray LogFile::dataBuffer
protected

Definition at line 74 of file logfile.h.

QFile LogFile::file
protected

Definition at line 77 of file logfile.h.

quint32 LogFile::lastPlayTime
protected

Definition at line 79 of file logfile.h.

int LogFile::lastPlayTimeOffset
protected

Definition at line 82 of file logfile.h.

quint32 LogFile::lastTimeStamp
protected

Definition at line 78 of file logfile.h.

QMutex LogFile::mutex
protected

Definition at line 80 of file logfile.h.

QTime LogFile::myTime
protected

Definition at line 76 of file logfile.h.

double LogFile::playbackSpeed
protected

Definition at line 83 of file logfile.h.

QTimer LogFile::timer
protected

Definition at line 75 of file logfile.h.


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