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_;
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_;
#define ONIXS_CMEMDHFIX_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
#define ONIXS_CMEMDHFIX_NAMESPACE_END
#define ONIXS_CMEMDH_NULLPTR
#define ONIXS_CMEMDH_EXPORTED
#define ONIXS_CMEMDH_OVERRIDE
Encapsulates operations over SBE-encoded repeating group entries.
Encapsulates operations over SBE-encoded repeating group entry instance.
Encapsulates services for manipulating SBE-encoded messages.
Represents the field in the FIX message.
Provides FIX-like access to the fields stored in a SBE-encoded repeating group.
Field field(Tag tag) const override
Returns field by its tag.
Field operator[](Tag tag) const
Returns field by its tag.
GroupEntry()
Initializes the instance which refers to nothing and thus represents a null instance.
GroupEntry & operator=(const GroupEntry &other)
Re-initializes as the copy of the other instance.
GroupEntry(const GroupEntrySource &binary, const GroupEntryAccessor &accessor)
Full-initialized instances are constructed through descendants.
GroupEntry(const GroupEntry &other)
Initializes the instance as the copy of the other one.
Implements a FIX repeating group over the SBE-encoded binary data.
Group()
Initializes the instance which refers to nothing and thus represent a null instance.
Group & operator=(const Group &other)
Re-initializes as the copy of the other instance.
Group(const GroupEntriesSource &binary, const GroupEntryAccessor &accessor)
Initializes the instance over the binary data.
GroupEntry operator[](Size index) const
Provides access to the group entry by its index in the group.
GroupEntriesSource::Size Size
Number of repeating group entries.
Group(const Group &other)
Initializes as the copy of the other instance.
Size size() const
Number of entries in the repeating group being referred by the given instance.
Implements FIX-like interface over the SBE-encoded message.
Field field(Tag tag) const override
Returns a field by its tag.
Message & operator=(const Message &other)
Re-initializes as the copy of the other instance.
Field operator[](Tag tag) const
Returns a field by its tag.
Message(const BinaryMessage &binary, const MessageAccessor &accessor)
Initializes the instance from the SBE-encoded message.
Group group(Tag tag) const
Accesses a repeating group by its tag.
StrRef type() const
FIX message type.
Message(const Message &other)
Initializes as the copy of the other instance.
void toFix(std::string &str) const
Builds the FIX (tag=value) representation.
Message()
Initializes the message which refers to nothing and thus being a null-instance.
Provides efficient way of accessing text-based values without copying content of the text being refer...
UInt32 Tag
The type whose values are used to locate fields in the FIX-like messages.
BinaryGroupEntry< MessageSize > GroupEntrySource
void toStr(std::string &str, const Message &message)
Serializes FIX message into tag=value format.
BinaryGroupEntries< GroupEntrySource, MessageSize, MessageSize, MessageSize > GroupEntriesSource
The abstraction of a source of FIX information which provides access to the FIX fields by their tags.
virtual Field field(Tag) const =0
Returns field by its tag.
Provides FIX-like access to the fields stored in a SBE-encoded repeating group.
virtual Field field(const GroupEntrySource &, Tag) const =0
Provides FIX-like access to the fields stored in a SBE-encoded repeating group.
Implements FIX-like services for the SBE-encoded message.
virtual Field field(const BinaryMessage &, Tag) const =0
Returns field value by its tag.
virtual void toFix(std::string &, const BinaryMessage &) const =0
Serializes the given message into the FIX (tag=value) presentation.
virtual Group group(const BinaryMessage &, Tag) const =0
Accesses a repeating group by its tag.
virtual StrRef type() const =0
FIX message type.