94 value_.reset(data, size);
99ONIXS_CONFLATEDUDP_EXPORTED
113 toStr(str, tagValue);
132TagValues::const_iterator
198 operator bool()
const
202 ref_ != container_->end());
209 assert(
static_cast<bool>(*
this));
221 assert(
static_cast<bool>(*
this));
223 const Tag selection = ref_->tag();
271 TagValues::const_iterator
293 return tagValues_.begin();
300 return tagValues_.end();
365 container.
first(tag);
370 return result->value();
422 Tag tag, Number defaultValue = Number())
431 if (strValue.
empty())
433 number = defaultValue;
449ONIXS_CONFLATEDUDP_EXPORTED
463 toStr(str, container);
#define ONIXS_CONFLATEDUDP_LTWT_EXPORTED
#define ONIXS_CONFLATEDUDP_LTWT_CLASS
#define ONIXS_CONFLATEDUDPFIX_NAMESPACE_BEGIN
#define ONIXS_CONFLATEDUDPFIX_NAMESPACE_END
MultiContainer()
Initializes an empty instance.
~MultiContainer()
Finalizes the instance.
Iterator first(Key tag) const
SelectionIterator all(Key tag) const
void deserialize(const Char *fixStr, size_t fixSize)
TagValueSelectionIterator SelectionIterator
Iterator over items having the same tag value.
TagValues::const_iterator Iterator
Iterator over container items.
TagValue::Value Value
Alias for value type.
Iterator over tag-value pairs having the same tag value.
TagValueSelectionIterator(const TagValues &container, Tag selection)
TagValueSelectionIterator()
Initializes the interator pointing to nothing.
TagValueSelector(Tag tag)
Initializes functor with the given tag.
Represents a pair of a tag and a value.
void value(const Char *data, size_t size)
Updates value component.
Tag tag() const
Tag component of the pair.
StrRef Value
Alias for the value type.
void value(const Value &value)
Updates value component.
TagValue(Tag tag, const Value &value)
void tag(Tag tag)
Updates tag component.
const Value & value() const
Value component of the pair.
const Char * items() const
Read-only content.
size_t size() const
Number of chars.
bool empty() const
Indicates whether the referenced text is empty.
void toStr(std::string &str, const Message &message)
Serializes FIX message into tag=value format.
TagValues::const_iterator TagValueConstIterator
Constant iterator over the tag-value sequence.
std::vector< TagValue > TagValues
Sequence of tag-value pairs.
TagValues::iterator TagValueIterator
Iterator over the tag-value sequence.
MultiContainer::Value valueOrDefault(const MultiContainer &container, Tag tag, const MultiContainer::Value &defaultValue=MultiContainer::Value())
bool value(Number &number, const MultiContainer &container, Tag tag)
ONIXS_CONFLATEDUDP_EXPORTED bool fromStr(Decimal &, const Char *, size_t)
char Char
Character type alias.