22 #include "OnixS/CME/DropCopy/Export.h" 28 namespace OnixS {
namespace CME {
namespace DropCopy {
32 class MessageOperator;
50 operator bool()
const;
54 operator std::string()
const;
77 bool toNumber(
Int32&)
const;
86 bool toNumber(
UInt32&)
const;
95 bool toNumber(
Int64&)
const;
104 bool toNumber(
UInt64&)
const;
143 bool toChar(
char&)
const;
149 bool toGroup(
Group&)
const;
153 void toString(std::string&)
const;
156 std::string toString()
const;
164 friend class MessageOperator;
172 inline FieldValueRef::operator std::string()
const 239 operator bool()
const;
262 char getChar(
Tag tag)
const;
364 Group getOptionalGroup(
Tag tag,
bool strict =
true)
const;
373 bool hasFlag(
Tag tag)
const;
378 bool contain(
Tag tag)
const;
401 friend class MessageOperator;
404 template <
typename Enumeration>
410 return (valueRef && valueRef.
toNumber(value)) ? static_cast<typename Enumeration::Enum>(value)
411 : Enumeration::Undefined;
414 template <
typename Enumeration>
420 return (valueRef && valueRef.
toChar(value)) ? static_cast<typename Enumeration::Enum>(value)
421 : Enumeration::Undefined;
462 const Message& message()
const;
465 friend class MessageOperator;
486 class ONIXS_CME_DROP_COPY_EXPORT
Group 496 operator bool()
const;
533 const Message& message()
const;
536 friend class MessageOperator;
550 template <
typename Entry>
563 return underlyingGroup_ ? underlyingGroup_.size() : 0;
577 return Entry(underlyingGroup_[index]);
583 Entry
at(
size_t index)
const 587 return Entry(underlyingGroup_[index]);
590 throw std::out_of_range(
"Index");
595 : underlyingGroup_(group)
612 IncludeFieldTagNumber = 0x1,
615 IncludeFieldName = 0x2
672 std::string toString(
char delimiter = 0x1)
const;
679 void toString(std::string& str,
char delimiter = 0x1)
const;
685 friend class MessageOperator;
697 toString(str, delimiter);
723 return (bits_ >> bit) & 1;
745 ONIXS_CME_DROP_COPY_EXPORT std::ostream&
bool toChar(char &) const
TypedGroup()
Initializes set with no entries.
Provides efficient way of accessing text-based FIX field values.
BitmapField(const FieldSet &msg, Tag tag)
Initializes bitmap field instance from FIX field set.
size_t size() const
Return number of instances in repeating group.
Entry at(size_t index) const
const Message & message() const
unsigned int SequenceNumber
Alias for message/packet sequence number.
std::string toString() const
Return string presentation of field value.
const Message & message() const
bool operator==(const FieldValueRef &ref, const std::string &str)
bool operator!=(const FieldValueRef &ref, const std::string &str)
Contains flags which affect FIX message textual presentation.
unsigned long long UInt64
static Timestamp fromUnixTimestamp(UInt64 sinceEpoch, SinceEpochUnit unit)
bool empty() const
Indicates whether set has an entries.
Simple wrapper for bitmap field.
FieldValueRef get(Tag tag) const
Enumeration::Enum getCharEnumFieldValue(const FieldSet &fieldSet, Tag tag)
Enum
Flags which affect FIX message textual presentation.
std::string toString(char delimiter=0x1) const
TypedGroup(const Group &group)
unsigned int Tag
FIX message field identifying/indexing type.
bool getDate(const FieldSet &fieldSet, Tag tag, Timestamp &date)
bool state(BaseType bit) const
Entry operator[](size_t index) const
const Message * container_
unsigned MessageStringingFlags
Collection of message stringing flags.
BitmapField(BaseType bits=0)
Initializes bitmap field instance with explicit value.
bool toNumber(Int32 &) const
Represents timestamp without time-zone information.
Decimal type for better precision.
Enumeration::Enum getIntEnumFieldValue(const FieldSet &fieldSet, Tag tag)