Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Previous: NF_DEF_OPAQUE, Up: Opaque Type



5.7.2 Learn About an Opaque Type: NF_INQ_OPAQUE

Given a typeid, get the information about an opaque type.

Usage

     INTEGER FUNCTION NF_INQ_OPAQUE(INTEGER NCID, INTEGER XTYPE,
             CHARACTER*(*) NAME, INTEGER SIZEP)
NCID
The ncid for the group containing the opaque type.
XTYPE
The typeid for this opaque type, as returned by NF_DEF_COMPOUND, or NF_INQ_VAR.
NAME
The name of the opaque type will be copied here. It will be NF_MAX_NAME bytes or less.
SIZEP
The size of the opaque type will be copied here.

Errors

NF_NOERR
No error.
NF_EBADTYPEID
Bad typeid.
NF_EBADFIELDID
Bad fieldid.
NF_EHDFERR
An error was reported by the HDF5 layer.

Example

This example is from nf_test/ftst_vars3.F.

     C     Use nf_inq_opaque and make sure we get the same answers as we did
     C     with nf_inq_user_type.
           retval = nf_inq_opaque(ncid, typeids(2), type_name, base_size)
           if (retval .ne. nf_noerr) call handle_err(retval)
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690