SpreadsheetCell.h
Upload User: gtl068a
Upload Date: 2007-01-25
Package Size: 233k
Code Size: 1k
Development Platform:

Visual C++

  1. #include <string>
  2. using std::string;
  3. class SpreadsheetCell
  4. {
  5.  public:
  6.   SpreadsheetCell();
  7.   SpreadsheetCell(double initialValue);
  8.   SpreadsheetCell(const string& initialValue);
  9.   SpreadsheetCell(const SpreadsheetCell &src);
  10.   SpreadsheetCell& operator=(const SpreadsheetCell& rhs);
  11.   void setValue(double inValue);
  12.   double getValue();
  13.   void setString(const string& inString);
  14.   string getString();
  15.  protected:
  16.   string doubleToString(double inValue);
  17.   double stringToDouble(const string& inString);
  18.   double mValue;
  19.   string mString;
  20. };