OnixS Eurex ETI Handler C++ library
9.19.0
API documentation
Home
Contents
Namespaces
Classes
Files
File List
include
OnixS
Eurex
Trading
HandlerStateListener.h
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
20
#pragma once
21
22
#include "OnixS/Eurex/Trading/Export.h"
23
24
#include <string>
25
26
namespace
OnixS
{
27
namespace
Eurex {
28
namespace
Trading {
29
30
/// Defines the state that the handler is in.
31
struct
ONIXS_EUREX_ETI_EXPORT
HandlerState
32
{
33
/// \copydoc HandlerState
34
enum
Enum
35
{
36
Disconnected
,
///< Disconnected.
37
Disconnecting
,
///< Disconnecting.
38
Connected
,
///< Connected.
39
Connecting
,
///< Connecting
40
};
41
};
42
43
/// Returns string representation of HandlerState value.
44
ONIXS_EUREX_ETI_EXPORT std::string
enumToString
(
HandlerState::Enum
);
45
46
/// Status Listener.
47
class
HandlerStateListener
48
{
49
public
:
50
/// Implement this member to get notifications about handler state change.
51
virtual
void
onStateChanged (
HandlerState::Enum
newState) = 0;
52
53
protected
:
54
/// Disables public <b>delete</b> operator in the interface class.
55
virtual
~HandlerStateListener
() {}
56
};
57
58
}
59
}
60
}
OnixS::Eurex::Trading::HandlerState::Disconnecting
Disconnecting.
Definition:
HandlerStateListener.h:37
OnixS::Eurex::Trading::HandlerState::Connected
Connected.
Definition:
HandlerStateListener.h:38
OnixS::Eurex::Trading::HandlerState::Disconnected
Disconnected.
Definition:
HandlerStateListener.h:36
OnixS::Eurex::Trading::HandlerState::Connecting
Connecting.
Definition:
HandlerStateListener.h:39
OnixS
Definition:
AdminListener.h:36
OnixS::Eurex::Trading::HandlerStateListener::~HandlerStateListener
virtual ~HandlerStateListener()
Disables public delete operator in the interface class.
Definition:
HandlerStateListener.h:55
OnixS::Eurex::Trading::HandlerState::Enum
Enum
Defines the state that the handler is in.
Definition:
HandlerStateListener.h:34
OnixS::Eurex::Trading::HandlerStateListener
Status Listener.
Definition:
HandlerStateListener.h:47
OnixS::Eurex::Trading::enumToString
std::string enumToString(ConnectionState::Enum)
Returns string representation of ConnectionState value.
OnixS::Eurex::Trading::HandlerState
Defines the state that the handler is in.
Definition:
HandlerStateListener.h:31