| 97 | int GetIntValue() { return (int)*m_ptr; } |
| 98 | |
| 99 | std::string GetValueString() { |
| 100 | std::ostringstream ost; |
| 101 | ost << std::setprecision(m_precision) << std::fixed; |
| 102 | ost << *m_ptr; |
| 103 | return ost.str(); |
| 104 | } |
| 105 | |
| 106 | void SetPrecision(int x) { m_precision = x; } |
| 107 |