Open CASCADE Technology
7.0.0
|
Selects a printer (used by File). More...
#include <OSD_Printer.hxx>
Public Member Functions | |
OSD_Printer (const TCollection_AsciiString &Name) | |
Initializes printer to use with its name. The string must contain only ASCII characters between ' ' and '~'; this means no control character and no extended ASCII code. If it is not the case the exception ConstructionError is raised. More... | |
void | SetName (const TCollection_AsciiString &Name) |
Changes name of printer to use. More... | |
void | Name (TCollection_AsciiString &Name) const |
Returns name of current printer. More... | |
Standard_Boolean | Failed () const |
Returns TRUE if an error occurs. More... | |
void | Reset () |
Resets error counter to zero. More... | |
void | Perror () |
Raises OSD_Error. More... | |
Standard_Integer | Error () const |
Returns error number if 'Failed' is TRUE. More... | |
Selects a printer (used by File).
OSD_Printer::OSD_Printer | ( | const TCollection_AsciiString & | Name | ) |
Initializes printer to use with its name. The string must contain only ASCII characters between ' ' and '~'; this means no control character and no extended ASCII code. If it is not the case the exception ConstructionError is raised.
Standard_Integer OSD_Printer::Error | ( | ) | const |
Returns error number if 'Failed' is TRUE.
Standard_Boolean OSD_Printer::Failed | ( | ) | const |
Returns TRUE if an error occurs.
void OSD_Printer::Name | ( | TCollection_AsciiString & | Name | ) | const |
Returns name of current printer.
void OSD_Printer::Perror | ( | ) |
Raises OSD_Error.
void OSD_Printer::Reset | ( | ) |
Resets error counter to zero.
void OSD_Printer::SetName | ( | const TCollection_AsciiString & | Name | ) |
Changes name of printer to use.