21 #include "OnixS/CME/DropCopy/Export.h" 27 namespace OnixS {
namespace CME {
namespace DropCopy {
31 class MessageOperator;
49 operator bool()
const;
53 operator std::string()
const;
76 bool toNumber (
Int32&)
const;
85 bool toNumber (
UInt32&)
const;
94 bool toNumber (
Int64&)
const;
103 bool toNumber (
UInt64&)
const;
112 bool toNumber (
Decimal&)
const;
142 bool toChar (
char&)
const;
148 bool toGroup (
Group&)
const;
152 void toString (std::string&)
const;
155 std::string toString()
const;
163 friend class MessageOperator;
171 inline FieldValueRef::operator std::string()
const 238 operator bool()
const;
261 char getChar(
Tag tag)
const;
363 Group getOptionalGroup (
Tag tag,
bool strict =
true)
const;
372 bool hasFlag (
Tag tag)
const;
377 bool contain (
Tag tag)
const;
400 friend class MessageOperator;
403 template<
typename Enumeration>
409 return (valueRef && valueRef.
toNumber(value)) ? static_cast <typename Enumeration::Enum>(value) : Enumeration::Undefined;
412 template<
typename Enumeration>
418 return (valueRef && valueRef.
toChar(value)) ? static_cast <typename Enumeration::Enum> (value) : Enumeration::Undefined;
459 const Message& message()
const;
462 friend class MessageOperator;
483 class ONIXS_CME_DROP_COPY_EXPORT
Group 493 operator bool()
const;
530 const Message& message()
const;
533 friend class MessageOperator;
547 template<
typename Entry>
560 return underlyingGroup_ ? underlyingGroup_.size() : 0;
572 Entry operator[] (
size_t index)
const 574 return Entry(underlyingGroup_[index]);
580 Entry
at (
size_t index)
const 583 return Entry(underlyingGroup_[index]);
585 throw std::out_of_range(
"Index");
590 : underlyingGroup_(group)
608 IncludeFieldTagNumber = 0x1,
611 IncludeFieldName = 0x2
668 std::string toString(
char delimiter = 0x1)
const;
675 void toString(std::string& str,
char delimiter = 0x1)
const;
681 friend class MessageOperator;
693 toString (str, delimiter);
721 return (bits_ >> bit) & 1;
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
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)