#ifndef HEADER_CELLFORMULA #define HEADER_CELLFORMULA #include "Cell.h" #include "../Generic/List/List.hpp" #include "../Generic/Pair/Pair.hpp" class CellFormula : public Cell { enum Op { plus, minus, mult, div, pow, }; List referencedCells; List> 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