Main Page | File List

store.h

00001 #ifndef STORE_H
00002 #define STORE_H
00003 
00004 #define TAGS    1
00005 #define WORDS   2
00006 #define BIWORDS 3
00007 #define DOMAINS 4
00008 
00009 /* Open the database */
00010 void store_opendb(char *dbname);
00011 
00012 /* Open the temporary learning database and then call function store_opendb*/
00013 void store_opendbs(char *dbname);
00014 
00015 /* display the tokens contained in the database */
00016 void store_displayTokens();
00017 
00018 /* return the porn and non porn number of occurences of the token */
00019 unsigned int* store_getScore(char *token);
00020 
00021 /* store a token in the temporary database */
00022 void store_storeTempToken(char *token, int type);
00023 
00024 /* store all tokens in temporary database in learning database*/
00025 void store_storeAll(int isporn);
00026 
00027 /* store the token in the database */
00028 void store_storeToken(char *token, int isporn);
00029 
00030 /* close the database */
00031 void store_closedb();
00032 
00033 /* convert into hexadecimal */
00034 unsigned char* to_hex(unsigned int nbp, unsigned int nbn);
00035 
00036 /* concert into int */
00037 unsigned int* to_int(unsigned char *conv);
00038 
00039 #endif

Generated on Tue May 31 14:22:45 2005 for filterFlex by  doxygen 1.3.9.1