libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
messages.cpp
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 #include "messages.hpp"
20 
21 namespace isimud { namespace ISIMUD_VER_NAMESPACE { namespace exchanges { namespace MIT { namespace BIT {
22 
23 std::ostream &
24 MsgTypes::to_stream(std::ostream &os) noexcept(false) {
25  os<<"MIC: ";
26  exchanges::common::mic_codes::to_stream<MIC_code>(os);
27  os
28  <<", version: '"<<ISIMUD_MIT_BIT_EXCHANGE_VERSION<<"'"
29  <<", minimum size of client-to-exchange message="<<min_size_client_to_exchange_msg
30  <<", maximum size of client-to-exchange message="<<max_size_client_to_exchange_msg
31  <<", minimum size of exchange-to-client message="<<min_size_exchange_to_client_msg
32  <<", maximum size of exchange-to-client message="<<max_size_exchange_to_client_msg
33  <<", minimum message size="<<min_msg_size
34  <<", maximum message size="<<max_msg_size
35  <<", header size="<<header_t_size
36  <<", implied decimal places="<<implied_decimal_places;
37  return os;
38 }
39 
40 } } } } }