Files
UoL/CM2005 Object Oriented Programming/Topic 4/4.4.5/CSVReader.h
2021-06-11 13:39:36 -05:00

18 lines
385 B
C++

#pragma once
#include "OrderBookEntry.h"
#include <vector>
#include <string>
class CSVReader
{
public:
CSVReader();
static std::vector<OrderBookEntry> readCSV(std::string csvFile);
static std::vector<std::string> tokenise(std::string csvLine, char separator);
private:
static OrderBookEntry stringsToOBE(std::vector<std::string> strings);
};