From b672af9b4f21343ea89c68e13756c268b4166ce6 Mon Sep 17 00:00:00 2001 From: Lev Date: Fri, 11 Jun 2021 13:45:12 -0500 Subject: [PATCH] Add second version of stringsToOBE that takes separate strings --- .../Topic 4/4.4.5/CSVReader.h | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/CM2005 Object Oriented Programming/Topic 4/4.4.5/CSVReader.h b/CM2005 Object Oriented Programming/Topic 4/4.4.5/CSVReader.h index 9b5c103..bed9717 100644 --- a/CM2005 Object Oriented Programming/Topic 4/4.4.5/CSVReader.h +++ b/CM2005 Object Oriented Programming/Topic 4/4.4.5/CSVReader.h @@ -6,12 +6,16 @@ class CSVReader { - public: - CSVReader(); - static std::vector readCSV(std::string csvFile); - static std::vector tokenise(std::string csvLine, char separator); +public: + CSVReader(); + static std::vector readCSV(std::string csvFile); + static std::vector tokenise(std::string csvLine, char separator); + static OrderBookEntry stringsToOBE(std::string product, + std::string price, + std::string amount, + std::string timestamp, + OrderBookType orderType); - private: - static OrderBookEntry stringsToOBE(std::vector strings); - -}; +private: + static OrderBookEntry stringsToOBE(std::vector strings); +};