// for now juist CLI, print an arr, then print each it #include #include #include #include #include #include #include #include #include #include #include #include "core/app.hpp" #include "sessions.hpp" #include "sorters.hpp" #include "steppable.hpp" #include "timer.hpp" using namespace std::chrono; using namespace std; vector dataprovider(){ return vector {9,8,1,2,7,3,6,4,5}; } int main() { //create data auto myinput = make_shared("arr1", dataprovider()); auto myinput2 = make_shared("arr2", dataprovider()); auto myviewsession = make_unique(); auto mytimermanager = make_unique(); //create app with initialized dependencies App myapp(std::move(myviewsession),std::move(mytimermanager)); //create binding shared_ptr asort = make_sort(myinput, "bsort"); shared_ptr myinvoker = make_shared(asort); SortBinding mysortbinding(myinput, asort, myinvoker); Timer timer(0, myinvoker, chrono::milliseconds(250)); myapp.timermanager->add_timer(std::move(timer)); //add data and binding myapp.add_sort(myinput, mysortbinding); //actually start the app myapp.run(); }