Add created and set up the CSVReader.h file
This commit is contained in:
15
CM2005 Object Oriented Programming/Topic 3/3.4.2/CSVReader.h
Normal file
15
CM2005 Object Oriented Programming/Topic 3/3.4.2/CSVReader.h
Normal file
@ -0,0 +1,15 @@
|
||||
#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);
|
||||
};
|
||||
Reference in New Issue
Block a user