70 , accessor_(&accessor)
86 : binary_(other.binary_)
87 , accessor_(other.accessor_)
103 return this->field(tag);
113 return accessor_->
field(binary_, tag);
120 binary_ = other.binary_;
121 accessor_ = other.accessor_;
140 , accessor_(&accessor)
157 : binary_(other.binary_)
158 , accessor_(other.accessor_)
164 operator bool()
const 173 return binary_.size();
182 return GroupEntry(binary_[index], *accessor_);
188 binary_ = other.binary_;
189 accessor_ = other.accessor_;
200 virtual StrRef type()
const = 0;
224 , accessor_(&accessor)
239 : binary_(other.binary_)
240 , accessor_(other.accessor_)
245 operator bool()
const 255 return accessor_->
type();
269 return this->field(tag);
285 return accessor_->
field(binary_, tag);
296 return accessor_->
group(binary_, tag);
304 accessor_->
toFix(str, binary_);
310 binary_ = other.binary_;
311 accessor_ = other.accessor_;
Group(const GroupEntriesSource &binary, const GroupEntryAccessor &accessor)
Initializes the instance over the binary data.
GroupEntry(const GroupEntrySource &binary, const GroupEntryAccessor &accessor)
Full-initialized instances are constructed through descendants.
Field field(Tag tag) const override
Returns field by its tag.
#define ONIXS_CMEMDH_OVERRIDE
virtual Field field(const BinaryMessage &, Tag) const =0
Returns field value by its tag.
#define ONIXS_CMEMDH_NULLPTR
#define ONIXS_CMEMDHFIX_NAMESPACE_BEGIN
void toFix(std::string &str) const
Builds the FIX (tag=value) representation.
Implements FIX-like services for the SBE-encoded message.
StrRef type() const
FIX message type.
virtual Group group(const BinaryMessage &, Tag) const =0
Accesses a repeating group by its tag.
void toFix(std::string &str, AggressorFlag::Enum value)
Serializes object into FIX presentation.
GroupEntry()
Initializes the instance which refers to nothing and thus represents a null instance.
Group & operator=(const Group &other)
Re-initializes as the copy of the other instance.
#define ONIXS_CMEMDH_LTWT
GroupEntry operator[](Size index) const
Provides access to the group entry by its index in the group.
virtual Field field(const GroupEntrySource &, Tag) const =0
Provides FIX-like access to the fields stored in a SBE-encoded repeating group.
Group(const Group &other)
Initializes as the copy of the other instance.
Message(const BinaryMessage &binary, const MessageAccessor &accessor)
Initializes the instance from the SBE-encoded message.
Field operator[](Tag tag) const
Returns field by its tag.
#define ONIXS_CMEMDHFIX_NAMESPACE_END
The abstraction of a source of FIX information which provides access to the FIX fields by their tags...
virtual void toFix(std::string &, const BinaryMessage &) const =0
Serializes the given message into the FIX (tag=value) presentation.
Provides efficient way of accessing text-based values without copying content of the text being refer...
GroupEntriesSource::Size Size
Number of repeating group entries.
Implements a FIX repeating group over the SBE-encoded binary data.
Message(const Message &other)
Initializes as the copy of the other instance.
Encapsulates services for manipulating SBE-encoded messages.
Provides FIX-like access to the fields stored in a SBE-encoded repeating group.
#define ONIXS_CMEMDH_EXPORTED
std::string toStr(const Message &message)
Serializes FIX message into tag=value format.
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
Implements FIX-like interface over the SBE-encoded message.
Field field(Tag tag) const override
Returns a field by its tag.
UInt32 Tag
The type whose values are used to locate fields in the FIX-like messages.
Field operator[](Tag tag) const
Returns a field by its tag.
GroupEntry(const GroupEntry &other)
Initializes the instance as the copy of the other one.
Provides FIX-like access to the fields stored in a SBE-encoded repeating group.
GroupEntry & operator=(const GroupEntry &other)
Re-initializes as the copy of the other instance.
Message()
Initializes the message which refers to nothing and thus being a null-instance.
Group group(Tag tag) const
Accesses a repeating group by its tag.
Group()
Initializes the instance which refers to nothing and thus represent a null instance.
Size size() const
Number of entries in the repeating group being referred by the given instance.
MessageSize Size
Number of entries in the collection.
BinaryGroupEntries< GroupEntrySource, MessageSize, MessageSize, MessageSize > GroupEntriesSource
BinaryGroupEntry< MessageSize > GroupEntrySource
Message & operator=(const Message &other)
Re-initializes as the copy of the other instance.
Represents the field in the FIX message.
virtual StrRef type() const =0
FIX message type.