Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Starbase Device Drivers Manual - Vol2: HP 9000 Series 700 Computers > Chapter 6 The HP Starbase-to-Visualizer Archive Device Driver

To Open and Initialize for Output

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Syntax Examples

The following examples open and initialize the hpsbv driver and put the archive file into a file named example.sbv

For C Programs:

fildes=gopen("example.sbv", OUTDEV, "hpsbv", INIT | SPOOLED);

For FORTRAN77 Programs:

  fildes=gopen('example.sbv'//char(0), OUTDEV, 'hpsbv'//char(0),
+ INIT + SPOOLED);

For Pascal Programs:

fildes=gopen('example.sbv', OUTDEV, 'hpsbv', INIT + SPOOLED);

Parameters for gopen

The gopen procedure has four parameters: path, kind, driver, and mode.

  • path - The name of the archive file which will be created by Starbase and to which hpsbv will write the metafile. It is recommended that path names end with the extension .sbv for easy file administration.

  • kind - Must be OUTDEV, with SPOOLED specified in the mode argument.

  • driver - The character representation of the driver type. This is hpsbv modified to meet the syntax of the programming language used. Namely:

    "hpsbv"           
    for C
    'hpsbv'//char(0)  
    for FORTRAN77
    'hpsbv'           
    for Pascal
  • mode - The mode control word consists of several flag bits that must be OR'ed together. Listed below are the flag bits which have device dependent action. These flags must be present to initialize the hpsbv driver.

    • SPOOLED - Allows specifying Kind equal to OUTDEV without having path already in existence.

    • INIT - Open and initialize the device.

Driver Default

There are a number of driver options that may be manipulated with the Starbase gescape function. See the Gescape section in this chapter for the defaults and options.

The default action taken without use of the special gescape functions results in an archive file containing all the relevant geometry display calls stored as one usable object for the Personal Visualizer™.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.