Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
diff options
context:
space:
mode:
Commit4b6cd3e44eca28dfbad22e67cecc8faddcae2e1f (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-28 15:43:53 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-28 15:43:53 +0300
Filescef3f0cf7f90889bab02bc67c492ed1ce3e59b78 /src/Models/CellFormula.cpp
FMI-OOP-P2_Tables-4b6cd3e44eca28dfbad22e67cecc8faddcae2e1f.tar
FMI-OOP-P2_Tables-4b6cd3e44eca28dfbad22e67cecc8faddcae2e1f.tar.gz
FMI-OOP-P2_Tables-4b6cd3e44eca28dfbad22e67cecc8faddcae2e1f.zip
Parentc6d8d83010d2c669d53909d00cf3d2f1fa6c4130 (diff)
Autocommit at 28.05.2022 @ 15:43
1 files changed, 21 insertions, 0 deletions
-rw-r--r--src/Models/CellFormula.cpp21
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<Cell*> 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