![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Buffers data output by a DtBufferPrinter. More...
Collaboration diagram for DtPrinterBuf:Public Member Functions | |
| DtPrinterBuf () | |
| Constructor. | |
| virtual | ~DtPrinterBuf () |
| Destructor. | |
| DtPrinterBuf (DtPrinterBuf const &) | |
| Copy constructor. | |
| virtual DtPrinterBuf & | operator= (DtPrinterBuf const &) |
| Assignment operator. | |
| virtual const DtLogEntry * | readNext () |
| Returns a pointer to the next entry to be read. | |
| virtual void | write (const std::string &st, MAKRti::DtNotifyLevelType level) |
| Writes the given string and notification level to the buffer. | |
| virtual void | copyBufferToList (DtLogEntryList &destList) const |
| Copies the buffer into the specified list of entries. | |
| virtual void | writeBufferToOutputStreams () const |
| Writes the entire contents of the current buffer to the MAKRti::DtOutputStreams. | |
| virtual void | clearBuffer () |
| Clears the buffer. | |
| virtual void | setMaxEntries (int max) |
| Sets the maximum number of entries. Negative indicates no limit. | |
Protected Attributes | |
| DtLogEntryList | myBuffer |
| The complete buffer is stored as a list of strings and notification levels. | |
| DtLogEntry * | myInProcessEntry |
| The entry being processed. | |
| int | myMaxEntries |
| The maximum number of entries. Negative indicates no limit. | |
Buffers data output by a DtBufferPrinter.
A DtPrinterBuf is used by a DtBufferPrinter to store any data output by attached output streams.
| DtPrinterBuf::DtPrinterBuf | ( | ) |
Constructor.
|
virtual |
Destructor.
References clearBuffer(), and myInProcessEntry.
| DtPrinterBuf::DtPrinterBuf | ( | DtPrinterBuf const & | otherBuf | ) |
Copy constructor.
References copyBufferToList(), and myBuffer.
|
virtual |
|
virtual |
Copies the buffer into the specified list of entries.
References myBuffer.
Referenced by DtPrinterBuf(), operator=(), and writeBufferToOutputStreams().
|
virtual |
Assignment operator.
References copyBufferToList(), and myBuffer.
|
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.
References myBuffer, and myInProcessEntry.
|
virtual |
Sets the maximum number of entries. Negative indicates no limit.
References myMaxEntries.
|
virtual |
Writes the given string and notification level to the buffer.
References DtLogEntry::level, myBuffer, myMaxEntries, and DtLogEntry::str.
|
virtual |
Writes the entire contents of the current buffer to the MAKRti::DtOutputStreams.
References copyBufferToList().
|
protected |
The complete buffer is stored as a list of strings and notification levels.
Referenced by clearBuffer(), copyBufferToList(), DtPrinterBuf(), operator=(), readNext(), and write().
|
protected |
The entry being processed.
Referenced by readNext(), and ~DtPrinterBuf().
|
protected |
The maximum number of entries. Negative indicates no limit.
Referenced by setMaxEntries(), and write().