Add Initial commit
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
#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 OrderBookType);
|
||||
|
||||
private:
|
||||
static OrderBookEntry stringsToOBE(std::vector<std::string> strings);
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user