All Frameworks  Class Hierarchy  This Framework  Indexes   

PrintBase Class CATPrintFileDevice

Usage: you can derive this class.


public class CATPrintFileDevice

Class to create file devices.


Constructor and Destructor Index


o CATPrintFileDevice(CATUnicodeString&,CATUnicodeString&,void*)
Constructs a CATPrintFileDevice from a given path file.
o CATPrintFileDevice()
Constructs a CATPrintFileDevice.
o ~CATPrintFileDevice()
o CATPrintFileDevice(CATPrintStream*)
Constructs a CATPrintFileDevice from a given stream output.

Method Index


o Begin(CATPrintParameters&)
Initializes the file device.
o End(void)
Ends the device.
o SetFile(CATPrintStream*)
Defines the stream associated to the file device.

Constructor and Destructor


o CATPrintFileDevice
public CATPrintFileDevice( const iPath,
const iLanguage,
const iPrivateData= 0)
Constructs a CATPrintFileDevice from a given path file.
Parameters:
iPath
The path of the file.
iLanguage
The language of the file.
The available languages used in CATIA are:
  • For Windows:
    • "CGM",
    • "RASTER",
    • "EMF" (Windows Metafile),
    • "EPS" (Generic PostScript).
  • For UNIX:
    • "CGM",
    • "RASTER",
    • "EPS" (Generic PostScript),
    • "HPGL2" (Generic HP-GL/2 RTL),
    • "HP1000GL2" (HP DesignJet 1000 Series),
    • "OCE",
    • "GBR" (Gerber).
iPrivateData
The possible private data to transmit.
o CATPrintFileDevice
public CATPrintFileDevice()
Constructs a CATPrintFileDevice.
o ~CATPrintFileDevice
public virtual ~CATPrintFileDevice()
o CATPrintFileDevice
public CATPrintFileDevice( iStream)
Constructs a CATPrintFileDevice from a given stream output.
Parameters:
iStream
The stream output.

Methods


o Begin
public Begin( const iParameters)
Initializes the file device.
Parameters:
iParameters
The parameters of the generator.
Returns:
The status of the method.
Legal values: 0 if file device initialization failed, 1 otherwise.
o End
public End( )
Ends the device.
o SetFile
public SetFile( iStream)
Defines the stream associated to the file device.
Parameters:
iStream
The stream of the file device.

This object is included in the file: CATPrintFileDevice.h
If needed, your Imakefile.mk should include the module: CATPrintBase

Copyright © 2003, Dassault Systèmes. All rights reserved.