std_instance.cpp 507 B

1234567891011121314151617181920212223242526
  1. #include <iostream>
  2. #include <string>
  3. #include <wx/app.h>
  4. #include <wx/log.h>
  5. #include <wx/string.h>
  6. #include "model/std_instance_chk.h"
  7. #include "model/base_platform.h"
  8. class StdInstanceApp : public wxAppConsole {
  9. public:
  10. StdInstanceApp() : wxAppConsole() {}
  11. bool OnInit() {
  12. SetAppName("opencpn");
  13. g_BasePlatform = new BasePlatform();
  14. StdInstanceCheck m_checker;
  15. std::string line;
  16. std::getline(std::cin, line);
  17. return false;
  18. }
  19. };
  20. wxIMPLEMENT_APP_CONSOLE(StdInstanceApp);