Open CASCADE Technology 6.6.0
|
Selects a printer.
#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. | |
void | SetName (const TCollection_AsciiString &Name) |
Changes name of printer to use. | |
void | Name (TCollection_AsciiString &Name) const |
Returns name of current printer | |
Standard_Boolean | Failed () const |
Returns TRUE if an error occurs | |
void | Reset () |
Resets error counter to zero | |
void | Perror () |
Raises OSD_Error | |
Standard_Integer | Error () const |
Returns error number if 'Failed' is TRUE. |
OSD_Printer::OSD_Printer | ( | const TCollection_AsciiString & | Name | ) |
Standard_Integer OSD_Printer::Error | ( | ) | const |
Standard_Boolean OSD_Printer::Failed | ( | ) | const |
void OSD_Printer::Name | ( | TCollection_AsciiString & | Name | ) | const |
void OSD_Printer::Perror | ( | ) |
void OSD_Printer::Reset | ( | ) |
void OSD_Printer::SetName | ( | const TCollection_AsciiString & | Name | ) |