OnixS C++ B3 BOE Binary Order Entry  1.2.0
API Documentation
SessionStateId.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*
4 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
5 *
6 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
7 * and international copyright treaties.
8 *
9 * Access to and use of the software is governed by the terms of the applicable OnixS Software
10 * Services Agreement (the Agreement) and Customer end user license agreements granting
11 * a non-assignable, non-transferable and non-exclusive license to use the software
12 * for it's own data processing purposes under the terms defined in the Agreement.
13 *
14 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
15 * of this source code or associated reference material to any other location for further reproduction
16 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
17 *
18 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
19 * the terms of the Agreement is a violation of copyright law.
20 */
21 
22 #include <OnixS/B3/BOE/ABI.h>
23 
24 #include <iosfwd>
25 #include <string>
26 
27 namespace OnixS {
28 namespace B3 {
29 namespace BOE {
30 
31 /// Session state ID.
33 {
34  enum Enum
35  {
36  /// Session is disconnected.
38 
39  /// Session is waiting for the `Negotiation Response` message from the exchange.
41 
42  /// Session is waiting for the `Establishment Acknowledgment` message from the exchange.
44 
45  /// Session is waiting for the confirming `Terminate` message from the exchange.
47 
48  /// Session is fully established.
50 
51  /// Session is trying to restore the telecommunication link.
53 
54  /// Session is waiting for the message retransmission from the exchange.
56  };
57 
58  /// \return the session state as a string.
59  ONIXS_B3_BOE_EXPORTED static const std::string& toString(Enum state);
60 };
61 
62 inline std::ostream & operator<<(std::ostream & o, SessionStateId::Enum state) {
63  return o << SessionStateId::toString(state);
64 }
65 
66 }
67 }
68 }
Session is trying to restore the telecommunication link.
Session is waiting for the Establishment Acknowledgment message from the exchange.
Session is waiting for the Negotiation Response message from the exchange.
std::ostream & operator<<(std::ostream &o, SessionStateId::Enum state)
#define ONIXS_B3_BOE_EXPORTED
Definition: Compiler.h:181
Session is waiting for the message retransmission from the exchange.
Session is fully established.
Definition: Defines.h:40
static const std::string & toString(Enum state)
Session is waiting for the confirming Terminate message from the exchange.