OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
SimpleOpenFramingHeader.h
Go to the documentation of this file.
1// Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2//
3// This software owned by Onix Solutions Limited [OnixS] and is
4// protected by copyright law and international copyright treaties.
5//
6// Access to and use of the software is governed by the terms of the applicable
7// OnixS Software Services Agreement (the Agreement) and Customer end user license
8// agreements granting a non-assignable, non-transferable and non-exclusive license
9// to use the software for it's own data processing purposes under the terms defined
10// in the Agreement.
11//
12// Except as otherwise granted within the terms of the Agreement, copying or
13// reproduction of any part of this source code or associated reference material
14// to any other location for further reproduction or redistribution, and any
15// amendments to this copyright notice, are expressly prohibited.
16//
17// Any reproduction or redistribution for sale or hiring of the Software not in
18// accordance with the terms of the Agreement is a violation of copyright law.
19//
20
21#pragma once
22
24
26
27constexpr UInt16 SbeEncodingType = 0xEB50;
28
30
31
33{
34public:
36 void setup(UInt16 sz) noexcept
37 {
38 size(sz);
39 encodingType = SbeEncodingType;
40 }
41
43 void size(UInt16 val) noexcept
44 {
45 msgSize = val;
46 }
47
49 UInt16 size() const noexcept
50 {
51 return msgSize;
52 }
53
55 UInt16 encoding() const noexcept
56 {
57 return encodingType;
58 }
59
60private:
61 UInt16 msgSize;
62 UInt16 encodingType;
63};
64
66
69void toStr(std::string&, const SimpleOpenFramingHeader&);
70
71inline
72std::string toStr(const SimpleOpenFramingHeader& header)
73{
74 std::string res;
75 toStr(res, header);
76 return res;
77}
78
#define ONIXS_ICEBOE_MESSAGING_NAMESPACE_BEGIN
Definition ABI.h:102
#define ONIXS_ICEBOE_MESSAGING_NAMESPACE_END
Definition ABI.h:106
#define ONIXS_ICEBOE_DATA_PACKING_END
Definition Compiler.h:168
#define ONIXS_ICEBOE_EXPORTED
Definition Compiler.h:153
#define ONIXS_ICEBOE_DATA_PACKING_BEGIN(alignment)
Definition Compiler.h:167
void setup(UInt16 sz) noexcept
Initializes the header.
std::string toStr(const FixedPointDecimal< Mantissa, Exponent > &)
Serializes a fixed-point decimal into a string.