Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
1 files changed, 6 insertions, 0 deletions
-rw-r--r--src/Models/Table.cpp6
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp
index 21fb6a3..595bce2 100644
--- a/src/Models/Table.cpp
+++ b/src/Models/Table.cpp
@@ -1,7 +1,13 @@
#include "Table.h"
+#include <cstring>
Table::Table(unsigned rows, unsigned cols) {
cells = List<List<Cell*>>(rows);
for (unsigned i = 0; i < rows; i++)
cells[i] = List<Cell*>(cols);
}
+
+void Table::putCell(unsigned row, unsigned col, const char* rawValue) {
+ unsigned intParse = atoi(rawValue);
+ unsigned doubleParse = atof(rawValue);
+}