SpreadsheetCell.h
上传用户:gtl068a
上传日期:2007-01-25
资源大小:233k
文件大小:1k
- #include <string>
- using std::string;
- class SpreadsheetCell
- {
- public:
- SpreadsheetCell();
- SpreadsheetCell(double initialValue);
- SpreadsheetCell(const string& initialValue);
- SpreadsheetCell(const SpreadsheetCell &src);
- SpreadsheetCell& operator=(const SpreadsheetCell& rhs);
- void setValue(double inValue);
- double getValue();
- void setString(const string& inString);
- string getString();
- protected:
- string doubleToString(double inValue);
- double stringToDouble(const string& inString);
- double mValue;
- string mString;
- };