TrueReality  v0.1.1912
trUtil::Logging::LogTimeProvider Class Referenceabstract

Interface class get the time for the logger. More...

#include <LogTimeProvider.h>

Public Member Functions

virtual ~LogTimeProvider ()
 Destructor. More...
 
virtual const trUtil::DateTimeGetDateTime ()=0
 Gets date time. More...
 
virtual unsigned GetFrameNumber ()=0
 Gets frame number. More...
 
virtual osg::Referenced * AsReferenced ()=0
 Converts this object to a referenced. More...
 

Detailed Description

Interface class get the time for the logger.

There is probably no need to override this yourself. It is provided as a means for other parts of the system to provide the time.

Note
The Log time provided does not extend osg::Referenced so that it can be used easily as an interface on other referenced classes, but the log code assumes that a dynamic_cast to reference will succeed.
See also
AsReferenced

Definition at line 54 of file LogTimeProvider.h.

Constructor & Destructor Documentation

◆ ~LogTimeProvider()

trUtil::Logging::LogTimeProvider::~LogTimeProvider ( )
inlinevirtual

Destructor.

Definition at line 63 of file LogTimeProvider.h.

Member Function Documentation

◆ AsReferenced()

osg::Referenced * trUtil::Logging::LogTimeProvider::AsReferenced ( )
pure virtual

Converts this object to a referenced.

Returns
Null if it fails, else a pointer to an osg::Referenced.

Referenced by trUtil::Logging::LogManager::SetLogTimeProvider().

Here is the caller graph for this function:

◆ GetDateTime()

const trUtil::DateTime & trUtil::Logging::LogTimeProvider::GetDateTime ( )
pure virtual

Gets date time.

Returns
The date time.

Referenced by trUtil::Logging::LogManager::GetDateTime().

Here is the caller graph for this function:

◆ GetFrameNumber()

unsigned trUtil::Logging::LogTimeProvider::GetFrameNumber ( void  )
pure virtual

Gets frame number.

Returns
The frame number.

Referenced by trUtil::Logging::LogManager::GetFrameNumber().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: