libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
messages_impl.hpp
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright © 2015 by J.M.McGuiness, isimud@hussar.me.uk
3 **
4 ** This library is free software; you can redistribute it and/or
5 ** modify it under the terms of the GNU Lesser General Public
6 ** License as published by the Free Software Foundation; either
7 ** version 2.1 of the License, or (at your option) any later version.
8 **
9 ** This library is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 ** Lesser General Public License for more details.
13 **
14 ** You should have received a copy of the GNU Lesser General Public
15 ** License along with this library; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18 
19 namespace isimud { namespace ISIMUD_VER_NAMESPACE { namespace exchanges { namespace BATSBOE { namespace EU {
20 
21 inline
22 TradeCaptureReport::TradeCaptureReport(common::SeqNum_t seqNumber) noexcept(true)
24  length_+=bitfields.size();
25 }
26 
27 inline
28 TradeCaptureReportAck::TradeCaptureReportAck(common::SeqNum_t seqNumber) noexcept(true)
29 : Header_t(sizeof(TradeCaptureReportAck)-sizeof(bitfields_to_type_map), seqNumber), transactionTime(std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::system_clock::now().time_since_epoch()).count()) {
30  length_+=bitfields.size();
31 }
32 
33 inline
34 TradeCaptureReportReject::TradeCaptureReportReject(common::SeqNum_t seqNumber) noexcept(true)
35 : Header_t(sizeof(TradeCaptureReportReject)-sizeof(bitfields_to_type_map), seqNumber), transactionTime(std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::system_clock::now().time_since_epoch()).count()) {
36  length_+=bitfields.size();
37 }
38 
39 inline
40 TradeCaptureConfirm::TradeCaptureConfirm(common::SeqNum_t seqNumber) noexcept(true)
41 : Header_t(sizeof(TradeCaptureConfirm)-sizeof(bitfields_to_type_map), seqNumber), transactionTime(std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::system_clock::now().time_since_epoch()).count()) {
42  length_+=bitfields.size();
43 }
44 
45 inline
46 TradeCaptureDecline::TradeCaptureDecline(common::SeqNum_t seqNumber) noexcept(true)
47 : Header_t(sizeof(TradeCaptureDecline)-sizeof(bitfields_to_type_map), seqNumber), transactionTime(std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::system_clock::now().time_since_epoch()).count()) {
48  length_+=bitfields.size();
49 }
50 
51 } } } } }