OnixS ICE iMpact Multicast Price Feed Handler C++ library 8.18.0
API documentation
Loading...
Searching...
No Matches
MulticastChannelGroups.h
Go to the documentation of this file.
1
6/*
7 * Copyright (c) Onix Solutions Limited. All rights reserved.
8 *
9 * This software owned by Onix Solutions Limited and is protected by copyright law
10 * and international copyright treaties.
11 *
12 * Access to and use of the software is governed by the terms of the applicable ONIXS Software
13 * Services Agreement (the Agreement) and Customer end user license agreements granting
14 * a non-assignable, non-transferable and non-exclusive license to use the software
15 * for it's own data processing purposes under the terms defined in the Agreement.
16 *
17 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
18 * of this source code or associated reference material to any other location for further reproduction
19 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
20 *
21 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
22 * the terms of the Agreement is a violation of copyright law.
23 */
24
25#pragma once
26
27// Project specific headers
28#include "../Enumerations.h"
29#include "../Export.h"
30#include "../Types.h"
31
32// Standard headers
33#include <iosfwd>
34#include <string>
35#include <vector>
36
37namespace OnixS { namespace ICE { namespace iMpact { namespace MarketData {
38
40struct ONIXS_ICEMDH_EXPORT MulticastChannelGroups
41{
43 enum
44 {
46 };
47
50 {
53 short id;
54
57 std::string name;
58
61
65
69
73
77
81
85
89
93
96
98 typedef std::vector<MarketType> MarketTypes;
99
102
105
107 std::string toString() const;
108 };
109
111 typedef std::vector<ChannelGroup> ChannelGroups;
112
115
118 {
121
124
127 std::string marketTypeName;
128
131
133 std::string toString() const;
134 };
135
137 typedef std::vector<MarketTypeMapping> MarketTypeMappings;
138
141
144
146 MulticastChannelGroups(const char* data, std::size_t dataSize);
147
149 void deserialize(const char* data, std::size_t dataSize);
150
152 void reset();
153
155 std::string toString() const;
156};
157
159ONIXS_ICEMDH_EXPORT std::ostream& operator<<(std::ostream&, const MulticastChannelGroups&);
160
161}}}} // namespace OnixS::ICE::iMpact::MarketData
Declare ICE iMpact enumerations.
short MarketType
Alias for market types.
Definition Types.h:36
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
std::string toString() const
Returns string representation.
std::vector< MarketType > MarketTypes
Alias for collection of MarketTypes.
MulticastChannelGroupType::Enum type
Indicates the type of this channel group.
std::string toString() const
Returns string representation.
MarketType marketTypeId
The ID for this Market Type as found in Appendix C.
short marketTypeNameLength
The length of the market type name to follow.
This class represents the Multicast Channel Groups Message.
std::string toString() const
Returns string representation.
std::vector< ChannelGroup > ChannelGroups
Alias for collection of ChannelGroups.
ChannelGroups channelGroups
Collection of ChannelGroups.
void deserialize(const char *data, std::size_t dataSize)
Deserialize from raw data.
void reset()
Reset all fields to default values.
std::vector< MarketTypeMapping > MarketTypeMappings
Alias for collection of MarketTypeMappings.
MarketTypeMappings marketTypeMappings
Collection of MarketTypeMappings.
MulticastChannelGroups(const char *data, std::size_t dataSize)
Initialize from raw message data.