OpenMAMA
MamdaCurrencyListener.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 MamdaCurrencyListenerH
23 #define MamdaCurrencyListenerH
24 
25 #include <mamda/MamdaConfig.h>
27 #include <mamda/MamdaMsgListener.h>
30 
31 namespace Wombat
32 {
33 
34  class MamdaCurrencyHandler;
35 
50  class MAMDAExpDLL MamdaCurrencyListener
51  : public MamdaMsgListener
52  , public MamdaCurrencyRecap
53  , public MamdaCurrencyUpdate
54  {
55  public:
57  virtual ~MamdaCurrencyListener ();
58 
59  void addHandler (MamdaCurrencyHandler* handler);
60 
61  // Inherited from MamdaBasicRecap
62  const char* getSymbol() const;
63  const char* getPartId() const;
64  const MamaDateTime& getSrcTime() const;
65  const MamaDateTime& getActivityTime() const;
66  const MamaDateTime& getLineTime() const;
67  const MamaDateTime& getSendTime() const;
68  mama_seqnum_t getEventSeqNum() const;
69  const MamaDateTime& getEventTime() const;
70  const MamaMsgQual& getMsgQual() const;
71  bool isInitialised() const;
72 
73  MamdaFieldState getSymbolFieldState() const;
74  MamdaFieldState getPartIdFieldState() const;
75  MamdaFieldState getSrcTimeFieldState() const;
76  MamdaFieldState getActivityTimeFieldState() const;
77  MamdaFieldState getLineTimeFieldState() const;
78  MamdaFieldState getSendTimeFieldState() const;
79  MamdaFieldState getEventSeqNumFieldState() const;
80  MamdaFieldState getEventTimeFieldState() const;
81  MamdaFieldState getMsgQualFieldState() const;
82 
83  // Inherited from MamdaCurrency
84  const MamaPrice& getBidPrice() const;
85  const MamaPrice& getAskPrice() const;
86 
87  MamdaFieldState getBidPriceFieldState() const;
88  MamdaFieldState getAskPriceFieldState() const;
89 
94  virtual void onMsg (MamdaSubscription* subscription,
95  const MamaMsg& msg,
96  short msgType);
97 
98  struct MamdaCurrencyListenerImpl;
99  private:
100  MamdaCurrencyListenerImpl& mImpl;
101 
102  };
103 
104 
105 } // namespace
106 
107 #endif // MamdaCurrencyListenerH
108 
109 
110 
111 
112 
MamdaCurrencyUpdate is an interface that provides access to the currency related fields.
Definition: MamdaCurrencyUpdate.h:37
MamdaCurrencyRecap is an interface that provides access to the currency related fields.
Definition: MamdaCurrencyRecap.h:37
MamdaOrderImbalanceUpdate is an interface that provides access to order imbalance related fields...
Definition: MamdaAuctionFields.h:29
MamdaCurrencyListener is a class that specializes in handling currency data, Developers provide their...
Definition: MamdaCurrencyListener.h:50
MamdaCurrencyHandler is an interface for applications that want to have an easy way to access currenc...
Definition: MamdaCurrencyHandler.h:41
A MamdaSubscription is used to register interest in a particular symbol and source.
Definition: MamdaSubscription.h:54
MamdaFieldState
An enumeration representing field state.
Definition: MamdaFieldState.h:37
MamdaMsgListener defines an interface for handling MAMA messages for a MamdaSubscription.
Definition: MamdaMsgListener.h:38


© 2012 Linux Foundation