15 lines
362 B
C++
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);
|
|
}; |