NeuralEngine
A Game Engine with embeded Machine Learning algorithms based on Gaussian Processes.
NeLogReporter.h
1
11#pragma once
12
13#include <Core/NeLogToFile.h>
14#include <Core/NeLogToStdout.h>
15#if defined(__MSWINDOWS__)
16#include <Core/NeLogToMessageBox.h>
17#include <Core/NeLogToOutputWindow.h>
18#endif
19#include <memory>
20
21namespace NeuralEngine
22{
23
24 class NE_IMPEXP LogReporter
25 {
26 public:
27 // Construction and destruction. Create one of these objects in an
28 // application for logging. The GenerateProject tool creates such code.
29 // If you do not want a particular logger, set the flags to
30 // LISTEN_FOR_NOTHING and set logFile to "" if you do not want a file.
32
33 LogReporter(std::string const& logFile, int logFileFlags, int logStdoutFlags,
34 int logMessageBoxFlags = 0, int logOutputWindowFlags = 0);
35
36 private:
37 std::unique_ptr<LogToFile> mLogToFile;
38 std::unique_ptr<LogToStdout> mLogToStdout;
39
40#if defined(__MSWINDOWS__)
41 std::unique_ptr<LogToMessageBox> mLogToMessageBox;
42 std::unique_ptr<LogToOutputWindow> mLogToOutputWindow;
43#endif
44 };
45
46}