#include "bom.hpp" #include "book.hpp" #include "json.hpp" #include "protocol.hpp" #include #include #include #include int main(void) { // book::Book b = book::testBook(10, true); auto bs = protocol::recoverBook(); // protocol::catchUp(bs); // std::cout << bs.size() << std::endl; // for (auto i : bs) { // std::cout << i.first << std::endl; // i.second.printBook(); // } bom::initialise(); bom::updateBom(bs); bom::destroy(); protocol::catchUp(bs); std::cout << bs.size() << std::endl; for (auto& i : bs) { std::cout << i.first << ", " << i.second.bomPrice << std::endl; i.second.printBook(); } }