From 01a6f816ddea3508b4b696214ba543a8e60658f4 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 30 May 2022 18:57:51 +0300 Subject: Autocommit at 30.05.2022 @ 18:57 --- src/Models/Table.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Models/Table.cpp') diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index 132559f..9403696 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -4,6 +4,15 @@ #include "CellString.h" #include "CellFormula.h" #include +#include +#include + +Table::Table(const char* filePath) { + std::ifstream inFile(filePath); + if (inFile.is_open()) + throw new std::logic_error("Could now open file!"); + cells = List>(); +} Table::Table(unsigned rows, unsigned cols) { if (rows == 0 || cols == 0) -- cgit v1.3.1-23-gd82d