Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
OSD_Printer Class Reference

Selects a printer.
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...
 

Detailed Description

Selects a printer.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.


The documentation for this class was generated from the following file: