.TH DB 3 "10 April 1997" "MIT DB software 9.6" "DB library" .SH NAME db \- ECG database library .SH SYNOPSIS .B #include .PP int adumuv(DB_Signal \fIs\fP, DB_Sample \fIadc_units\fP) .br double aduphys(DB_Signal \fIs\fP, DB_Sample \fIadc_units\fP) .br char *anndesc(int \fIannotation_code\fP) .br int annopen(char *\fIrecord\fP, DB_Anninfo *\fIaiarray\fP, unsigned int \fInann\fP) .br char *annstr(int \fIannotation_code\fP) .br int calopen(char *\fIcalibration_filename\fP) .br char *datstr(DB_Date \fId\fP) .br char *dberror(void) .br char *dbfile(char *\fItype\fP, char *\fIrecord\fP) .br void dbflush(void) .br int dbgetskew(DB_Signal \fIs\fP) .br long dbgetstart(DB_Signal \fIs\fP) .br int dbinit(char *\fIrecord\fP, DB_Anninfo *\fIaiarray\fP, unsigned int \fInann\fP, DB_Siginfo *\fIsiarray\fP, unsigned int \fInsig\fP) .br void dbquiet(void) .br void dbquit(void) .br void dbsetskew(DB_Signal \fIs\fP, int \fIskew\fP) .br void dbsetstart(DB_Signal \fIs\fP, long \fIbyte_offset\fP) .br void dbverbose(void) .br char *ecgstr(int \fIannotation_code\fP) .br void flushcal(void) .br int getann(DB_Annotator \fIa\fP, DB_Annotation *\fIannotation\fP) .br double getbasecount(void) .br int getcal(char *\fIdescription\fP, char *\fIunits\fP, DB_Calinfo *\fIcal\fP) .br DB_Frequency getcfreq(void) .br char *getdb(void) .br int getframe(DB_Sample *\fIvector\fP) .br char *getinfo(char *\fIrecord\fP) .br int getspf(void) .br int getvec(DB_Sample *\fIvector\fP) .br void iannclose(DB_Annotator a) .br int iannsettime(DB_Time \fIt\fP) .br int isgsettime(DB_Group \fIsignal_group\fP, DB_Time \fIt\fP) .br int isigopen(char *\fIrecord\fP, DB_Siginfo *\fIsiarray\fP, int \fInsig\fP) .br int isigsettime(DB_Time \fIt\fP) .br char *mstimstr(DB_Time \fIt\fP) .br DB_Sample muvadu(DB_Signal \fIs\fP, int \fImicrovolts\fP) .br int newcal(char *\fIcalibration_filename\fP) .br int newheader(char *\fIrecord\fP) .br void oannclose(DB_Annotator a) .br int osigfopen(DB_Siginfo *\fIsiarray\fP, unsigned int \fInsig\fP) .br int osigopen(char *\fIrecord\fP, DB_Siginfo *\fIsiarray\fP, unsigned int \fInsig\fP) .br DB_Sample physadu(DB_Signal \fIs\fP, double \fIv\fP) .br int putann(DB_Annotator \fIa\fP, DB_Annotation *\fIannotation\fP) .br int putcal(DB_Calinfo *\fIcal\fP) .br int putinfo(char *\fIinfo\fP) .br int putvec(DB_Sample *\fIvector\fP) .br DB_Frequency sampfreq(char *\fIrecord\fP) .br int setanndesc(int \fIannotation_code\fP, char *\fIannotation_description\fP) .br int setannstr(int \fIannotation_code\fP, char *\fIannotation_mnemonic_string\fP) .br void setbasecount(double \fIbase_count\fP) .br int setbasetime(char *\fItime_string\fP) .br void setcfreq(DB_Frequency \fIcounter_frequency\fP) .br void setdb(char *\fIdatabase_path_string\fP) .br int setecgstr(int \fIannotation_code\fP, char *\fIannotation_mnemonic_string\fP) .br void setgvmode(int \fImode\fP) .br int setheader(char *\fIrecord\fP, DB_Siginfo *\fIsiarray\fP, unsigned int \fInsig\fP) .br int setibsize(int \fIsize\fP) .br int setmsheader(char *\fIrecord\fP, char **\fIseg_names\fP, unsigned int \fInsegments\fP) .br int setobsize(int \fIsize\fP) .br int setsampfreq(DB_Frequency \fIsampling_frequency\fP) .br int strann(char *\fIannotation_mnemonic_string\fP) .br DB_Date strdat(char *\fIdate_string\fP) .br int strecg(char *\fIannotation_mnemonic_string\fP) .br DB_Time strtim(char *\fItime_string\fP) .br char *timstr(DB_Time \fIt\fP) .br int ungetann(DB_Annotator \fIa\fP, DB_Annotation *\fIannotation\fP) .SH DESCRIPTION Waveform databases (including the MIT-BIH Arrhythmia Database, the AHA Database for Evaluation of Ventricular Arrhythmia Detectors, and the European ST-T Database) are accessible to applications written in C and C++ via the functions defined in the DB library. Under UNIX, programs may be linked with the DB library by using the \fB-ldb\fR option at the end of the C or C++ compiler command. The functions are described in detail in the reference below. .SH FILES .SS UNIX systems: .TP 22 \fB/usr/local/lib/libdb.a\fR standard (statically bound) library .TP \fB/usr/local/lib/libdb.so .TP \fB/usr/local/lib/libdb.so.\fIM.N\fR shareable library (bound at run-time, not available on all systems). On some systems, one of these pathnames is a link to the other, and both are needed; on others, only one of the pathnames is needed. .TP \fB/usr/local/lib/libdb.sa\fR stubs for linking with applications that use \fBlibdb.so\fR (not needed on all systems). .PP The location of these files may vary on some systems. .SS MS-DOS/MS Windows systems: .TP \fBdb.lib\fR standard (small memory model) library .TP \fBdbl.lib\fR large memory model library .TP \fBdb.dll\fR dynamic link library for MS Windows .TP \fBdbdll.lib\fR stubs for linking with applications that use \fBdb.dll\fR .SH SEE ALSO \fIECG Database Programmer's Guide\fR (On systems that support GNU emacs, the \fIGuide\fR may be available on-line using emacs \fIinfo\fR; from within \fIemacs\fR, type control-H followed by \fIi\fR to find out. An HTML version may be installed on your system (in \fI/usr/local/help/html/dbpg\fP); the most recent version can be viewed at \fBhttp://ecg.mit.edu/dbpg/\fP if you have Internet access. .PP The DB library can also be used with Fortran programs; see the \fIGuide\fR for details. .SH DIAGNOSTICS All functions that return an \fBint\fR indicate errors with negative values. Depending on context, zero returns may indicate success or failure. Positive values indicate success. Most errors other than EOF are accompanied by diagnostics on the standard error output.