|
Open CASCADE Technology
6.5.4
|
Selects a printer.
#include <OSD_Printer.hxx>
Public Member Functions | |
| DEFINE_STANDARD_ALLOC | 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. | |
| Standard_Integer OSD_Printer::Error | ( | ) | const |
| Standard_Boolean OSD_Printer::Failed | ( | ) | const |
| void OSD_Printer::Name | ( | TCollection_AsciiString & | Name | ) | const |
| void OSD_Printer::SetName | ( | const TCollection_AsciiString & | Name | ) |
1.8.0