OnixS C++ B3 BOE Binary Order Entry  1.2.0
API Documentation
ThreadingModel.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 <string>
23 
24 #include <OnixS/B3/BOE/ABI.h>
25 
26 namespace OnixS {
27 namespace B3 {
28 namespace BOE {
29 
30  /// Threading model.
32  {
33  enum Enum
34  {
35  /// Each session has a sender thread and a receiving thread.
37 
38  /// Sessions share a thread pool.
40 
41  /// Session events are handled by rolling an event loop in a user thread.
43 
44  /// The default mode.
46  };
47 
48  /// \return a string that represents the given value.
49  ONIXS_B3_BOE_EXPORTED static const char * toString(Enum type) ONIXS_B3_BOE_NOTHROW;
50 
51  ONIXS_B3_BOE_EXPORTED static Enum parse(const std::string & text);
52  };
53 }
54 }
55 }
Session events are handled by rolling an event loop in a user thread.
#define ONIXS_B3_BOE_NOTHROW
Definition: Compiler.h:182
#define ONIXS_B3_BOE_EXPORTED
Definition: Compiler.h:181
Definition: Defines.h:40
static const char * toString(Enum type) noexcept
Each session has a sender thread and a receiving thread.
static Enum parse(const std::string &text)
Sessions share a thread pool.