44 typedef signed long long Int64;
45 typedef unsigned long long UInt64;
46#elif defined (__GNUC__)
49 typedef signed long Int64;
50 typedef unsigned long UInt64;
52 typedef signed long long Int64;
53 typedef unsigned long long UInt64;
108 operator Int32()
const;
118 operator Int64()
const;
123 operator UInt64()
const;
235 throw std::domain_error (
236 "Cannot cast value to target type. ");
247 throw std::domain_error (
248 "Cannot cast value to target type. ");
252 Decimal::operator Int64()
const
259 throw std::domain_error (
260 "Cannot cast value to target type. ");
264 Decimal::operator UInt64()
const
271 throw std::domain_error (
272 "Cannot cast value to target type. ");
283 throw std::domain_error (
284 "Cannot cast value to target type. ");
291 std::string presentation;
Decimal type for better precision.
Decimal(DecimalMantissa mantissa=0, DecimalExponent exponent=0)
Initializes instance from compound components.
bool toNumber(Int32 &) const
std::string toString() const
Returns text presentation of decimal.
static Decimal parse(const char *buffer, size_t bufferSize)
bool toNumber(Int64 &) const
Decimal(const Decimal &other)
Initializes as copy of given value.
DecimalExponent exponent() const
Returns exponent part of decimal.
static bool tryParse(const char *buffer, size_t bufferSize, Decimal &)
bool toNumber(Double &) const
Decimal(Double value, size_t precision)
void toString(std::string &) const
Appends text presentation to given string.
bool toNumber(UInt64 &) const
bool toNumber(UInt32 &) const
DecimalMantissa mantissa() const
Returns mantissa part of decimal.
bool operator>=(const Decimal &l, const Decimal &r)
bool operator<=(const Decimal &l, const Decimal &r)
bool operator==(const FieldValueRef &ref, const std::string &str)
bool operator<(const Decimal &l, const Decimal &r)
bool operator>(const Decimal &l, const Decimal &r)
bool operator!=(const FieldValueRef &ref, const std::string &str)
std::ostream & operator<<(std::ostream &, const OnixS::Eurex::MarketData::Decimal &)
Helper class for conversion from string to number.
static bool tryParse(const char *buffer, size_t bufferSize, Int32 &number)
static bool tryParse(const char *buffer, size_t bufferSize, UInt32 &number)
static bool tryParse(const char *buffer, size_t bufferSize, UInt64 &number)
static bool tryParse(const char *buffer, size_t bufferSize, Decimal &number)
static bool tryParse(const char *buffer, size_t bufferSize, Double &number)
static bool tryParse(const char *buffer, size_t bufferSize, Int64 &number)