00001
00002
00003 #ifndef apop_db_included
00004 #define apop_db_included
00005 #include "types.h"
00006 #include "variadic.h"
00007 #include "asst.h"
00008 #include <gsl/gsl_matrix.h>
00009 #define ERRCHECK {if (err!=NULL) {printf("%s\n",err); return 0;}}
00010
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif
00014
00015 #ifdef APOP_NO_VARIADIC
00016 int apop_table_exists(char *name, char remove);
00017 #else
00018 int apop_table_exists_base(char *name, char remove);
00019 apop_varad_declare(int, apop_table_exists, char *name; char remove);
00020 #define apop_table_exists(...) apop_varad_link(apop_table_exists, __VA_ARGS__)
00021 #endif
00022
00023 void apop_db_rng_init(int seed);
00024
00025 int apop_db_open(char *filename);
00026 #ifdef APOP_NO_VARIADIC
00027 int apop_db_close(char vacuum);
00028 #else
00029 int apop_db_close_base(char vacuum);
00030 apop_varad_declare(int, apop_db_close, char vacuum);
00031 #define apop_db_close(...) apop_varad_link(apop_db_close, __VA_ARGS__)
00032 #endif
00033
00034 int apop_query(const char *q, ...) __attribute__ ((format (printf,1,2)));
00035 gsl_matrix * apop_query_to_matrix(const char * fmt, ...) __attribute__ ((format (printf,1,2)));
00036 apop_data * apop_query_to_text(const char * fmt, ...) __attribute__ ((format (printf,1,2)));
00037 apop_data * apop_query_to_data(const char * fmt, ...) __attribute__ ((format (printf,1,2)));
00038 apop_data * apop_query_to_mixed_data(const char *typelist, const char * fmt, ...) __attribute__ ((format (printf,2,3)));
00039 gsl_vector * apop_query_to_vector(const char * fmt, ...) __attribute__ ((format (printf,1,2)));
00040 double apop_query_to_float(const char * fmt, ...) __attribute__ ((format (printf,1,2)));
00041 int apop_system(const char *fmt, ...) __attribute__ ((format (printf,1,2)));
00042
00043 int apop_matrix_to_db(gsl_matrix *data,char *tabname, char **headers);
00044 int apop_data_to_db(apop_data *set, char *tabname);
00045
00046 #ifdef APOP_NO_VARIADIC
00047 void apop_db_merge(char *db_file, char inout);
00048 #else
00049 void apop_db_merge_base(char *db_file, char inout);
00050 apop_varad_declare(void, apop_db_merge, char *db_file; char inout);
00051 #define apop_db_merge(...) apop_varad_link(apop_db_merge, __VA_ARGS__)
00052 #endif
00053 #ifdef APOP_NO_VARIADIC
00054 void apop_db_merge_table(char *db_file, char *tabname, char inout);
00055 #else
00056 void apop_db_merge_table_base(char *db_file, char *tabname, char inout);
00057 apop_varad_declare(void, apop_db_merge_table, char *db_file; char *tabname; char inout);
00058 #define apop_db_merge_table(...) apop_varad_link(apop_db_merge_table, __VA_ARGS__)
00059 #endif
00060
00061 double apop_db_t_test(char * tab1, char *col1, char *tab2, char *col2);
00062 double apop_db_paired_t_test(char * tab1, char *col1, char *col2);
00063
00064 #ifdef __cplusplus
00065 }
00066 #endif
00067
00068 #endif
Autogenerated by doxygen on 28 Sep 2009.