Files
UoL/CM2005 Object Oriented Programming/Topic 3/3.4.2/CSVReader.h

15 lines
362 B
C++

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