/** * @file tabble.cpp * @author Miguel Muniz * @brief file for table.cpp contains the function definitions for the table class * @version 0.5 * @date 2023-03-05 */ #include "dataManager.h" #include #include #include #include #include using namespace std; namespace fs = std::filesystem; void Table::CreateTB(string tb_name, string column, string data_type1, string column2, string data_type2, string data_of_type){ //string path = program_path /= tb_name; string pathInital = program_path; //saves initial program path if (fs::exists(program_path) && fs::is_regular_file(tb_name + ".csv")) { //fix this cout << "!Failed to create table " << tb_name << " because it already exists." << endl; } else { //cout << "program_path: " << program_path << "/" << endl; //program_path /= tb_name; string path = program_path /= tb_name; //cout << "path: " << path << endl; ofstream newTable(path + ".csv"); cout << "Table " << tb_name << " created." << endl; newTable << column << "," << column2 << endl; newTable << data_type1 << "," << data_type2 << "(" <