Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellInt.h
blob: c24ef855761bb9d68d5e01ce17dd604a8ed2d0e6 (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
26
27
28
#ifndef HEADER_CELLINT
#define HEADER_CELLINT

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

#include "Cell.h"

/*! \brief  A table cell which contains an integer
 *
 * Impelements the Cell class by implementing a value of type int
 */
class CellInt : public Cell {
	int value;

public:
	CellInt() = default;
	CellInt(int value);
	CellInt(const char* str);

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

#endif