From aaba315e770302a20f37f5ea30af3bc050800fa1 Mon Sep 17 00:00:00 2001 From: Lev Date: Fri, 11 Jun 2021 15:59:35 -0500 Subject: [PATCH] Update added insertOrder --- CM2005 Object Oriented Programming/Topic 4/4.4.11/OrderBook.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CM2005 Object Oriented Programming/Topic 4/4.4.11/OrderBook.h b/CM2005 Object Oriented Programming/Topic 4/4.4.11/OrderBook.h index 3b155bc..e6421a5 100644 --- a/CM2005 Object Oriented Programming/Topic 4/4.4.11/OrderBook.h +++ b/CM2005 Object Oriented Programming/Topic 4/4.4.11/OrderBook.h @@ -19,6 +19,7 @@ class OrderBook /** returns the next time after the sent time in the orderbook * If no next timestamp is found, wraps to the start */ std::string getNextTime(std::string timestamp); + void insertOrder(OrderBookEntry& order); static double getHighPrice(std::vector& orderList); static double getLowPrice(std::vector& orderList); private: