You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
546B

  1. #ifndef __bdd__
  2. #define __bdd__
  3. #include <wx/filefn.h>
  4. #include <wx/textfile.h>
  5. #include <wx/msgdlg.h>
  6. #include <sqlite3.h>
  7. #ifdef __WXGTK__
  8. #define slash "/"
  9. #define _C(string) string.fn_str()
  10. #elif defined( __WXMSW__ )
  11. #define slash "\\"
  12. #define _C(string) (const char*) string.c_str()
  13. #endif
  14. class class_bdd
  15. {
  16. private:
  17. sqlite3* db;
  18. sqlite3_stmt* stmt;
  19. int rc;
  20. wxString path;
  21. void createEmpty();
  22. public:
  23. class_bdd(const wxString& path_in);
  24. ~class_bdd();
  25. void import(const wxString& importfile);
  26. };
  27. #endif //__bdd__