TrueReality
v0.1.1912
LogTimeProvider.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 David Guthrie
25
*/
26
#pragma once
27
28
#include <
trUtil/Export.h
>
29
30
#include <
trUtil/DateTime.h
>
31
32
#include <osg/Referenced>
33
39
namespace
trUtil::Logging
40
{
54
class
TR_UTIL_EXPORT
LogTimeProvider
55
{
56
public
:
57
63
virtual
~LogTimeProvider
() {}
64
72
virtual
const
trUtil::DateTime
& GetDateTime() = 0;
73
81
virtual
unsigned
GetFrameNumber() = 0;
82
90
virtual
osg::Referenced* AsReferenced() = 0;
91
};
92
}
Export.h
trUtil::Logging::LogTimeProvider
Interface class get the time for the logger.
Definition:
LogTimeProvider.h:54
trUtil::Logging
Definition:
Log.h:45
trUtil::DateTime
Definition:
DateTime.h:44
trUtil::Logging::LogTimeProvider::~LogTimeProvider
virtual ~LogTimeProvider()
Destructor.
Definition:
LogTimeProvider.h:63
TR_UTIL_EXPORT
A class that represents date time utility.
DateTime.h
include
trUtil
Logging
LogTimeProvider.h
Generated by
1.8.13