Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellDouble.h
blob: bd211193b755486cee5bfcfdf35b7f1f99d0771a (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_CELLDOUBLE
#define HEADER_CELLDOUBLE

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

#include "Cell.h"

/*! \brief A table cell which contains a double-precision floating point number
 *
 * Implements the Cell class by implementing a value of type double.
 */
class CellDouble : public Cell {
	double value;

public:
	CellDouble() = default;
	CellDouble(double value);
	CellDouble(const char* str);

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

#endif