![]() |
VR-Forces 5.0.2 Developer's Guide
|
This class represents the console for an individual object. It owns a set of streams for various notification levels (mirroring VR-Links DtWarn/DtInfo/etc. streams). Printers can be attached to send the console to various locations, including a file and DIS/RPR messages to the GUI.
Public Member Functions | |
| DtObjectConsole (const DtSimObject *) | |
| virtual | ~DtObjectConsole () |
| virtual bool | init () |
| virtual void | setNotifyLevel (DtNotifyLevelType level) |
| virtual void | setNotifyLevel (const DtString &channel, DtNotifyLevelType level) |
| virtual DtNotifyLevelType | notifyLevel () const |
| virtual void | printToFile (const DtFilename &filename) const |
| virtual void | stopPrintingToFile () const |
| virtual void | addConsolePrinter (DtPrinter *printer) |
| virtual void | addAndManageConsolePrinter (DtPrinter *printer) |
| virtual void | removeConsolePrinter (DtPrinter *printer) |
| virtual const DtOutputChannelManager & | channelManager () const |
| virtual DtOutputStream & | debugStream (const DtString &channel="") const |
| virtual DtOutputStream & | verboseStream (const DtString &channel="") const |
| virtual DtOutputStream & | infoStream (const DtString &channel="") const |
| virtual DtOutputStream & | warnStream (const DtString &channel="") const |
| virtual DtOutputStream & | errorStream (const DtString &channel="") const |
Protected Member Functions | |
| virtual void | addDefaultPrinters () |
Protected Attributes | |
| int | myObjectConsoleThreshold |
| DtFilePrinter * | myFilePrinter |
| DtOutputChannelManager | myChannelManager |
| tbb::spin_mutex | myMutex |
| const DtSimObject * | mySimObject |
Private Member Functions | |
| DtObjectConsole (const DtObjectConsole &orig) | |
| DtObjectConsole & | operator= (const DtObjectConsole &orig) |
| DtObjectConsole::DtObjectConsole | ( | const DtSimObject * | ) |
|
virtual |
|
private |
Not Implemented.
|
virtual |
Initialized the console. Calls addDefaultPrinters() to add some default printers.
|
virtual |
Sets the notify level for all streams managed by this console manager.
|
virtual |
|
virtual |
|
virtual |
Starts printing the output of this object console to the specified file. Only one file will be printed to at a time. If a file is already being printed to, it will be stopped and printing will start to the new file.
|
virtual |
Stops printing to a file, if file printing is active.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Adds the specified printer to all the streams associated with this console. The console does not take any ownership of this printer.
|
virtual |
Adds the specified printer, using addConsolePrinter(), but also takes ownership of the printer and deletes it when this console is deleted.
|
virtual |
Removed the specified printer from all the streams associated with this console.
|
virtual |
|
protectedvirtual |
Adds a DtObjectConsoleNetworkPrinter and a DtObjectConsoleVrlinkPrinter to the console.
|
private |
Not Implemented.
|
protected |
The current notification level for this object.
|
mutableprotected |
If file logging has been turned on, this holds the pointer to the current file printer.
|
mutableprotected |
|
mutableprotected |
|
protected |