The aiarray argument for annopen
and dbinit
is a
pointer to an array of objects of type DB_Anninfo
. Each member
of the array contains information provided to annopen
and
dbinit
about an annotation file associated with the
record:
char *name
int stat
stat
is either READ
or WRITE
, to specify standard ("MIT format") annotation files
to be read by getann
or to be written by putann
. Both MIT
DB and AHA DB annotation files are kept on-line in MIT format. The
symbols READ
and WRITE
are defined in `<ecg/db.h>'.
An AHA-format annotation file can be read by getann
or written by
putann
if the stat
field is set to AHA_READ
or
AHA_WRITE
before calling annopen
or dbinit
(see section Example 2: An Annotation Translator). Other formats may be supported via a similar
mechanism; consult `<ecg/db.h>' for more information.
The number of DB_Anninfo
objects in aiarray is given by
the nann argument of annopen
and dbinit
. The
annotation-reading function, getann
, knows the annotators by
number only; annopen
and dbinit
assign input annotator
numbers beginning with 0 in the order in which they are given in the
array of DB_Anninfo
objects. Output annotator numbers used by
putann
also start at 0; note that input annotator 0 and output
annotator 0 are distinct. Annotator numbers are supplied to
getann
and putann
in their first arguments. There may be
no more than DB_MAXANN
(defined in `<ecg/db.h>') input
annotators and DB_MAXANN
output annotators open at once.
See section annopen,
for an example of how to set the contents of an array of DB_Anninfo
objects.
Go to the first, previous, next, last section, table of contents.