Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models
diff options
context:
space:
mode:
Commitbc6a38c81c440780b2ae4823b24172f3e41f12eb (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-28 15:28:47 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-28 15:28:47 +0300
Filesde92e665939d72cda5c5ebdca0d38a58f7d80893 /src/Models
FMI-OOP-P2_Tables-bc6a38c81c440780b2ae4823b24172f3e41f12eb.tar
FMI-OOP-P2_Tables-bc6a38c81c440780b2ae4823b24172f3e41f12eb.tar.gz
FMI-OOP-P2_Tables-bc6a38c81c440780b2ae4823b24172f3e41f12eb.zip
Parent1f90438e5da829bb84b58c04a0de012d8c34f6b5 (diff)
Autocommit at 28.05.2022 @ 15:28
2 files changed, 27 insertions, 0 deletions
-rw-r--r--src/Models/Cell.h14
-rw-r--r--src/Models/CellString.h13
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