Skip to content

Commit 737df10

Browse files
committed
regenerated C++ sbeir stubs after aeron-io#222 integration
1 parent bd5c009 commit 737df10

File tree

8 files changed

+39
-39
lines changed

8 files changed

+39
-39
lines changed

main/cpp/uk_co_real_logic_sbe_ir_generated/ByteOrderCodec.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ByteOrderCodec
4040
case 255: return NULL_VALUE;
4141
}
4242

43-
throw std::runtime_error("unknown value for enum ByteOrderCodec [E111]");
43+
throw std::runtime_error("unknown value for enum ByteOrderCodec [E103]");
4444
}
4545
};
4646
}

main/cpp/uk_co_real_logic_sbe_ir_generated/FrameCodec.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
#include <sbe/sbe.hpp>
1818

19-
#include <uk_co_real_logic_sbe_ir_generated/VarDataEncoding.hpp>
2019
#include <uk_co_real_logic_sbe_ir_generated/ByteOrderCodec.hpp>
20+
#include <uk_co_real_logic_sbe_ir_generated/SignalCodec.hpp>
2121
#include <uk_co_real_logic_sbe_ir_generated/PresenceCodec.hpp>
2222
#include <uk_co_real_logic_sbe_ir_generated/PrimitiveTypeCodec.hpp>
23-
#include <uk_co_real_logic_sbe_ir_generated/SignalCodec.hpp>
23+
#include <uk_co_real_logic_sbe_ir_generated/VarDataEncoding.hpp>
2424

2525
using namespace sbe;
2626

@@ -107,7 +107,7 @@ class FrameCodec
107107
{
108108
if (SBE_BOUNDS_CHECK_EXPECT((position > bufferLength_), 0))
109109
{
110-
throw std::runtime_error("buffer too short [E101]");
110+
throw std::runtime_error("buffer too short [E100]");
111111
}
112112
position_ = position;
113113
}
@@ -157,17 +157,17 @@ class FrameCodec
157157

158158
static const sbe_int32_t irIdNullValue()
159159
{
160-
return INT_MIN; // -2147483648;
160+
return LONG_MIN;
161161
}
162162

163163
static const sbe_int32_t irIdMinValue()
164164
{
165-
return INT_MIN + 1; // -2147483647;
165+
return -2147483647;
166166
}
167167

168168
static const sbe_int32_t irIdMaxValue()
169169
{
170-
return INT_MAX; // 2147483647;
170+
return 2147483647;
171171
}
172172

173173
sbe_int32_t irId(void) const
@@ -211,17 +211,17 @@ class FrameCodec
211211

212212
static const sbe_int32_t irVersionNullValue()
213213
{
214-
return INT_MIN; // -2147483648;
214+
return LONG_MIN;
215215
}
216216

217217
static const sbe_int32_t irVersionMinValue()
218218
{
219-
return INT_MIN + 1; // -2147483647;
219+
return -2147483647;
220220
}
221221

222222
static const sbe_int32_t irVersionMaxValue()
223223
{
224-
return INT_MAX; // 2147483647;
224+
return 2147483647;
225225
}
226226

227227
sbe_int32_t irVersion(void) const
@@ -265,17 +265,17 @@ class FrameCodec
265265

266266
static const sbe_int32_t schemaVersionNullValue()
267267
{
268-
return INT_MIN; // -2147483648;
268+
return LONG_MIN;
269269
}
270270

271271
static const sbe_int32_t schemaVersionMinValue()
272272
{
273-
return INT_MIN + 1; // -2147483647;
273+
return -2147483647;
274274
}
275275

276276
static const sbe_int32_t schemaVersionMaxValue()
277277
{
278-
return INT_MAX; // 2147483647;
278+
return 2147483647;
279279
}
280280

281281
sbe_int32_t schemaVersion(void) const

