1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#pragma once #include <vector> #include "buffer.h" #include "command.h" #include "global.h" using namespace std; class Manager{ vector<Buffer> buffers; i64 activeIdx; bool should_quit=false; public: Manager(); void receive(const Command &cmd); void show(); int io(); };