00001 00024 #ifndef XAPIAN_INCLUDED_TYPES_H 00025 #define XAPIAN_INCLUDED_TYPES_H 00026 00027 /* Allow inclusion from C */ 00028 #ifdef __cplusplus 00029 #include <string> 00030 00031 namespace Xapian { 00032 00036 typedef std::string termname; 00037 #endif 00038 00043 typedef unsigned int docid; 00044 00046 typedef docid doccount; 00047 00049 typedef int doccount_diff; 00050 00052 typedef unsigned int termcount; 00053 00055 typedef int termcount_diff; 00056 00061 typedef unsigned int termpos; 00062 00064 typedef int termpos_diff; 00065 00067 typedef double doclength; 00068 00070 typedef unsigned int valueno; 00071 00073 typedef int valueno_diff; 00074 00076 typedef double weight; 00077 00079 typedef int percent; 00080 00084 typedef unsigned int timeout; 00085 00086 #ifdef __cplusplus 00087 }; 00088 #endif 00089 00090 #endif