main/cpp/uk_co_real_logic_sbe_ir_generated/MessageHeader.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MessageHeader
3232
{
3333
if (SBE_BOUNDS_CHECK_EXPECT((offset > (bufferLength - 8)), 0))
3434
{
35-
throw std::runtime_error("buffer too short for flyweight [E112]");
35+
throw std::runtime_error("buffer too short for flyweight [E107]");
3636
}
3737
buffer_ = buffer;
3838
offset_ = offset;
@@ -48,7 +48,7 @@ class MessageHeader
4848

4949
static const sbe_uint16_t blockLengthNullValue()
5050
{
51-
return (sbe_uint16_t)65535;
51+
return USHRT_MAX;
5252
}
5353

5454
static const sbe_uint16_t blockLengthMinValue()
@@ -74,7 +74,7 @@ class MessageHeader
7474

7575
static const sbe_uint16_t templateIdNullValue()
7676
{
77-
return (sbe_uint16_t)65535;
77+
return USHRT_MAX;
7878
}
7979

8080
static const sbe_uint16_t templateIdMinValue()
@@ -100,7 +100,7 @@ class MessageHeader
100100

101101
static const sbe_uint16_t schemaIdNullValue()
102102
{
103-
return (sbe_uint16_t)65535;
103+
return USHRT_MAX;
104104
}
105105

106106
static const sbe_uint16_t schemaIdMinValue()
@@ -126,7 +126,7 @@ class MessageHeader
126126

127127
static const sbe_uint16_t versionNullValue()
128128
{
129-
return (sbe_uint16_t)65535;
129+
return USHRT_MAX;
130130
}
131131

132132
static const sbe_uint16_t versionMinValue()

main/cpp/uk_co_real_logic_sbe_ir_generated/PresenceCodec.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class PresenceCodec
4242
case 255: return NULL_VALUE;
4343
}
4444

45-
throw std::runtime_error("unknown value for enum PresenceCodec [E113]");
45+
throw std::runtime_error("unknown value for enum PresenceCodec [E103]");
4646
}
4747
};
4848
}

main/cpp/uk_co_real_logic_sbe_ir_generated/PrimitiveTypeCodec.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class PrimitiveTypeCodec
6060
case 255: return NULL_VALUE;
6161
}
6262

63-
throw std::runtime_error("unknown value for enum PrimitiveTypeCodec [E114]");
63+
throw std::runtime_error("unknown value for enum PrimitiveTypeCodec [E103]");
6464
}
6565
};
6666
}

main/cpp/uk_co_real_logic_sbe_ir_generated/SignalCodec.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class SignalCodec
7070
case 255: return NULL_VALUE;
7171
}
7272

73-
throw std::runtime_error("unknown value for enum SignalCodec [E115]");
73+
throw std::runtime_error("unknown value for enum SignalCodec [E103]");
7474
}
7575
};
7676
}

main/cpp/uk_co_real_logic_sbe_ir_generated/TokenCodec.hpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
#include <sbe/sbe.hpp>
1818

19-
#include <uk_co_real_logic_sbe_ir_generated/VarDataEncoding.hpp>
2019
#include <uk_co_real_logic_sbe_ir_generated/ByteOrderCodec.hpp>
20+
#include <uk_co_real_logic_sbe_ir_generated/SignalCodec.hpp>
2121
#include <uk_co_real_logic_sbe_ir_generated/PresenceCodec.hpp>
2222
#include <uk_co_real_logic_sbe_ir_generated/PrimitiveTypeCodec.hpp>
23-
#include <uk_co_real_logic_sbe_ir_generated/SignalCodec.hpp>
23+
#include <uk_co_real_logic_sbe_ir_generated/VarDataEncoding.hpp>
2424

2525
using namespace sbe;
2626

