• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

helper.h

Go to the documentation of this file.
00001 /* 
00002  * File:   helper.h
00003  * Author: fermat
00004  *
00005  * Created on 26. März 2010, 16:03
00006  */
00007 
00008 #ifndef _HELPER_H
00009 #define _HELPER_H
00010 //#define no_sqlite
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  /* _HELPER_H */
00082 

Generated on Mon Oct 11 2010 13:09:26 for CppDistributors by  doxygen 1.7.2