Add implemented and used getKnownProducts from MerkelMain

This commit is contained in:
Lev
2021-05-26 01:16:37 -05:00
parent 25e93995b9
commit e212127cd3
11 changed files with 3962 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#pragma once
#include "OrderBookEntry.h"
#include "CSVReader.h"
#include <string>
#include <vector>
class OrderBook
{
public:
/* Construct, reading a csv data file */
OrderBook(std::string filename);
/* return vector of all known products in the dataset */
std::vector<std::string> getKnownProducts();
/* return vector of Orders according to the sent filters */
std::vector<OrderBookEntry> getOrders(OrderBookType type, std::string product, std::string timestamp);
private:
std::vector<OrderBookEntry> orders;
};