VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions

DtPrinter is an abstract base class which provides an interface for output. More...

+ Inheritance diagram for DtPrinter:

Public Member Functions

 DtPrinter ()
 Default CTOR.
 DtPrinter (const DtPrinter &)
 Copy CTOR.
virtual ~DtPrinter ()
 Virtual DTOR.
virtual void write (const std::string &str, int notify_level, bool newLine)=0
 This method is called by the output stream whenever information is available to print.

Detailed Description

DtPrinter is an abstract base class which provides an interface for output.

All informational output in VR-Link goes through a DtOutputStream. The DtOutputStream then calls DtPrinter::write() which sends i the text to output. Users may overload DtPrinter to direct that output to a different place.

Constructor & Destructor Documentation

DtPrinter::DtPrinter ( )
inline

Default CTOR.

DtPrinter::DtPrinter ( const DtPrinter )
inline

Copy CTOR.

DtPrinter::~DtPrinter ( )
inlinevirtual

Virtual DTOR.

Member Function Documentation

virtual void DtPrinter::write ( const std::string &  str,
int  notify_level,
bool  newLine 
)
pure virtual

This method is called by the output stream whenever information is available to print.

The newLine argument indicates that the string to write starts a new line. This can be used to format output (eg. for adding timestamps).

Implemented in DtStderrPrinter, DtStdoutPrinter, and DtFilePrinter.


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

Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)