Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
1 files changed, 9 insertions, 0 deletions
-rw-r--r--src/Models/Table.cpp9
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 <cstring>
+#include <fstream>
+#include <exception>
+
+Table::Table(const char* filePath) {
+ std::ifstream inFile(filePath);
+ if (inFile.is_open())
+ throw new std::logic_error("Could now open file!");
+ cells = List<List<Cell*>>();
+}
Table::Table(unsigned rows, unsigned cols) {
if (rows == 0 || cols == 0)