Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
OSD_Printer Class Reference

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.


Constructor & Destructor Documentation


Member Function Documentation


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