43 return (converter_ != &NullConverter::self());
59 return this->toString(buffer, bufSize) == r;
90 return convert(*converter_, value_);
100 return converter_->convert(str, value_);
111 return converter_->convert(value, value_);
122 return converter_->convert(value, value_);
133 return converter_->convert(value, value_);
144 return converter_->convert(value, value_);
155 return converter_->convert(value, value_);
166 return converter_->convert(value, value_);
177 return converter_->convert(value, value_);
188 return converter_->convert(value, value_);
199 return converter_->convert(value, value_);
210 return converter_->convert(value, value_);
221 return converter_->convert(value, value_);
232 return converter_->convert(value, value_);
239 template<
class Enumeration>
242 typename Enumeration::Base integral;
246 if (converter_->convert(integral,value_))
248 value =
static_cast<typename Enumeration::Enum
>(integral);
260 template <
class BitSet>
263 typename BitSet::Bits bits;
267 if (converter_->convert(bits, value_))
269 value = BitSet(bits);
292 converter_->toStr(str, value_);
301 return converter_->toStr(buf, size, value_);
308 , converter_(&converter)
331 return ref ==
StrRef(str);
336 return ref !=
StrRef(str);
341 return ref ==
StrRef(str);
346 return ref !=
StrRef(str);
351 return ref ==
StrRef(str);
356 return ref !=
StrRef(str);
361 return ref ==
StrRef(str);
366 return ref !=
StrRef(str);
#define ONIXS_ILINK3_CONST_OR_CONSTEXPR
bool toChar(Char &value) const
Tries to cast the stored value into a value of the Char type.
std::ostream & operator<<(std::ostream &stream, const Field &field)
Serializes into the given stream.
bool toNumber(UInt8 &value) const
Tries to cast the stored value into a value of the UInt8 type.
std::string toString() const
std::basic_string_view< Char > StrRef
bool toBitSet(BitSet &value) const
Tries to cast the stored value into a value of the type representing a BitSet.
char Char
Character type alias.
A real number with a floating exponent.
#define ONIXS_ILINK3_EXPLICIT
bool toNumber(UInt32 &value) const
Tries to cast the stored value into a value of the UInt32 type.
#define ONIXS_ILINK3_MESSAGING_TAGBASED_NAMESPACE_END
bool toNumber(UInt16 &value) const
Tries to cast the stored value into a value of the UInt16 type.
ValueContainer & value() noexcept
Exposes the value storage for further value manipulations.
StrRef toString(Char *buf, size_t size) const
ValueConversion< Value >::Result cast() const
Casts the stored value to the requested type.
bool operator!=(const char *str, const Field &ref)
Traits::Result Result
Conversion output type.
Implements value conversion operations through value conversion traits.
#define ONIXS_ILINK3_LTWT_CLASS
A field in a tag-based message.
bool toNumber(Decimal &value) const
Tries to cast the stored value into a value of the Decimal type.
bool toNumber(Int16 &value) const
Tries to cast the stored value into a value of the Int16 type.
bool toTimestamp(Timestamp &value) const
Tries to cast the stored value into a value of the Timestamp type.
bool toNumber(Int32 &value) const
Tries to cast the stored value into a value of the Int32 type.
void toString(std::string &str) const
Outputs the text representation into the given string.
bool toStringRef(StrRef &str) const
Tries to cast the stored value into a value of the StrRef type.
bool toEnumeration(typename Enumeration::Enum &value) const
Tries to cast the stored value into a value of the given Enumeration type.
Field(const ValueConverter &converter) noexcept
Initializes the field.
bool toNumber(UInt64 &value) const
Tries to cast the stored value into a value of the UInt64 type.
bool toMaturityMonthYear(MaturityMonthYear &value) const
Tries to cast the stored value into a value of the MaturityMonthYear type.
bool operator==(const char *str, const Field &ref)
bool toNumber(Int8 &value) const
Tries to cast the stored value into a value of the Int8 type.
const ValueContainer & value() const noexcept
Exposes the value storage for further value manipulations.
The time point without the time-zone information.
bool toNumber(Int64 &value) const
Tries to cast the stored value into a value of the Int64 type.
#define ONIXS_ILINK3_MESSAGING_TAGBASED_NAMESPACE_BEGIN
Abstraction gathering operations over a value of a particular type stored as a field in a message...
#define ONIXS_ILINK3_NODISCARD
Field()
Initializes a field with no value.
#define ONIXS_ILINK3_NOTHROW
void convert(FixedPointDecimal< MantissaType, ExponentType > &res, const Decimal &number)