Orderbook Simulation
OrderbookSim is a C++ application simulating a financial market order book. It efficiently manages and matches buy and sell orders while calculating the Volume-Weighted Average Price (VWAP).
Public Member Functions | List of all members
InputHandler Class Reference

Parses test input files to extract actions and expected results. More...

Public Member Functions

std::tuple< Informations, ResultGetInformations (const std::filesystem::path &path) const
 Retrieves actions and the result from a file. More...
 

Detailed Description

Parses test input files to extract actions and expected results.

The InputHandler class provides functionality for parsing actions and results from test files, which are used to drive tests for the Orderbook functionality.

Member Function Documentation

◆ GetInformations()

std::tuple<Informations, Result> InputHandler::GetInformations ( const std::filesystem::path &  path) const

Retrieves actions and the result from a file.

Parameters
pathThe path to the input file.
Returns
A tuple containing a vector of actions and the result.
Exceptions
std::logic_errorif no result is specified in the file.

The documentation for this class was generated from the following file: