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 ANcreatef (affcreate) - Create a file label (AN_FILE_LABEL) or file 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)