#include <Message_Messenger.hxx>
Inheritance diagram for Message_Messenger:
Public Member Functions | |
Standard_EXPORT | Message_Messenger () |
Empty constructor; initializes by single printer directed to cout. Note: the default messenger is not empty but directed to cout in order to protect against possibility to forget defining printers. If printing to cout is not needed, clear messenger by GetPrinters().Clear() . | |
Standard_EXPORT | Message_Messenger (const Handle(Message_Printer)&thePrinter) |
Create messenger with single printer . | |
Standard_EXPORT Standard_Boolean | AddPrinter (const Handle(Message_Printer)&thePrinter) |
Add a printer to the messenger. The printer will be added only if it is not yet in the list. Returns True if printer has been added. . | |
Standard_EXPORT Standard_Boolean | RemovePrinter (const Handle(Message_Printer)&thePrinter) |
Removes specified printer from the messenger. Returns True if this printer has been found in the list and removed. . | |
Standard_EXPORT Standard_Integer | RemovePrinters (const Handle(Standard_Type)&theType) |
Removes printers of specified type (including derived classes) from the messenger. Returns number of removed printers. . | |
const Message_SequenceOfPrinters & | Printers () const |
Returns current sequence of printers . | |
Message_SequenceOfPrinters & | ChangePrinters () |
Returns sequence of printers The sequence can be modified. . | |
Standard_EXPORT void | Send (const Standard_CString theString, const Message_Gravity theGravity=Message_Warning, const Standard_Boolean putEndl=Standard_True) const |
Dispatch a message to all the printers in the list. Three versions of string representations are accepted for convenience, by default all are converted to ExtendedString. The parameter putEndl specifies whether the new line should be started after this message (default) or not (may have sense in some conditions). . | |
Standard_EXPORT void | Send (const TCollection_AsciiString &theString, const Message_Gravity theGravity=Message_Warning, const Standard_Boolean putEndl=Standard_True) const |
See above . | |
Standard_EXPORT void | Send (const TCollection_ExtendedString &theString, const Message_Gravity theGravity=Message_Warning, const Standard_Boolean putEndl=Standard_True) const |
See above . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Attributes | |
Message_SequenceOfPrinters | myPrinters |
|
|
|
|
|
|
|
|
|
Reimplemented from MMgt_TShared. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|