Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Project 2 / src / Models / CellString.h
blob: 788aa4c9e29056aee2b8d2083045799ca6db2431 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef HEADER_CELLSTRING
#define HEADER_CELLSTRING

/*! \file CellString.h
 *  \brief Stores the declaration of class CellString
 */

#include "Cell.h"

/*! \brief A table cell which contains a String value
 */
class CellString : public Cell {
	String value;

public:
	CellString() = default;
	CellString(const char* str);

	double getNumeralValue() const override;
	String getValueForPrint() const override;
	void parseAndSetValue(const char* str) override;
	void writeToFile(std::ofstream& file) override;
};

#endif