From 4b6cd3e44eca28dfbad22e67cecc8faddcae2e1f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 28 May 2022 15:43:53 +0300 Subject: Autocommit at 28.05.2022 @ 15:43 --- src/Models/CellFormula.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/Models/CellFormula.cpp (limited to 'src/Models/CellFormula.cpp') diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp new file mode 100644 index 0000000..d3c3304 --- /dev/null +++ b/src/Models/CellFormula.cpp @@ -0,0 +1,21 @@ +#ifndef HEADER_CELLFORMULA +#define HEADER_CELLFORMULA + +#include "Cell.h" +#include "../Generic/List/List.hpp" + +class CellFormula : public Cell { + List referencedCells; + String rawFormula; + double value; + +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 -- cgit v1.3.1-23-gd82d