55 throwBadConversion(typeName());
211 return container.get<
StrRef>();
219 ref = container.get<
StrRef>();
240 else if (str.empty())
447 container.get<
Char>());
456 &container.get<
Char>(),
467 &container.get<
Char>(),
478 value = container.get<
Char>();
491 container.get<
Char>());
502 container.get<
Char>());
513 container.get<
Char>());
524 container.get<
Char>());
535 container.get<
Char>());
546 container.get<
Char>());
557 container.get<
Char>());
568 container.get<
Char>());
580 container.get<
Char>()))
606 if (
'0' <= original &&
673 static_cast<Integer
>(-1) >
674 static_cast<Integer>(0)
689 container.get<Integer>());
698 const size_t converted =
700 container.get<Integer>(),
704 assert(converted < size);
705 assert(converted != 0);
719 container.get<Integer>();
721 if (CanFitToChar()(actual))
741 container.get<Integer>());
753 container.get<Integer>());
765 container.get<Integer>());
777 container.get<Integer>());
789 container.get<Integer>());
801 container.get<Integer>());
813 container.get<Integer>());
825 container.get<Integer>());
838 numericCast<Decimal::Mantissa>(
839 container.get<Integer>()),
854 container.get<Integer>()));
1042 const size_t converted =
1048 assert(converted != 0);
1049 assert(converted < size);
1060 value = container.get<
Decimal>();
1100 const size_t converted =
1106 assert(converted < size);
1107 assert(converted != 0);
1168 return "MaturityMonthYear";
1270 sizeof(Enumeration) ==
1272 ? ValueKinds::Enumeration
1273 : ValueKinds::Ordinary
1340 ValueKinds::Enumeration
1463 return BitSet(bits);
1490 result = BitSet(bits);
bool convert(UInt8 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
#define ONIXS_ILINK3_NULLPTR
virtual bool convert(UInt16 &, const ValueContainer &) const noexcept
Tries to convert the value into an integer.
bool convert(Int64 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
StrRef toStr(Char *, size_t, const ValueContainer &container) const noexceptoverride
std::string toStr(const FixedPointDecimal< Mantissa, Exponent > &)
Serializes a fixed-point decimal into a string.
Timestamp makeTimestamp(Timestamp::Ticks ticks) noexcept
Make Timestamp helper.
Implements the value conversion the Decimal fields.
std::basic_string_view< Char > StrRef
bool convert(StrRef &ref, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a string reference.
bool convert(UInt16 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
Identifies the kind of the field value.
char Char
Character type alias.
bool convert(Int32 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
bool convert(UInt32 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
FloatingPointDecimal< Int64, Int32 > Decimal
Universal decimal type.
bool convert(Char &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a character.
bool convert(UInt32 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
virtual void toStr(std::string &, const ValueContainer &) const
Outputs the text presentation of the value stored in the given container into the given string...
bool convert(Int16 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
A real number with a floating exponent.
Enumeration::Enum Result
Type of the conversion output.
#define ONIXS_ILINK3_OVERRIDE
bool convert(Int16 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
bool convert(UInt16 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
bool convert(Int8 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
Implements the value conversion for integer fields.
static BitSet convert(const ValueConverter &converter, const ValueContainer &container)
Converters the given value by using the specified value converter and returns the result of conversio...
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
bool convert(UInt8 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
virtual bool convert(Int64 &, const ValueContainer &) const noexcept
Tries to convert the value into an integer.
static bool convert(Result &result, const ValueConverter &converter, const ValueContainer &container)
Tries to convert the given value using the given value converter and puts the result of the conversio...
Implements the value conversion for integer fields.
virtual bool convert(Int32 &, const ValueContainer &) const noexcept
Tries to convert the value into an integer.
#define ONIXS_ILINK3_MESSAGING_TAGBASED_NAMESPACE_END
bool convert(MaturityMonthYear &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a month-year.
bool convert(Timestamp &value, const ValueContainer &container) const override
Tries to convert the value into a timestamp.
StrRef toStr(Char *, size_t, const ValueContainer &container) const noexceptoverride
StrRef toStr(Char *buf, size_t size, const ValueContainer &container) const override
virtual bool convert(UInt64 &, const ValueContainer &) const noexcept
Tries to convert the value into an integer.
void toStr(std::string &str, const ValueContainer &container) const override
Outputs the text presentation of the value stored in the given container into the given string...
bool convert(UInt64 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
bool convert(Int16 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
MantissaType Mantissa
Mantissa component type.
bool convert(Decimal &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a Decimal.
void toStr(std::string &str, const ValueContainer &container) const override
Outputs the text presentation of the value stored in the given container into the given string...
bool convert(UInt64 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
bool convert(Timestamp &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a timestamp.
virtual bool convert(MaturityMonthYear &, const ValueContainer &) const noexcept
Tries to convert the value into a month-year.
virtual StrRef toStr(Char *, size_t, const ValueContainer &) const
bool convert(UInt16 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
bool fromStr(Decimal &, const Char *, size_t) noexcept
Deserializes a decimal number from the given text presentation.
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
bool convert(StrRef &ref, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a string reference.
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
Implements the value conversion for integer fields.
bool convert(Int32 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
bool convert(UInt64 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
Implements the value conversion for Timestamp fields.
virtual bool convert(Char &, const ValueContainer &) const noexcept
Tries to convert the value into a character.
#define ONIXS_ILINK3_DEFAULT
bool convert(Timestamp &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a timestamp.
void toStr(std::string &str, const ValueContainer &container) const override
Outputs the text presentation of the value stored in the given container into the given string...
void toStr(std::string &str, const ValueContainer &container) const override
Outputs the text presentation of the value stored in the given container into the given string...
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
virtual bool convert(Int16 &, const ValueContainer &) const noexcept
Tries to convert the value into an integer.
Traits::Result Result
Conversion output type.
static bool convert(BitSet &result, const ValueConverter &converter, const ValueContainer &container)
Tries to convert the given value using the given value converter and puts the result of the conversio...
ValueConversionTraits< Value, ValueKind< Value >::Kind > Traits
Conversion traits.
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
static Result convert(const ValueConverter &converter, const ValueContainer &container)
Converters the given value by using the specified value converter and returns the result of conversio...
Implements value conversion operations through value conversion traits.
virtual bool convert(UInt8 &, const ValueContainer &) const noexcept
Tries to convert the value into an integer.
Implements the value conversion for fields whose values represent a single character.
virtual bool convert(StrRef &, const ValueContainer &) const noexcept
Tries to convert the value into a string reference.
Implements the value conversion for integer fields.
bool convert(Int32 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
Value Result
Type of the conversion output.
bool convert(Int64 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
bool convert(Char &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a character.
void toStr(std::string &str, const ValueContainer &container) const override
Outputs the text presentation of the value stored in the given container into the given string...
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
virtual bool convert(UInt32 &, const ValueContainer &) const noexcept
Tries to convert the value into an integer.
virtual bool convert(Int8 &, const ValueContainer &) const noexcept
Tries to convert the value into an integer.
virtual const Char * typeName() const noexcept=0
The name of the type whose values are manipulated through the given converter.
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
Implements the value conversion for integer fields.
bool convert(UInt64 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
Field value traits used in conversion operations.
bool convert(Decimal &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a Decimal.
BitSet Result
Type of the conversion output.
#define ONIXS_ILINK3_FINAL
Implements the value conversion for integer fields.
Implements the value conversion for text fields.
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
bool convert(Char &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a character.
bool convert(Decimal &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a Decimal.
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
virtual bool convert(Timestamp &, const ValueContainer &) const
Tries to convert the value into a timestamp.
bool convert(Decimal &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into a Decimal.
#define ONIXS_ILINK3_EXPORTED_STRUCT
Implements the value conversion for integer fields.
bool convert(Int64 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
Implements the value conversion for month-year fields.
bool convert(UInt8 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
Implements the value conversion for integer fields.
static bool convert(Result &result, const ValueConverter &converter, const ValueContainer &container)
Tries to convert the given value using the given value converter and puts the result of the conversio...
Traits class used to identify a field value.
bool convert(UInt32 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
bool convert(Int8 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
The time point without the time-zone information.
#define ONIXS_ILINK3_MESSAGING_TAGBASED_NAMESPACE_BEGIN
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
Implements the value conversion for integer fields.
Abstraction gathering operations over a value of a particular type stored as a field in a message...
static Result convert(const ValueConverter &converter, const ValueContainer &container)
Converters the given value by using the specified value converter.
bool convert(Int8 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
#define ONIXS_ILINK3_NODISCARD
void toStr(std::string &str, const ValueContainer &container) const override
Outputs the text presentation of the value stored in the given container into the given string...
bool convert(Int64 &value, const ValueContainer &container) const noexceptoverride
Tries to convert the value into an integer.
#define ONIXS_ILINK3_NOTHROW
virtual bool convert(Decimal &, const ValueContainer &) const noexcept
Tries to convert the value into a Decimal.
StrRef toStr(Char *buf, size_t size, const ValueContainer &container) const override
const Char * typeName() const noexceptoverride
The name of the type whose values are manipulated through the given converter.
void convert(FixedPointDecimal< MantissaType, ExponentType > &res, const Decimal &number)
StrRef toStr(Char *buf, size_t size, const ValueContainer &container) const override