52 Decimal (DecimalMantissa mantissa, DecimalExponent exponent);
73 DecimalMantissa mantissa()
const;
77 DecimalExponent exponent()
const;
95 operator UInt32()
const;
105 operator UInt64()
const;
115 bool toNumber (
SInt32&)
const;
120 bool toNumber (UInt32&)
const;
125 bool toNumber (
SInt64&)
const;
130 bool toNumber (UInt64&)
const;
134 bool toNumber (
Double&)
const;
138 void toString (std::string&)
const;
142 std::string toString()
const;
154 bool tryParse (
const char* buffer,
size_t bufferSize,
Decimal&);
159 Decimal parse (
const char* buffer,
size_t bufferSize);
164 DecimalMantissa mantissa_;
168 DecimalExponent exponent_;
199 throw std::domain_error (
"Cannot cast value to target type. ");
202 inline Decimal::operator UInt32()
const 209 throw std::domain_error (
"Cannot cast value to target type. ");
219 throw std::domain_error (
"Cannot cast value to target type. ");
222 inline Decimal::operator UInt64()
const 229 throw std::domain_error (
"Cannot cast value to target type. ");
239 throw std::domain_error (
"Cannot cast value to target type. ");
244 std::string presentation;
253 std::string presentation;
void toString(std::string &) const
ONIXS_TRADEWEB_APA_API bool operator<=(const Decimal &l, const Decimal &r)
bool operator==(const StrRef &left, const StrRef &right)
Compares StrRef instance with another one.
DecimalExponent exponent() const
std::string toString() const
bool operator!=(const StrRef &left, const StrRef &right)
Compares with another instance.
ONIXS_TRADEWEB_APA_API bool operator>(const Decimal &l, const Decimal &r)
DecimalMantissa mantissa() const
ONIXS_TRADEWEB_APA_API bool operator<(const Decimal &l, const Decimal &r)
bool toNumber(SInt32 &) const
ONIXS_TRADEWEB_APA_API std::ostream & operator<<(std::ostream &stream, const DataSource &ds)
void toStr(std::string &str, const Decimal &value)
ONIXS_TRADEWEB_APA_API bool operator>=(const Decimal &l, const Decimal &r)