OnixS C++ Eurex T7 Market and Reference Data Interface (EMDI, RDI, EOBI) Handlers  7.4.2
API documentation
Enumerations.cpp
Go to the documentation of this file.
1 /*
2 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3 *
4 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5 * and international copyright treaties.
6 *
7 * Access to and use of the software is governed by the terms of the applicable OnixS Software
8 * Services Agreement (the Agreement) and Customer end user license agreements granting
9 * a non-assignable, non-transferable and non-exclusive license to use the software
10 * for it's own data processing purposes under the terms defined in the Agreement.
11 *
12 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13 * of this source code or associated reference material to any other location for further reproduction
14 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15 *
16 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17 * the terms of the Agreement is a violation of copyright law.
18 */
19 
23 
24 #include <string>
25 
26 #include <util/String.h>
27 
28 namespace OnixS {
29 namespace Eurex {
30 namespace MarketData {
31 
32 
33 std::string enumToString (LogLevel::Enum value)
34 {
35  switch (value)
36  {
37  case LogLevel::Fatal: return "Fatal";
38  case LogLevel::Error: return "Error";
39  case LogLevel::Warning: return "Warning";
40  case LogLevel::Info: return "Info";
41  case LogLevel::Trace: return "Trace";
42  case LogLevel::Debug: return "Debug";
43  default: return OnixS::Util::toValueString ("value", value);
44  }
45 }
46 
47 std::string enumToString (ErrorCode::Enum value)
48 {
49  switch (value)
50  {
51  case ErrorCode::General: return "General";
52  default: return OnixS::Util::toValueString ("value", value);
53  }
54 }
55 
56 std::string enumToString (HandlerState::Enum value)
57 {
58  switch (value)
59  {
60  case HandlerState::Stopped: return "Stopped";
61  case HandlerState::Stopping: return "Stopping";
62  case HandlerState::Started: return "Started";
63  case HandlerState::Starting: return "Starting";
64  default: return OnixS::Util::toValueString ("value", value);
65  }
66 }
67 
68 }}}
69 
The intermediate state when the Handler is not Started but not Stopped.
ONIXS_EUREX_EMDI_API std::string enumToString(HandlerState::Enum)
Returns string representation of HandlerState value.
Definition: Defines.h:30
Used for tracing, usually including functions&#39; names and args.
Definition: LogSettings.h:42
The intermediate state when the Handler is not Stopped but not Started.
Fatal error, cannot continue.
Definition: LogSettings.h:38
Enum
Known (selected) error codes.
Definition: ErrorListener.h:36
Enum
Defines the state that the handler is in.
System error, but we can go on.
Definition: LogSettings.h:39
Identifiers errors of generic nature.
Definition: ErrorListener.h:38
User or logic error, just say about it.
Definition: LogSettings.h:40