So. I have a CSV Parser that I built. It works very well. The way it currently works is that I have the parser in a header file "CSV_Parser". So my .cpp code would look like this:
#include <iostream>
#include <eigen3/Eigen/Dense>
#include "CSV_Parser.h"
usingnamespace std;
using Eigen;
int main()
{
CSV matrixA; //CSV is the parser class name
matrixA.extract(); //runs the parser
cout << matrixA.CSV_Matrix; //CSV_Matrix is the public name of a Eigen matrix which receives the stripped Matrix
}
This all works great. I am running Eclipse in Linux (Xubuntu to be precise). In the header file the .csv is opened as follows:
What I would like is for the user to be able to change the file that the parser is opening through the main .cpp file. In other words, is there a way to create some variable, say "FileName" and do the following: