Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _HELPER_H
00009 #define _HELPER_H
00010
00011
00012 #include <stdint.h>
00013 #include<cstring>
00014 #include <stdint.h>
00015 #include <gmpxx.h>
00016 #ifndef no_sqlite
00017 #include <sqlite3.h>
00018 #endif
00019
00020 int64_t readInt64_t(const char* value, int8_t base);
00021
00022 uint64_t readUint64_t(const char* value, int8_t base);
00023
00031 int64_t read_int64_t(mpz_class value);
00032
00040 uint64_t read_uint64_t(mpz_class value);
00041
00050 mpz_class create_mpz(int64_t num);
00051
00061 mpq_class create_mpq(int64_t num, int64_t den);
00062
00071 mpq_class create_mpq_n(int64_t num);
00072
00073
00074 #ifndef no_sqlite
00075 sqlite3 *loadDB(std::string filename);
00076
00077 void execQuery(sqlite3 *db, std::string queryStr);
00078
00079 sqlite3 *createDB(std::string filename);
00080 #endif
00081 #endif
00082