commit | author | age | ||
16b655 | 1 | #include "book.hpp" |
JG | 2 | #include "json.hpp" |
3 | #include "protocol.hpp" | |
4 | #include <chrono> | |
4fdb65 | 5 | #include <unistd.h> |
JG | 6 | #include <unordered_map> |
16b655 | 7 | |
JG | 8 | int main(void) |
9 | { | |
2c515f | 10 | // book::Book b = book::testBook(10, true); |
4fdb65 | 11 | auto bs = protocol::recoverBook(); |
JG | 12 | protocol::catchUp(bs); |
2c515f | 13 | std::cout << bs.size() << std::endl; |
JG | 14 | for (auto i : bs) { |
15 | std::cout << i.first << std::endl; | |
16 | i.second.printBook(); | |
17 | } | |
16b655 | 18 | } |