The Core Parts
Explore how to parallelize CSV reading in C++17 by gathering files, loading records, and calculating totals within a specified date range. Understand how to use the std::filesystem library, handle exceptions, and work with date filtering to process CSV data efficiently.
We'll cover the following...
We'll cover the following...
The Main
Let’s start with the main() function.
Once we’re sure that there are enough arguments in the command line we enter the main scope where all the processing happens:
- line 6 - gather all the files to process in function
CollectPaths - line 16 - convert data from the files into record data and calculate the results - in
CalcResults - line 18