MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtPrinterBuf Class Reference

Buffers data output by a DtBufferPrinter. More...

+ Collaboration diagram for DtPrinterBuf:

Public Member Functions

 DtPrinterBuf ()
 Constructor. More...
 
virtual ~DtPrinterBuf ()
 Destructor. More...
 
 DtPrinterBuf (DtPrinterBuf const &)
 Copy constructor. More...
 
virtual DtPrinterBufoperator= (DtPrinterBuf const &)
 Assignment operator. More...
 
virtual const DtLogEntryreadNext ()
 Returns a pointer to the next entry to be read. More...
 
virtual void write (const std::string &st, MAKRti::DtNotifyLevelType level)
 Writes the given string and notification level to the buffer. More...
 
virtual void copyBufferToList (DtLogEntryList &destList) const
 Copies the buffer into the specified list of entries. More...
 
virtual void writeBufferToOutputStreams () const
 Writes the entire contents of the current buffer to the MAKRti::DtOutputStreams. More...
 
virtual void clearBuffer ()
 Clears the buffer. More...
 
virtual void setMaxEntries (int max)
 Sets the maximum number of entries. Negative indicates no limit. More...
 

Protected Attributes

DtLogEntryList myBuffer
 The complete buffer is stored as a list of strings and notification levels. More...
 
DtLogEntrymyInProcessEntry
 The entry being processed. More...
 
int myMaxEntries
 The maximum number of entries. Negative indicates no limit. More...
 

Detailed Description

Buffers data output by a DtBufferPrinter.

A DtPrinterBuf is used by a DtBufferPrinter to store any data output by attached output streams.

Constructor & Destructor Documentation

DtPrinterBuf::DtPrinterBuf ( )

Constructor.

virtual DtPrinterBuf::~DtPrinterBuf ( )
virtual

Destructor.

DtPrinterBuf::DtPrinterBuf ( DtPrinterBuf const &  )

Copy constructor.

Member Function Documentation

virtual void DtPrinterBuf::clearBuffer ( )
virtual

Clears the buffer.

virtual void DtPrinterBuf::copyBufferToList ( DtLogEntryList destList) const
virtual

Copies the buffer into the specified list of entries.

virtual DtPrinterBuf& DtPrinterBuf::operator= ( DtPrinterBuf const &  )
virtual

Assignment operator.

virtual const DtLogEntry* DtPrinterBuf::readNext ( )
virtual

Returns a pointer to the next entry to be read.

Please note that the previous entry which was read will be deleted at this time.

virtual void DtPrinterBuf::setMaxEntries ( int  max)
virtual

Sets the maximum number of entries. Negative indicates no limit.

virtual void DtPrinterBuf::write ( const std::string &  st,
MAKRti::DtNotifyLevelType  level 
)
virtual

Writes the given string and notification level to the buffer.

virtual void DtPrinterBuf::writeBufferToOutputStreams ( ) const
virtual

Writes the entire contents of the current buffer to the MAKRti::DtOutputStreams.

Member Data Documentation

DtLogEntryList DtPrinterBuf::myBuffer
protected

The complete buffer is stored as a list of strings and notification levels.

DtLogEntry* DtPrinterBuf::myInProcessEntry
protected

The entry being processed.

int DtPrinterBuf::myMaxEntries
protected

The maximum number of entries. Negative indicates no limit.


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

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)