diff options
Autocommit at 28.05.2022 @ 15:28
2 files changed, 27 insertions, 0 deletions
| -rw-r--r-- | src/Models/Cell.h | 14 | ||||
| -rw-r--r-- | src/Models/CellString.h | 13 |
diff --git a/src/Models/Cell.h b/src/Models/Cell.h new file mode 100644 index 0000000..2c614de --- /dev/null +++ b/src/Models/Cell.h @@ -0,0 +1,14 @@ +#ifndef HEADER_CELL +#define HEADER_CELL + +#include "../Generic/String/String.h" + +class Cell { +public: + virtual String getValueForPrint() = 0; + virtual void parseAndSetValue(const char* str) = 0; + virtual void readFromFile(const char* filePath) = 0; + virtual void saveToFile(const char* filePath) = 0; +}; + +#endif diff --git a/src/Models/CellString.h b/src/Models/CellString.h new file mode 100644 index 0000000..0a34c76 --- /dev/null +++ b/src/Models/CellString.h @@ -0,0 +1,13 @@ +#ifndef HEADER_CELLSTRING +#define HEADER_CELLSTRING + +#include "Cell.h" + +class CellString : public Cell { + String value; + +public: + String getValueForPrint() override; +}; + +#endif |
