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

A table cell which contains an integer. More...

#include <CellInt.h>

Inheritance diagram for CellInt:
Cell

Public Member Functions

 CellInt (int value)
 
 CellInt (const char *str)
 
double getNumeralValue () const override
 Returns the value of the cell as a double-precision floating point number. More...
 
String getValueForPrint () const override
 Returns the value of the cell as a String. More...
 
void parseAndSetValue (const char *str) override
 Parses given C-style string and stores value. More...
 
void writeToFile (std::ofstream &file) override
 Writes value to a text file. More...
 
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

A table cell which contains an integer.

Impelements the Cell class by implementing a value of type int

Member Function Documentation

◆ getNumeralValue()

double CellInt::getNumeralValue ( ) const
overridevirtual

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

Implements Cell.

◆ getValueForPrint()

String CellInt::getValueForPrint ( ) const
overridevirtual

Returns the value of the cell as a String.

Implements Cell.

◆ parseAndSetValue()

void CellInt::parseAndSetValue ( const char *  str)
overridevirtual

Parses given C-style string and stores value.

Implements Cell.

◆ writeToFile()

void CellInt::writeToFile ( std::ofstream &  file)
overridevirtual

Writes value to a text file.

Implements Cell.


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