Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.h
blob: cf349e02bce47dcdd274a0d4d7d230efea418abb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef HEADER_CELLFORMULA
#define HEADER_CELLFORMULA

#include "Cell.h"
#include "../Generic/List/List.hpp"

class CellFormula : public Cell {
	List<Cell*> referencedCells;
	List<Pair<Cell*, char>> formula;
	String rawFormula;

public:
	CellFormula() = default;

	String getValueForPrint() override;
	void parseAndSetValue(const char* str) override;
	void readFromFile(std::ifstream& file) override;
	void writeToFile(std::ofstream& file) override;
};

#endif