GteLogReporter.h
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #pragma once
9 
10 #include <LowLevel/GteLogToFile.h>
12 #if defined(__MSWINDOWS__)
15 #endif
16 #include <memory>
17 
18 namespace gte
19 {
20 
22 {
23 public:
24  // Construction and destruction. Create one of these objects in an
25  // application for logging. The GenerateProject tool creates such code.
26  // If you do not want a particular logger, set the flags to
27  // LISTEN_FOR_NOTHING and set logFile to "" if you do not want a file.
28  ~LogReporter();
29 
30  LogReporter(std::string const& logFile, int logFileFlags, int logStdoutFlags,
31  int logMessageBoxFlags = 0, int logOutputWindowFlags = 0);
32 
33 private:
34  std::unique_ptr<LogToFile> mLogToFile;
35  std::unique_ptr<LogToStdout> mLogToStdout;
36 
37 #if defined(__MSWINDOWS__)
38  std::unique_ptr<LogToMessageBox> mLogToMessageBox;
39  std::unique_ptr<LogToOutputWindow> mLogToOutputWindow;
40 #endif
41 };
42 
43 }
std::unique_ptr< LogToStdout > mLogToStdout
std::unique_ptr< LogToFile > mLogToFile
GLsizei const GLchar *const * string
Definition: glcorearb.h:809
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00