OnixS C++ CBOE CFE Binary Order Entry (BOE) Handler  1.12.0
API documentation
SessionMessages.In.h
Go to the documentation of this file.
1 /*
2 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3 *
4 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5 * and international copyright treaties.
6 *
7 * Access to and use of the software is governed by the terms of the applicable ONIXS Software
8 * Services Agreement (the Agreement) and Customer end user license agreements granting
9 * a non-assignable, non-transferable and non-exclusive license to use the software
10 * for it's own data processing purposes under the terms defined in the Agreement.
11 *
12 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13 * of this source code or associated reference material to any other location for further reproduction
14 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15 *
16 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17 * the terms of the Agreement is a violation of copyright law.
18 */
19 #pragma once
20 
23 
24 namespace OnixS {
25 namespace CboeCFE {
26 namespace Trading {
27 namespace BOE {
28 
29  ///
30  struct ONIXS_CBOE_CFE_BOE_API LoginResponse : public BinaryMessage
31  {
32  ///
34  {
35  return enumeration<LoginResponseStatus>(0);
36  }
37 
38  ///
39  StrRef text() const
40  {
41  return fixedStr<60>(1);
42  }
43 
44  ///
46  {
47  return ordinary<Binary4>(61);
48  }
49 
50  ///
52  {
53  return ordinary<Binary1>(65);
54  }
55 
56  struct Unit : public BinaryMessage
57  {
58  Binary1 number() const
59  {
60  return ordinary<Binary1>(0);
61  }
62 
63  Binary4 sequence() const
64  {
65  return ordinary<Binary4>(1);
66  }
67 
68  Unit(const void* data, MessageSize size)
69  : BinaryMessage(data, size)
70  {
71  }
72  };
73 
74  ///
75  Unit units(MessageSize index) const
76  {
77  assert(index < numberOfUnits());
78 
79  return submessage<Unit>(66 + 5 * index, 5);
80  }
81 
82  LoginResponse(const void* data, MessageSize size)
83  : BinaryMessage(data, size)
84  {
85  }
86  };
87 
88  ///
89  struct ONIXS_CBOE_CFE_BOE_API ReplayComplete : public BinaryMessage
90  {
91  ReplayComplete(const void* data, MessageSize size)
92  : BinaryMessage(data, size)
93  {
94  }
95  };
96 
97  ///
98  struct ONIXS_CBOE_CFE_BOE_API LogoutResponse : public BinaryMessage
99  {
101  {
102  return enumeration<LogoutResponseReason>(0);
103  }
104 
105  StrRef text() const
106  {
107  return fixedStr<60>(1);
108  }
109 
110  LogoutResponse(const void* data, MessageSize size)
111  : BinaryMessage(data, size)
112  {
113  }
114  };
115 
116  ///
117  struct ONIXS_CBOE_CFE_BOE_API ServerHeartbeat : public BinaryMessage
118  {
119  ServerHeartbeat(const void* data, MessageSize size)
120  : BinaryMessage(data, size)
121  {
122  }
123  };
124 
127 
129 
131 
133 }
134 }
135 }
136 }
LogoutResponseReason::Enum reason() const
Provides efficient way of accessing text-based field values.
Definition: String.h:45
ServerHeartbeat(const void *data, MessageSize size)
Encapsulates services for manipulating little endian encoded messages.
LoginResponse(const void *data, MessageSize size)
Unit(const void *data, MessageSize size)
Binary2 MessageSize
Aliases message length type.
#define ONIXS_CBOE_CFE_BOE_DECLARE_T0_STR_FUNCTIONS(Type)
Definition: ABI.h:38
LoginResponseStatus::Enum status() const
LogoutResponse(const void *data, MessageSize size)
ReplayComplete(const void *data, MessageSize size)