libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
processing_rules_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
common {
20
21
template
<
class
MsgDetails,
class
Derived>
inline
std
::string
22
simulator_responses
<MsgDetails, Derived>::
to_string
()
const
noexcept
(
false
) {
23
std
::ostringstream os;
24
os
25
<<
"\n\tUsername: '"
<<
username
<<
"'"
26
"\n\tPassword: '"
<<
password
<<
"'"
27
"\n\tNew password: '"
<<
new_password
<<
"'"
28
"\n\tQuantity limit="
<<
quantity_limit
29
<<
"\n\tPrice="
<<
price
30
<<
"\n\tScaled price="
<<
scaled_price
31
<<
"\n\tCurrent sequence number="
<<
sequenceNumber
32
<<
"\n\tMessage details: "
;
33
MsgDetails::to_stream(os);
34
return
os.str();
35
}
36
37
template
<
class
MsgDetails,
class
Derived>
inline
std
::ostream &
38
operator<<(
std
::ostream &os,
simulator_responses
<MsgDetails, Derived>
const
&ec)
noexcept
(
false
) {
39
os<<ec.to_string();
40
return
os;
41
}
42
43
} } } }
isimud
exchanges
common
processing_rules_impl.hpp
Generated on Tue May 11 2021 17:22:16 for libjmmcg by
1.9.2