#include <DisplayUnit.h>
Public Member Functions | |
DisplayUnit (const std::string _stringRep="", const Base::Unit _unit=Base::Unit(), double _scaler=0.0) | |
bool | isEmpty () const |
bool | operator!= (const DisplayUnit &c) const |
bool | operator== (const DisplayUnit &c) const |
Public Attributes | |
double | scaler |
std::string | stringRep |
Base::Unit | unit |
Spreadsheet::DisplayUnit::DisplayUnit | ( | const std::string | _stringRep = "" , |
const Base::Unit | _unit = Base::Unit() , |
||
double | _scaler = 0.0 |
||
) |
bool Spreadsheet::DisplayUnit::isEmpty | ( | void | ) | const |
References stringRep.
Referenced by Spreadsheet::Cell::setDisplayUnit().
bool Spreadsheet::DisplayUnit::operator!= | ( | const DisplayUnit & | c | ) | const |
References operator==().
bool Spreadsheet::DisplayUnit::operator== | ( | const DisplayUnit & | c | ) | const |
References scaler, stringRep, and unit.
Referenced by operator!=().
double Spreadsheet::DisplayUnit::scaler |
Referenced by SpreadsheetGui::SheetModel::data(), Spreadsheet::Cell::getFormattedQuantity(), and operator==().
std::string Spreadsheet::DisplayUnit::stringRep |
Base::Unit Spreadsheet::DisplayUnit::unit |
Referenced by SpreadsheetGui::SheetModel::data(), Spreadsheet::Cell::getFormattedQuantity(), and operator==().