Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
blob: 19bf15454012ce74dd22f369a1d8cfb457072e96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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);

	Cell* newCell;
	if (doubleParse - intParse > 0.00001)
}