AN Programming Model
Every program that uses the AN interface will have these HDF
calls in it:
- Open a file and obtain a file identifier
- Hopen (hopen)
- Initialize the AN interface
- ANstart (afstart)
- Create or open an Annotation
- ANcreate (afcreate)
- Create a data label (AN_DATA_LABEL) or data
description (AN_DATA_DESC)
annotation for the object identified by the specified tag and reference
number.
ANcreatef (affcreate)
- Create a file label (AN_FILE_LABEL) or file
description (AN_FILE_DESC) annotation.
ANselect (afselect)
- Select an annotation.
- Perform optional operations (reading writing, etc ..)
- Terminate access to the annotation
- ANendaccess (afendaccess)
- Terminate access to the AN interface
- ANend (afend)
- Close the file
- Hclose (hclose)