Default progress is now infinite. Finite is moved to new class
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
all:
|
||||
g++ main.cpp ../Progress.cpp ../StatusBarManager.cpp -o example
|
||||
g++ main.cpp ../Progress.cpp ../ProgressFinite.cpp ../StatusBarManager.cpp -o example
|
||||
|
||||
.PHONY: all
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../Progress.h"
|
||||
#include "../ProgressFinite.h"
|
||||
#include "../StatusBarManager.h"
|
||||
|
||||
using namespace std;
|
||||
@@ -28,8 +29,8 @@ void INT_handler(int sig)
|
||||
int main()
|
||||
{
|
||||
signal(SIGINT, INT_handler);
|
||||
Progress p("Normal", 10);
|
||||
Progress p2("Test", 10);
|
||||
Progress p("Normal");
|
||||
ProgressFinite p2("Test", 10);
|
||||
StatusBarManager manager;
|
||||
g_manager = &manager;
|
||||
manager.add_progress_message(&p);
|
||||
|
||||
Reference in New Issue
Block a user