OnixS C++ CME MDP Conflated TCP Handler
1.3.6
API Documentation
Home
Contents
Namespaces
Classes
Files
File List
File Members
OnixS
CME
ConflatedTCP
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/CME/ConflatedTCP/ABI.h
>
25
26
namespace
OnixS
{
27
namespace
CME {
28
namespace
ConflatedTCP {
29
30
/// Threading model.
31
struct
ThreadingModel
32
{
33
enum
Enum
34
{
35
/// The default mode.
36
Default
= 0,
37
38
/// Each session has a sender thread and a receiving thread.
39
DedicatedThreads
= 1,
40
41
/// Sessions share a thread pool.
42
ThreadPool
= 2
43
};
44
45
/// \return a string that represents the given value.
46
ONIXS_CONFLATEDTCP_EXPORTED
static
const
char
*
toString
(
Enum
type);
47
48
ONIXS_CONFLATEDTCP_EXPORTED
static
Enum
parse
(
const
std::string & text);
49
};
50
}
51
}
52
}
OnixS::CME::ConflatedTCP::ThreadingModel::DedicatedThreads
Each session has a sender thread and a receiving thread.
Definition:
ThreadingModel.h:39
ONIXS_CONFLATEDTCP_EXPORTED
#define ONIXS_CONFLATEDTCP_EXPORTED
Definition:
Compiler.h:175
OnixS::CME::ConflatedTCP::ThreadingModel::Default
The default mode.
Definition:
ThreadingModel.h:36
OnixS::CME::ConflatedTCP::ThreadingModel
Threading model.
Definition:
ThreadingModel.h:31
ABI.h
OnixS
Definition:
Defines.h:40
OnixS::CME::ConflatedTCP::ThreadingModel::ThreadPool
Sessions share a thread pool.
Definition:
ThreadingModel.h:42
OnixS::CME::ConflatedTCP::ThreadingModel::Enum
Enum
Definition:
ThreadingModel.h:33
OnixS::CME::ConflatedTCP::ThreadingModel::toString
static const char * toString(Enum type)
OnixS::CME::ConflatedTCP::ThreadingModel::parse
static Enum parse(const std::string &text)