SpreadsheetCell.h
Upload User: gtl068a
Upload Date: 2007-01-25
Package Size: 233k
Code Size: 0k
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.   void setValue(double inValue);
  11.   double getValue();
  12.   void setString(const string& inString);
  13.   string getString();
  14.  protected:
  15.   string doubleToString(double inValue);
  16.   double stringToDouble(const string& inString);
  17.   double mValue;
  18.   string mString;
  19. };