#include <TxqLog.h>
Inheritance diagram for TxqLog::

Public Methods | |
| TxqLog () | |
| The TxqLog defaults to sending output to all attached ostreams. More... | |
| TxqLog (ostream &os, txfilter f=TX_ALL) | |
| The TxqLog sends output to the input parameter ostream. More... | |
| virtual | ~TxqLog () |
| Virtual destructor flushes remaining output. More... | |
| TXSTD::vector<ostream*> | getStreams () |
| Get the streams associated with this class. More... | |
| void | attachModel (TxqMasterIoFrame *mdl, txfilter f=TX_ALL) |
| Attaches the TxqMasterIoFrame *mdl to the TxThroughStream with filter type f. More... | |
| void | detachModel (TxqMasterIoFrame *mdl) |
| Disconnects mdl from the TxThroughStream. More... | |
| void | setModelFilter (txfilter f) |
| Labels the type for suceeding output to the TxqLog stream. More... | |
Protected Methods | |
| int | sync () |
| sync method from streambuf. More... | |
| int | output (char *text, int length) |
| Helper function to output length characters from text. More... | |
Protected Attributes | |
| TXSTD::map<TxqMasterIoFrame*, txfilter> | mdlStateMap |
| Associate array of attached TxqMasterIoFrame. More... | |
| TxqMasterIoFrame* | model |
| The model window pointer. More... | |
| txfilter | mdlState |
| The type of current output. More... | |
Private Attributes | |
| QString | strBuffer |
| The QString buffer to hold the output characters until ready to send to the model window. More... | |
A TxqLog is an ostream for which the output can be connected to multiple other ostreams. Output to a TxqLog can be labeled with one or more filter flags specifing the nature of the output. Ostreams attached to the TxqLog can register to selectively listen to given types of output. The output is also sent to the TxqMasterIoFrame.
Copyright (c) 1999 - 2001 by Tech-X Corporation. All rights reserved.
Definition at line 46 of file TxqLog.h.
|
|
The TxqLog defaults to sending output to all attached ostreams.
|
|
|
The TxqLog sends output to the input parameter ostream.
|
|
|
Virtual destructor flushes remaining output.
|
|
|
Attaches the TxqMasterIoFrame *mdl to the TxThroughStream with filter type f. Any output sent to the TxThroughStream that matches one of the types in f will be passed on to s. Calling attachModel with mdl already attached will reset the filter type to f.
|
|
|
Disconnects mdl from the TxThroughStream. Functionaly equivalent to attachModel(mdl, OFF).
|
|
|
Get the streams associated with this class.
|
|
|
Helper function to output length characters from text. Output is sent to attached ostreams if they the types match.
|
|
|
Labels the type for suceeding output to the TxqLog stream. Output has type f until this function is called again.
|
|
|
sync method from streambuf.
|
|
|
The type of current output.
|
|
|
Associate array of attached TxqMasterIoFrame.
|
|
|
The model window pointer.
|
|
|
The QString buffer to hold the output characters until ready to send to the model window.
|
Copyright Tech-X Corporation, all rights reserved.