Add Initial commit for further testing
This commit is contained in:
21
CM2005 Object Oriented Programming/Topic 4/4.5.8/CSVReader.h
Normal file
21
CM2005 Object Oriented Programming/Topic 4/4.5.8/CSVReader.h
Normal file
@ -0,0 +1,21 @@
|
||||
#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);
|
||||
static OrderBookEntry stringsToOBE(std::string price,
|
||||
std::string amount,
|
||||
std::string timestamp,
|
||||
std::string product,
|
||||
OrderBookType orderType);
|
||||
|
||||
private:
|
||||
static OrderBookEntry stringsToOBE(std::vector<std::string> strings);
|
||||
};
|
||||
Reference in New Issue
Block a user