TrueReality  v0.1.1912
LogFile.h
Go to the documentation of this file.
1 /*
2 * True Reality Open Source Game and Simulation Engine
3 * Copyright © 2021 Acid Rain Studios LLC
4 *
5 * The Base of this class has been adopted from the Delta3D engine
6 *
7 * This library is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Lesser General Public License as published by the Free
9 * Software Foundation; either version 3.0 of the License, or (at your option)
10 * any later version.
11 *
12 * This library is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15 * details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library; if not, write to the Free Software Foundation, Inc.,
19 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 * Class Inspired by the Delta3D Engine
22 * http://delta3dengine.org/
23 *
24 * @author Matthew W. Campbell
25 * @author Erik Johnson
26 * @author David Guthrie
27 * @author Maxim Serebrennik
28 */
29 
30 #pragma once
31 #include <trUtil/Export.h>
32 
33 #include <osg/observer_ptr>
34 
35 #include <string>
36 
42 namespace trUtil::Logging
43 {
50  {
51  public:
53  static const std::string LOG_FILE_DEFAULT_NAME;
54 
62  static void SetFileName(const std::string& name);
63 
71  static const std::string GetFileName();
72 
80  static void SetTitle(const std::string& title);
81 
89  static const std::string& GetTitle();
90  private:
91  static std::string mLogFileName;
92  static std::string mTitle;
93  };
94 }
static std::string mLogFileName
Definition: LogFile.h:91
static const std::string LOG_FILE_DEFAULT_NAME
Log file default name.
Definition: LogFile.h:53
A log file.
Definition: LogFile.h:49
A class that represents date time utility.
static std::string mTitle
Definition: LogFile.h:92