OpenMAMA
MamdaFundamentalListener.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 MamdaFundamentalListenerH
23 #define MamdaFundamentalListenerH
24 
25 #include <mamda/MamdaConfig.h>
27 #include <mamda/MamdaMsgListener.h>
29 
30 namespace Wombat
31 {
32 
33  class MamdaFundamentalHandler;
34 
56  class MAMDAExpDLL MamdaFundamentalListener
57  : public MamdaMsgListener
58  , public MamdaFundamentals
59  {
60  public:
62  virtual ~MamdaFundamentalListener ();
63 
64  void addHandler (MamdaFundamentalHandler* handler);
65 
66  // Inherited from MamdaBasicRecap
67  const char* getSymbol() const;
68  const char* getPartId() const;
69  const MamaDateTime& getSrcTime() const;
70  const MamaDateTime& getActivityTime() const;
71  const MamaDateTime& getLineTime() const;
72  const MamaDateTime& getSendTime() const;
73 
74  MamdaFieldState getSymbolFieldState() const;
75  MamdaFieldState getPartIdFieldState() const;
76  MamdaFieldState getSrcTimeFieldState() const;
77  MamdaFieldState getActivityTimeFieldState() const;
78  MamdaFieldState getLineTimeFieldState() const;
79  MamdaFieldState getSendTimeFieldState() const;
80 
81 
82  // Inherited from MamdaFundamentals
83  const char* getCorporateActionType() const;
84  double getDividendPrice() const;
85  const char* getDividendFrequency() const;
86  const char* getDividendExDate() const;
87  const char* getDividendPayDate() const;
88  const char* getDividendRecordDate() const;
89  const char* getDividendCurrency() const;
90  long getSharesOut() const;
91  long getSharesFloat() const;
92  long getSharesAuthorized() const;
93  double getEarningsPerShare() const;
94  double getVolatility() const;
95  double getPriceEarningsRatio() const;
96  double getYield() const;
97  const char* getMarketSegmentNative() const;
98  const char* getMarketSectorNative() const;
99  const char* getMarketSegment() const;
100  const char* getMarketSector() const;
101  double getHistoricalVolatility() const;
102  double getRiskFreeRate() const;
103 
104  MamdaFieldState getCorporateActionTypeFieldState() const;
105  MamdaFieldState getDividendPriceFieldState() const;
106  MamdaFieldState getDividendFrequencyFieldState() const;
107  MamdaFieldState getDividendExDateFieldState() const;
108  MamdaFieldState getDividendPayDateFieldState() const;
109  MamdaFieldState getDividendRecordDateFieldState() const;
110  MamdaFieldState getDividendCurrencyFieldState() const;
111  MamdaFieldState getSharesOutFieldState() const;
112  MamdaFieldState getSharesFloatFieldState() const;
113  MamdaFieldState getSharesAuthorizedFieldState() const;
114  MamdaFieldState getEarningsPerShareFieldState() const;
115  MamdaFieldState getVolatilityFieldState() const;
116  MamdaFieldState getPriceEarningsRatioFieldState() const;
117  MamdaFieldState getYieldFieldState() const;
118  MamdaFieldState getMarketSegmentNativeFieldState() const;
119  MamdaFieldState getMarketSectorNativeFieldState() const;
120  MamdaFieldState getMarketSegmentFieldState() const;
121  MamdaFieldState getMarketSectorFieldState() const;
122  MamdaFieldState getHistoricalVolatilityFieldState() const;
123  MamdaFieldState getRiskFreeRateFieldState() const;
128  virtual void onMsg (MamdaSubscription* subscription,
129  const MamaMsg& msg,
130  short msgType);
131 
132  struct MamdaFundamentalListenerImpl;
133  private:
134  MamdaFundamentalListenerImpl& mImpl;
135 
136  };
137 
138 } // namespace
139 
140 #endif // MamdaFundamentalListenerH
141 
MamdaFundamentals is an interface that provides access to the fundamental equity pricing/analysis att...
Definition: MamdaFundamentals.h:37
MamdaOrderImbalanceUpdate is an interface that provides access to order imbalance related fields...
Definition: MamdaAuctionFields.h:29
MamdaFundamentalHandler is an interface for applications that want to have an easy way to access fund...
Definition: MamdaFundamentalHandler.h:39
MamdaFundamentalListener is a class that specializes in handling fundamental equity pricing/analysis ...
Definition: MamdaFundamentalListener.h:56
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