Add incorporated OrderBook into MerkelMain
This commit is contained in:
19
CM2005 Object Oriented Programming/Topic 4/4.1.5/OrderBook.h
Normal file
19
CM2005 Object Oriented Programming/Topic 4/4.1.5/OrderBook.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user