OpenMAMA
MamdaErrorListener.h
Go to the documentation of this file.
1 /* $Id$
2  *
3  * OpenMAMA: The open middleware agnostic messaging API
4  * Copyright (C) 2011 NYSE Technologies, Inc.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 
22 #ifndef MamdaErrorListenerH
23 #define MamdaErrorListenerH
24 
25 #include <mamda/MamdaConfig.h>
26 
27 namespace Wombat
28 {
29 
30  class MamdaSubscription;
31  class MamdaBasicSubscription;
32 
41  {
45  };
46 
47 
53  {
61  };
62 
67  class MAMDAExpDLL MamdaErrorListener
68  {
69  public:
74  virtual void onError (MamdaSubscription* subscription,
75  MamdaErrorSeverity severity,
76  MamdaErrorCode errorCode,
77  const char* errorStr) = 0;
78 
79  virtual ~MamdaErrorListener() {};
80 
81  };
82 
87  class MAMDAExpDLL MamdaBasicErrorListener
88  {
89  public:
94  virtual void onError (MamdaBasicSubscription* subscription,
95  MamdaErrorSeverity severity,
96  MamdaErrorCode errorCode,
97  const char* errorStr) = 0;
98 
99  virtual ~MamdaBasicErrorListener() {};
100  };
101 
102 } // namespace
103 
104 #endif // MamdaErrorListenerH
Definition: MamdaErrorListener.h:57
Definition: MamdaErrorListener.h:60
MamdaErrorListener defines an interface for handling error notifications for a MamdaSubscription.
Definition: MamdaErrorListener.h:67
Definition: MamdaErrorListener.h:44
MamdaBasicErrorListener defines an interface for handling error notifications for a MamdaBasicSubscri...
Definition: MamdaErrorListener.h:87
Definition: MamdaErrorListener.h:54
Definition: MamdaErrorListener.h:59
MamdaOrderImbalanceUpdate is an interface that provides access to order imbalance related fields...
Definition: MamdaAuctionFields.h:29
A MamdaBasicSubscription is used to register interest in a particular symbol.
Definition: MamdaBasicSubscription.h:50
Definition: MamdaErrorListener.h:58
Definition: MamdaErrorListener.h:56
Definition: MamdaErrorListener.h:43
Definition: MamdaErrorListener.h:55
virtual ~MamdaBasicErrorListener()
Definition: MamdaErrorListener.h:99
A MamdaSubscription is used to register interest in a particular symbol and source.
Definition: MamdaSubscription.h:54
virtual ~MamdaErrorListener()
Definition: MamdaErrorListener.h:79
MamdaErrorCode
MAMDA error codes are currently a subset of the MAMA MsgStatus codes.
Definition: MamdaErrorListener.h:52
MamdaErrorSeverity
MAMDA error severities are intended to provide a hint to the application as to the severity of an err...
Definition: MamdaErrorListener.h:40
Definition: MamdaErrorListener.h:42


© 2012 Linux Foundation