testProgressBar.cpp 890 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**\example testProgressBar.cpp
  2. * @file testProgressBar.cpp
  3. * @brief FourierLibrary Testsystem
  4. * @author Michael Koch
  5. * @date 05/28/2008
  6. */
  7. // #define DEBUG
  8. // #undef DEBUG
  9. #include "core/basics/Config.h"
  10. #include <unistd.h>
  11. #include "core/basics/StringTools.h"
  12. // #include "features/simplefeatures/FourierLibrary.h"
  13. #include "vislearning/baselib/ProgressBar.h"
  14. #include <iostream>
  15. #include <fstream>
  16. using namespace NICE;
  17. using namespace OBJREC;
  18. using namespace std;
  19. /**
  20. ProgressBarQtThread Testsystem
  21. */
  22. //main
  23. int main(int argc, char **argv)
  24. {
  25. #ifndef __clang__
  26. #ifndef __llvm__
  27. std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
  28. #endif
  29. #endif
  30. Config mainconf(argc, argv);
  31. OBJREC::ProgressBar P;
  32. for (int i = 0; i < 10; i++)
  33. {
  34. P.update(10);
  35. sleep(3);
  36. cerr << i << endl;
  37. if (i > 2)
  38. {
  39. P.show();
  40. }
  41. }
  42. P.hide();
  43. // P.wait();
  44. return 0;
  45. }