#ifndef PROGRESS_HPP #define PROGRESS_HPP #include #ifdef _WIN32 #include using string = std::wstring; #else using string = std::string; #endif class ProgressBar { public: #ifndef GUI ProgressBar() = default; ~ProgressBar() = default; #else #ifndef _WIN32 ProgressBar( void *pw ) : ptr( pw ){}; #else ProgressBasr( void *hwnd_in ) { while ( *hwnd_in == nullptr ) sleep( 50 ); ptr = *hwnd_in; }; #endif // _WIN32 ~ProgressBar(); #endif // GUI void print( int perc ); void print( const string &t ); #ifdef GUI private: void *ptr; #endif }; #endif