SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
FileLog.h
Go to the documentation of this file.
1
/**
2
* \file FileLog.h
3
* \date March 2018
4
* \authors Michael Goettlicher
5
* \copyright http://opensource.org/licenses/GPL-3.0
6
* \remarks Please use clangformat to format the code. See more code style on
7
* https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
8
*/
9
10
#ifndef CPLVRLAB_FILE_LOG_H
11
#define CPLVRLAB_FILE_LOG_H
12
13
#include <string>
14
#include <fstream>
15
16
namespace
Utils
17
{
18
//-----------------------------------------------------------------------------
19
//! File logging class
20
class
FileLog
21
{
22
public
:
23
FileLog
(std::string logDir,
bool
forceFlush);
24
virtual
~FileLog
();
25
void
flush
();
26
void
post
(
const
std::string& message);
27
28
private
:
29
std::ofstream
_logFile
;
30
bool
_forceFlush
;
31
};
32
//-----------------------------------------------------------------------------
33
};
34
35
#endif
// CPLVRLAB_FILE_LOG_H
Utils::FileLog
File logging class.
Definition:
FileLog.h:21
Utils::FileLog::_forceFlush
bool _forceFlush
Definition:
FileLog.h:30
Utils::FileLog::_logFile
std::ofstream _logFile
Definition:
FileLog.h:29
Utils::FileLog::flush
void flush()
Definition:
FileLog.cpp:43
Utils::FileLog::~FileLog
virtual ~FileLog()
Definition:
FileLog.cpp:37
Utils::FileLog::post
void post(const std::string &message)
Definition:
FileLog.cpp:48
Utils::FileLog::FileLog
FileLog(std::string logDir, bool forceFlush)
Definition:
FileLog.cpp:20
Utils
Utils provides utilities for string & file handling, logging and math functions.
Definition:
Averaged.h:22
modules
utils
source
FileLog.h
Generated by
1.9.1