CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::LogFile Class Reference

#include <cxLogFile.h>

Public Member Functions

 LogFile ()
 
virtual ~LogFile ()
 
void writeHeader ()
 
void write (Message message)
 
bool isWritable () const
 
QString getFilename () const
 
std::vector< MessagereadMessages ()
 

Static Public Member Functions

static LogFile fromChannel (QString path, QString channel)
 
static LogFile fromFilename (QString filename)
 

Detailed Description

Definition at line 25 of file cxLogFile.h.

Constructor & Destructor Documentation

cx::LogFile::LogFile ( )
explicit

Definition at line 24 of file cxLogFile.cpp.

virtual cx::LogFile::~LogFile ( )
inlinevirtual

Definition at line 31 of file cxLogFile.h.

Member Function Documentation

LogFile cx::LogFile::fromChannel ( QString  path,
QString  channel 
)
static

Definition at line 30 of file cxLogFile.cpp.

LogFile cx::LogFile::fromFilename ( QString  filename)
static

Definition at line 43 of file cxLogFile.cpp.

QString cx::LogFile::getFilename ( ) const

Definition at line 38 of file cxLogFile.cpp.

bool cx::LogFile::isWritable ( ) const

Definition at line 66 of file cxLogFile.cpp.

std::vector< Message > cx::LogFile::readMessages ( )

Definition at line 136 of file cxLogFile.cpp.

void cx::LogFile::write ( Message  message)

Definition at line 60 of file cxLogFile.cpp.

void cx::LogFile::writeHeader ( )

Definition at line 51 of file cxLogFile.cpp.


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