VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
makVrv::DtDebugLog Class Reference

The debug log class, writes out messages to a log file. More...

Public Types

enum  PrintLevel { Warning = 1, Information = 2, Debug = 4, PrintLevel_End = 5 }

Public Member Functions

 DtDebugLog (DtOutputStream *output)
 CTOR.
virtual ~DtDebugLog ()
 DTOR.
bool levelWillPrint (DtDebugLog::PrintLevel alevel)
 Check to see if the provided level would print with the current level.
virtual void setLevel (DtDebugLog::PrintLevel alevel)
 Set the output level.
virtual void setOutputStream (DtOutputStream *stream)
 Set the output stream.
virtual DtDebugLog::PrintLevel level ()
 Get the output level.
std::ostream & out (DtDebugLog::PrintLevel level=DtDebugLog::Information)
 Get the log output.
DtOutputStream * outputStream ()
 Get the output stream.

Protected Attributes

PrintLevel myLevel
std::ostream * myOutput
int myRef
std::ostream * myEmptyOutput

Detailed Description

The debug log class, writes out messages to a log file.

Member Enumeration Documentation

Enumerator:
Warning 
Information 
Debug 
PrintLevel_End 

Constructor & Destructor Documentation

makVrv::DtDebugLog::DtDebugLog ( DtOutputStream *  output)

CTOR.

virtual makVrv::DtDebugLog::~DtDebugLog ( )
virtual

DTOR.

Member Function Documentation

bool makVrv::DtDebugLog::levelWillPrint ( DtDebugLog::PrintLevel  alevel)
inline

Check to see if the provided level would print with the current level.

References makVrv::vrvTacticalGraphicUtilities::level().

virtual void makVrv::DtDebugLog::setLevel ( DtDebugLog::PrintLevel  alevel)
virtual

Set the output level.

virtual void makVrv::DtDebugLog::setOutputStream ( DtOutputStream *  stream)
virtual

Set the output stream.

virtual DtDebugLog::PrintLevel makVrv::DtDebugLog::level ( )
virtual

Get the output level.

std::ostream& makVrv::DtDebugLog::out ( DtDebugLog::PrintLevel  level = DtDebugLog::Information)
inline

Get the log output.

References makVrv::vrvTacticalGraphicUtilities::level().

DtOutputStream* makVrv::DtDebugLog::outputStream ( )

Get the output stream.

Member Data Documentation

PrintLevel makVrv::DtDebugLog::myLevel
protected
std::ostream* makVrv::DtDebugLog::myOutput
protected
int makVrv::DtDebugLog::myRef
protected
std::ostream* makVrv::DtDebugLog::myEmptyOutput
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)