Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
blob: 2c28d4b0b4a8123dbe6b923f14f5ab23ce322df7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "CellFormula.h"
#include <cstring>

double CellFormula::calculate(unsigned index) {
	switch(formula[index].right) {
		case none: return formula[index].left;
	}
}

String CellFormula::getValueForPrint() {
	double result = calculate();
	return "";
}

void CellFormula::parseAndSetValue(const char* str) {
}

void CellFormula::readFromFile(std::ifstream& file) {
	file >> rawFormula;
}

void CellFormula::writeToFile(std::ofstream& file) {
	file << rawFormula;
}