From 611ad7b12fcc6b34229316099ae66bccbcf24ad9 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Wed, 12 Jan 2022 06:12:35 +0000 Subject: [PATCH] Pull data from ftp and parse --- test.cpp | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/test.cpp b/test.cpp index 20d1aa9..ad954bc 100644 --- a/test.cpp +++ b/test.cpp @@ -1,15 +1,22 @@ #include "book.hpp" #include "json.hpp" #include "protocol.hpp" +#include "bom.hpp" #include <chrono> +#include <unistd.h> +#include <unordered_map> int main(void) { - book::Book b = book::testBook(10, true); + // book::Book b = book::testBook(10, true); auto bs = protocol::recoverBook(); - std::cout << bs.size() << std::endl; - for (auto i : bs) { - std::cout << i.first << std::endl; - i.second.printBook(); - } +// 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(); } -- Gitblit v1.9.3