FMI Table
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 2 | Project Topic 7 |
Public Member Functions | List of all members
Cell Class Referenceabstract

Fully abstract class that represents a cell in the table. More...

#include <Cell.h>

Inheritance diagram for Cell:
CellDouble CellFormula CellInt CellString

Public Member Functions

virtual double getNumeralValue () const =0
 Returns the value of the cell as a double-precision floating point number. More...
 
virtual String getValueForPrint () const =0
 Returns the value of the cell as a String. More...
 
virtual void parseAndSetValue (const char *str)=0
 Parses given C-style string and stores value. More...
 
virtual void writeToFile (std::ofstream &file)=0
 Writes value to a text file. More...
 

Detailed Description

Fully abstract class that represents a cell in the table.

Member Function Documentation

◆ getNumeralValue()

virtual double Cell::getNumeralValue ( ) const
pure virtual

Returns the value of the cell as a double-precision floating point number.

Implemented in CellDouble, CellFormula, CellInt, and CellString.

◆ getValueForPrint()

virtual String Cell::getValueForPrint ( ) const
pure virtual

Returns the value of the cell as a String.

Implemented in CellDouble, CellFormula, CellInt, and CellString.

◆ parseAndSetValue()

virtual void Cell::parseAndSetValue ( const char *  str)
pure virtual

Parses given C-style string and stores value.

Implemented in CellDouble, CellFormula, CellInt, and CellString.

◆ writeToFile()

virtual void Cell::writeToFile ( std::ofstream &  file)
pure virtual

Writes value to a text file.

Implemented in CellDouble, CellFormula, CellInt, and CellString.


The documentation for this class was generated from the following file: