CppTrader
1.0.4.0
C++ Trader
include
trader
matching
errors.inl
Go to the documentation of this file.
1
9
namespace
CppTrader
{
10
namespace
Matching {
11
12
template
<
class
TOutputStream>
13
inline
TOutputStream&
operator<<
(TOutputStream& stream,
ErrorCode
error)
14
{
15
switch
(error)
16
{
17
case
ErrorCode::OK
:
18
stream <<
"OK"
;
19
break
;
20
case
ErrorCode::SYMBOL_DUPLICATE
:
21
stream <<
"SYMBOL_DUPLICATE"
;
22
break
;
23
case
ErrorCode::SYMBOL_NOT_FOUND
:
24
stream <<
"SYMBOL_NOT_FOUND"
;
25
break
;
26
case
ErrorCode::ORDER_BOOK_DUPLICATE
:
27
stream <<
"ORDER_BOOK_DUPLICATE"
;
28
break
;
29
case
ErrorCode::ORDER_BOOK_NOT_FOUND
:
30
stream <<
"ORDER_BOOK_NOT_FOUND"
;
31
break
;
32
case
ErrorCode::ORDER_DUPLICATE
:
33
stream <<
"ORDER_DUPLICATE"
;
34
break
;
35
case
ErrorCode::ORDER_NOT_FOUND
:
36
stream <<
"ORDER_NOT_FOUND"
;
37
break
;
38
case
ErrorCode::ORDER_ID_INVALID
:
39
stream <<
"ORDER_ID_INVALID"
;
40
break
;
41
case
ErrorCode::ORDER_TYPE_INVALID
:
42
stream <<
"ORDER_TYPE_INVALID"
;
43
break
;
44
case
ErrorCode::ORDER_PARAMETER_INVALID
:
45
stream <<
"ORDER_PARAMETER_INVALID"
;
46
break
;
47
case
ErrorCode::ORDER_QUANTITY_INVALID
:
48
stream <<
"ORDER_QUANTITY_INVALID"
;
49
break
;
50
default
:
51
stream <<
"<unknown>"
;
52
break
;
53
}
54
return
stream;
55
}
56
57
}
// namespace Matching
58
}
// namespace CppTrader
CppTrader::Matching::ErrorCode
ErrorCode
Error code.
Definition:
errors.h:21
CppTrader::Matching::ErrorCode::ORDER_BOOK_NOT_FOUND
@ ORDER_BOOK_NOT_FOUND
CppTrader::Matching::ErrorCode::ORDER_DUPLICATE
@ ORDER_DUPLICATE
CppTrader::Matching::ErrorCode::SYMBOL_DUPLICATE
@ SYMBOL_DUPLICATE
CppTrader::Matching::ErrorCode::ORDER_QUANTITY_INVALID
@ ORDER_QUANTITY_INVALID
CppTrader::Matching::ErrorCode::ORDER_PARAMETER_INVALID
@ ORDER_PARAMETER_INVALID
CppTrader::Matching::ErrorCode::SYMBOL_NOT_FOUND
@ SYMBOL_NOT_FOUND
CppTrader::Matching::ErrorCode::ORDER_TYPE_INVALID
@ ORDER_TYPE_INVALID
CppTrader::Matching::ErrorCode::ORDER_ID_INVALID
@ ORDER_ID_INVALID
CppTrader::Matching::ErrorCode::OK
@ OK
CppTrader::Matching::ErrorCode::ORDER_BOOK_DUPLICATE
@ ORDER_BOOK_DUPLICATE
CppTrader::Matching::ErrorCode::ORDER_NOT_FOUND
@ ORDER_NOT_FOUND
CppTrader::Matching::operator<<
TOutputStream & operator<<(TOutputStream &stream, ErrorCode error)
Definition:
errors.inl:13
CppTrader
C++ Trader project definitions.
Definition:
errors.h:16
Generated by
1.9.1