OpenMAMA
MamdaAuctionListener.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 MamdaAuctionListenerH
23 #define MamdaAuctionListenerH
24 
25 #include <mamda/MamdaConfig.h>
27 #include <mamda/MamdaMsgListener.h>
31 
32 namespace Wombat
33 {
34 
35  class MamdaAuctionHandler;
36 
37 
53  {
54  public:
56  virtual ~MamdaAuctionListener ();
57 
58  void addHandler (MamdaAuctionHandler* handler);
59 
60  // Inherited from MamdaBasicRecap
61  const char* getSymbol() const;
62  const char* getPartId() const;
63  const MamaDateTime& getSrcTime() const;
64  const MamaDateTime& getActivityTime() const;
65  const MamaDateTime& getLineTime() const;
66  const MamaDateTime& getSendTime() const;
67  mama_seqnum_t getEventSeqNum() const;
68  const MamaDateTime& getEventTime() const;
69  const MamaMsgQual& getMsgQual() const;
70  bool isInitialised() const;
71 
72  MamdaFieldState getSymbolFieldState() const;
73  MamdaFieldState getPartIdFieldState() const;
74  MamdaFieldState getSrcTimeFieldState() const;
75  MamdaFieldState getActivityTimeFieldState() const;
76  MamdaFieldState getLineTimeFieldState() const;
77  MamdaFieldState getSendTimeFieldState() const;
78  MamdaFieldState getEventSeqNumFieldState() const;
79  MamdaFieldState getEventTimeFieldState() const;
80  MamdaFieldState getMsgQualFieldState() const;
81 
82  // Inherited from MamdaAuction
83  const MamaPrice& getUncrossPrice() const;
84  mama_quantity_t getUncrossVolume() const;
85  MamdaUncrossPriceInd getUncrossPriceInd() const;
86  const MamaDateTime& getAuctionTime() const;
87 
88  MamdaFieldState getUncrossPriceFieldState() const;
89  MamdaFieldState getUncrossVolumeFieldState() const;
90  MamdaFieldState getUncrossPriceIndFieldState() const;
91  MamdaFieldState getAuctionTimeFieldState() const;
92 
97  virtual void onMsg (MamdaSubscription* subscription,
98  const MamaMsg& msg,
99  short msgType);
100 
101  struct MamdaAuctionListenerImpl;
102 
103  private:
104  MamdaAuctionListenerImpl& mImpl;
105 
106  };
107 
108 } // namespace
109 
110 #endif // MamdaAuctionListenerH
111 
112 
113 
114 
115 
MamdaOrderImbalanceUpdate is an interface that provides access to order imbalance related fields...
Definition: MamdaAuctionFields.h:29
MamdaAuctionHandler is an interface for applications that want to have an easy way to access currency...
Definition: MamdaAuctionHandler.h:41
MamdaAuctionListener is a class that specializes in handling currency data, Developers provide their ...
Definition: MamdaAuctionListener.h:52
MamdaUncrossPriceInd
An enumeration representing the uncross price Ind.
Definition: MamdaUncrossPriceInd.h:33
MamdaAuctionRecap is an interface that provides access to the currency related fields.
Definition: MamdaAuctionRecap.h:38
A MamdaSubscription is used to register interest in a particular symbol and source.
Definition: MamdaSubscription.h:54
MamdaAuctionUpdate is an interface that provides access to the currency related fields.
Definition: MamdaAuctionUpdate.h:38
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