Add second version of stringsToOBE that takes separate strings

This commit is contained in:
Lev
2021-06-11 13:45:12 -05:00
parent 3c3e82d22d
commit b672af9b4f

View File

@ -6,12 +6,16 @@
class CSVReader
{
public:
CSVReader();
static std::vector<OrderBookEntry> readCSV(std::string csvFile);
static std::vector<std::string> tokenise(std::string csvLine, char separator);
public:
CSVReader();
static std::vector<OrderBookEntry> readCSV(std::string csvFile);
static std::vector<std::string> 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<std::string> strings);
};
private:
static OrderBookEntry stringsToOBE(std::vector<std::string> strings);
};