22 lines
599 B
C++
22 lines
599 B
C++
#include "OrderBook.h"
|
|
#include "CSVReader.h"
|
|
|
|
/* Construct, reading a csv data file */
|
|
OrderBook::OrderBook(std::string filename)
|
|
{
|
|
orders = CSVReader::readCSV(filename);
|
|
}
|
|
|
|
/* return vector of all known products in the dataset */
|
|
std::vector<std::string> OrderBook::getKnownProducts()
|
|
{
|
|
std::vector<std::string> products;
|
|
return products;
|
|
}
|
|
|
|
/* return vector of Orders according to the sent filters */
|
|
std::vector<OrderBookEntry> OrderBook::getOrders(OrderBookType type, std::string product, std::string timestamp)
|
|
{
|
|
std::vector<OrderBookEntry> order_selection;
|
|
return order_selection;
|
|
} |