00001 /* omtypes.h: Common types used 00002 * 00003 * ----START-LICENCE---- 00004 * Copyright 1999,2000,2001 BrightStation PLC 00005 * Copyright 2002 Ananova Ltd 00006 * Copyright 2002 Olly Betts 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License as 00010 * published by the Free Software Foundation; either version 2 of the 00011 * License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00021 * USA 00022 * -----END-LICENCE----- 00023 */ 00024 00025 #ifndef OM_HGUARD_OMTYPES_H 00026 #define OM_HGUARD_OMTYPES_H 00027 00032 typedef unsigned int om_docid; 00033 00035 typedef om_docid om_doccount; 00036 00038 typedef int om_doccount_diff; 00039 00041 typedef unsigned int om_termcount; 00042 00044 typedef int om_termcount_diff; 00045 00050 typedef unsigned int om_termpos; 00051 00053 typedef int om_termpos_diff; 00054 00056 typedef double om_doclength; 00057 00059 typedef unsigned int om_valueno; 00060 00062 typedef int om_valueno_diff; 00063 00065 typedef double om_weight; 00066 00068 typedef int om_percent; 00069 00073 typedef unsigned int om_timeout; 00074 00075 #ifdef __cplusplus 00076 #include <string> 00080 typedef std::string om_termname; 00081 #endif 00082 00083 #endif /* OM_HGUARD_OMTYPES_H */