CppTrader
1.0.4.0
C++ Trader
include
trader
matching
errors.h
Go to the documentation of this file.
1
9
#ifndef CPPTRADER_MATCHING_ERRORS_H
10
#define CPPTRADER_MATCHING_ERRORS_H
11
12
#include "utility/iostream.h"
13
14
#include <cstdint>
15
16
namespace
CppTrader
{
17
namespace
Matching {
18
20
enum class
ErrorCode
: uint8_t
21
{
22
OK
,
23
SYMBOL_DUPLICATE
,
24
SYMBOL_NOT_FOUND
,
25
ORDER_BOOK_DUPLICATE
,
26
ORDER_BOOK_NOT_FOUND
,
27
ORDER_DUPLICATE
,
28
ORDER_NOT_FOUND
,
29
ORDER_ID_INVALID
,
30
ORDER_TYPE_INVALID
,
31
ORDER_PARAMETER_INVALID
,
32
ORDER_QUANTITY_INVALID
33
};
34
35
template
<
class
TOutputStream>
36
TOutputStream&
operator<<
(TOutputStream& stream,
ErrorCode
error);
37
38
}
// namespace Matching
39
}
// namespace CppTrader
40
41
#include "
errors.inl
"
42
43
#endif
// CPPTRADER_MATCHING_ERRORS_H
errors.inl
Errors inline implementation.
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