Signed get/set functions for native currency values.

This commit is contained in:
JoelKatz
2012-05-27 18:29:55 -07:00
parent 959fa8e298
commit 02fd3e2f7a
2 changed files with 28 additions and 4 deletions

View File

@@ -257,7 +257,9 @@ public:
uint64 getMantissa() const { return mValue; }
uint64 getNValue() const { if (!mIsNative) throw std::runtime_error("not native"); return mValue; }
void setNValue(uint64_t v) { if (!mIsNative) throw std::runtime_error("not native"); mValue = v; }
void setNValue(uint64 v) { if (!mIsNative) throw std::runtime_error("not native"); mValue = v; }
int64 getSNValue() const;
void setSNValue(int64);
std::string getCurrencyHuman();