![]() |
VR-Forces 4.5 Class Documentation
|
The DtOutputChannelManager class manages default streams and channel-specific streams by notify level. More...
Classes | |
| struct | ChannelSettings |
| struct | DefaultStreamInfo |
Public Types | |
| typedef DtChannelSpecificOutputStream *(* | DtOutputChannelStreamCreatorFcn )(DtOutputStreamBuffer *, int &, int, DtPrinter *, const std::string &) |
| typedef DtOutputStreamBuffer *(* | DtOutputStreamBufferCreatorFcn )() |
Public Member Functions | |
| DtOutputChannelManager (int &globalNotifyReference) | |
| virtual | ~DtOutputChannelManager () |
| virtual void | addPrinter (DtPrinter *printer) |
| Adds a printer that will NOT be deleted when removed. | |
| virtual void | addAndManagePrinter (DtPrinter *printer) |
| Adds a printer that will be deleted when removed. | |
| virtual void | removePrinter (DtPrinter *printer) |
| Removes a printer. | |
| virtual DtOutputStream & | printError (const DtString &channel="") |
| Stream access. | |
| virtual DtOutputStream & | printWarn (const DtString &channel="") |
| virtual DtOutputStream & | printInfo (const DtString &channel="") |
| virtual DtOutputStream & | printVerbose (const DtString &channel="") |
| virtual DtOutputStream & | printDebug (const DtString &channel="") |
| virtual void | setChannelSettings (const DtRwChannelDescriptorList &settings) |
| virtual int | channelNotifyLevel (const DtString &channel) |
| virtual void | setChannelNotifyLevel (const DtString &channel, int level) |
| virtual DtString | channelPrefix (const DtString &channel) |
| virtual void | setChannelPrefix (const DtString &channel, const DtString &prefix) |
| virtual bool | channelEnabled (const DtString &channel) |
| virtual void | setChannelEnabled (const DtString &channel, bool enabled) |
| virtual void | addDefaultStream (int notifyLevel, DtOutputStream &stream) |
| virtual DtOutputStream & | defaultStream (int notifyLevel) |
| virtual void | printStatus (const DtString &channel="") |
| Prints channel status. If channel is empty, prints all channels. | |
| virtual DtString | channelStatus (const DtString &channel) |
| virtual void | setStreamCreatorFcn (DtOutputChannelStreamCreatorFcn fcn) |
| virtual void | setStreamBufferCreatorFcn (DtOutputStreamBufferCreatorFcn fcn) |
| virtual DtOutputStreamBuffer * | createStreamBuffer () |
| virtual void | setManageDefaultStreams (bool manage) |
| virtual std::vector< DtString > | allChannels () |
Protected Types | |
| typedef std::map< DtString, ChannelSettings * > | ChannelSettingsMap |
| typedef std::vector < DtChannelSpecificOutputStream * > | StreamVector |
| typedef std::map< DtString, StreamVector > | ChannelMap |
Protected Member Functions | |
| virtual DtOutputStream & | streamForChannel (const DtString &channel, int notifyLevel) |
| virtual DtChannelSpecificOutputStream * | createStream (int &globalThresholdRef, int threshold=1, DtPrinter *dflt_printer=0, const std::string &prefix="") |
| virtual void | attachToAllStreams (DtPrinter *printer) |
| virtual void | detachFromAllStreams (DtPrinter *printer) |
| virtual ChannelSettings * | channelSettings (const DtString &channel) |
| virtual void | addAllPrinters (DtOutputStream *stream) |
Protected Attributes | |
| std::vector< DtPrinter * > | myPrinters |
| std::vector< DtPrinter * > | myManagedPrinters |
| ChannelSettingsMap | myChannelSettingsMap |
| int & | myGlobalNotifyReference |
| ChannelMap | myChannelMap |
| std::vector< DefaultStreamInfo > | myDefaultStreams |
| DtOutputStreamBuffer | myNullStreamBuffer |
| std::auto_ptr< DtOutputStream > | myNullStream |
| DtOutputChannelStreamCreatorFcn | myStreamCreatorFcn |
| DtOutputStreamBufferCreatorFcn | myStreamBufferCreatorFcn |
| bool | myManageDefaultStreams |
| tbb::spin_mutex | myMutex |
The DtOutputChannelManager class manages default streams and channel-specific streams by notify level.
Default streams are used when no channel name is passed in.
| typedef DtChannelSpecificOutputStream*(* DtOutputChannelManager::DtOutputChannelStreamCreatorFcn)(DtOutputStreamBuffer *, int &, int, DtPrinter *, const std::string &) |
| typedef DtOutputStreamBuffer*(* DtOutputChannelManager::DtOutputStreamBufferCreatorFcn)() |
|
protected |
|
protected |
|
protected |
| DtOutputChannelManager::DtOutputChannelManager | ( | int & | globalNotifyReference | ) |
|
virtual |
|
virtual |
Adds a printer that will NOT be deleted when removed.
|
virtual |
Adds a printer that will be deleted when removed.
|
virtual |
Removes a printer.
Removing a managed printer will NOT delete it. It will then be up to the user to delete the printer.
|
virtual |
Stream access.
Will return the default stream when no channel is passed in. Creates the required stream if it does not exist already.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Prints channel status. If channel is empty, prints all channels.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |