OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
Repeating Groups

The OnixS::ICE::BOE::Messaging::SbeGroup class provides access to repeating group entries. The OnixS::ICE::BOE::Messaging::SbeGroupEntry class provides access to repeating group entry fields.

To get/set a field value of a repeating group entry, use the corresponding method of the strongly typed repeating group entry class.

Example

using namespace OnixS::ICE::BOE;
using IpRequest = MessageHolder<IPRequest> ;
IpRequest request;
const UInt8 GroupSize = 2;
// Set the group size and get the corresponding SbeGroup instance.
auto users = request->users(GroupSize);
// Set field values of the first repeating group entry.
users[0].userId("004");
// Set field values of the second repeating group entry.
users[1].userId("005");
// Get field values of the first repeating group entry.
const auto id = users[0].userId();
// Get field values of the second repeating group entry.
const auto id2 = users[1].userId();
// Iterate over all repeating group entries of the group.
for (auto iter = users.begin(); iter != users.end(); ++iter)
std::cout << "id=" << (*iter).userId() << std::endl;