OnixS C++ SGX Titan OUCH Trading Handler  1.2.0
API documentation
MessageListener.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 
24 
25 
27 
28  ONIXS_SGXTITAN_OUCH_API_DECL(struct, OrderAccepted);
29  ONIXS_SGXTITAN_OUCH_API_DECL(struct, OrderRejected);
30  ONIXS_SGXTITAN_OUCH_API_DECL(struct, OrderReplaced);
31  ONIXS_SGXTITAN_OUCH_API_DECL(struct, OrderCancelled);
32  ONIXS_SGXTITAN_OUCH_API_DECL(struct, OrderExecuted);
33 
34  /// Incoming (CFE to TPH) message listener
35  class ONIXS_SGXTITAN_OUCH_API MessageListener
36  {
37  public:
38  /// Fires when OrderAccepted is received.
39  virtual void onOrderAccepted(const OrderAccepted&) {};
40 
41  /// Fires when OrderRejected is received.
42  virtual void onOrderRejected(const OrderRejected&) {};
43 
44  /// Fires when OrderReplaced is received.
45  virtual void onOrderReplaced(const OrderReplaced&) {};
46 
47  /// Fires when OrderCancelled is received.
48  virtual void onOrderCancelled(const OrderCancelled&) {};
49 
50  /// Fires when OrderExecuted is received.
51  virtual void onOrderExecuted(const OrderExecuted&) {};
52 
53  protected:
54  virtual ~MessageListener() {};
55  };
virtual void onOrderExecuted(const OrderExecuted &)
Fires when OrderExecuted is received.
Incoming (CFE to TPH) message listener.
virtual void onOrderReplaced(const OrderReplaced &)
Fires when OrderReplaced is received.
virtual void onOrderCancelled(const OrderCancelled &)
Fires when OrderCancelled is received.
virtual void onOrderRejected(const OrderRejected &)
Fires when OrderRejected is received.
#define ONIXS_SGXTITAN_OUCH_NAMESPACE_END
Definition: Bootstrap.h:31
#define ONIXS_SGXTITAN_OUCH_NAMESPACE_BEGIN
Definition: Bootstrap.h:27
#define ONIXS_SGXTITAN_OUCH_API_DECL(typeKind, typeName)
Definition: ABI.h:30
virtual void onOrderAccepted(const OrderAccepted &)
Fires when OrderAccepted is received.