@@ -107,7 +107,7 @@ class TokenCodec
107107
{
108108
if (SBE_BOUNDS_CHECK_EXPECT((position > bufferLength_), 0))
109109
{
110-
throw std::runtime_error("buffer too short [E102]");
110+
throw std::runtime_error("buffer too short [E100]");
111111
}
112112
position_ = position;
113113
}
@@ -157,17 +157,17 @@ class TokenCodec
157157

158158
static const sbe_int32_t tokenOffsetNullValue()
159159
{
160-
return INT_MIN; // -2147483648;
160+
return LONG_MIN;
161161
}
162162

163163
static const sbe_int32_t tokenOffsetMinValue()
164164
{
165-
return INT_MIN + 1; // -2147483647;
165+
return -2147483647;
166166
}
167167

168168
static const sbe_int32_t tokenOffsetMaxValue()
169169
{
170-
return INT_MAX; // 2147483647;
170+
return 2147483647;
171171
}
172172

173173
sbe_int32_t tokenOffset(void) const
@@ -211,17 +211,17 @@ class TokenCodec
211211

212212
static const sbe_int32_t tokenSizeNullValue()
213213
{
214-
return INT_MIN;// -2147483648;
214+
return LONG_MIN;
215215
}
216216

217217
static const sbe_int32_t tokenSizeMinValue()
218218
{
219-
return INT_MIN + 1; // -2147483647;
219+
return -2147483647;
220220
}
221221

222222
static const sbe_int32_t tokenSizeMaxValue()
223223
{
224-
return INT_MAX; // 2147483647;
224+
return 2147483647;
225225
}
226226

227227
sbe_int32_t tokenSize(void) const
@@ -265,17 +265,17 @@ class TokenCodec
265265

266266
static const sbe_int32_t fieldIdNullValue()
267267
{
268-
return INT_MIN; // -2147483648;
268+
return LONG_MIN;
269269
}
270270

271271
static const sbe_int32_t fieldIdMinValue()
272272
{
273-
return INT_MIN + 1; // -2147483647;
273+
return -2147483647;
274274
}
275275

276276
static const sbe_int32_t fieldIdMaxValue()
277277
{
278-
return INT_MAX; // 2147483647;
278+
return 2147483647;
279279
}
280280

281281
sbe_int32_t fieldId(void) const
@@ -319,17 +319,17 @@ class TokenCodec
319319

320320
static const sbe_int32_t tokenVersionNullValue()
321321
{
322-
return INT_MIN; // -2147483648;
322+
return LONG_MIN;
323323
}
324324

325325
static const sbe_int32_t tokenVersionMinValue()
326326
{
327-
return INT_MIN + 1; // -2147483647;
327+
return -2147483647;
328328
}
329329

330330
static const sbe_int32_t tokenVersionMaxValue()
331331
{
332-
return INT_MAX; // 2147483647;
332+
return 2147483647;
333333
}
334334

335335
sbe_int32_t tokenVersion(void) const

main/cpp/uk_co_real_logic_sbe_ir_generated/VarDataEncoding.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class VarDataEncoding
3232
{
3333
if (SBE_BOUNDS_CHECK_EXPECT((offset > (bufferLength - -1)), 0))
3434
{
35-
throw std::runtime_error("buffer too short for flyweight [E116]");
35+
throw std::runtime_error("buffer too short for flyweight [E107]");
3636
}
3737
buffer_ = buffer;
3838
offset_ = offset;
@@ -48,7 +48,7 @@ class VarDataEncoding
4848

4949
static const sbe_uint8_t lengthNullValue()
5050
{
51-
return (sbe_uint8_t)255;
51+
return UCHAR_MAX;
5252
}
5353

5454
static const sbe_uint8_t lengthMinValue()
@@ -74,7 +74,7 @@ class VarDataEncoding
7474

7575
static const sbe_uint8_t varDataNullValue()
7676
{
77-
return (sbe_uint8_t)255;
77+
return UCHAR_MAX;
7878
}
7979

8080
static const sbe_uint8_t varDataMinValue()

0 commit comments

Comments
 (0)