OpenMAMA
MamdaSecStatusListener.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 MamdaSecStatusListenerH
23 #define MamdaSecStatusListenerH
24 
25 #include <mamda/MamdaConfig.h>
26 #include <mamda/MamdaMsgListener.h>
27 #include <mamda/MamdaSecStatus.h>
31 
32 namespace Wombat
33 {
34 
35  class MamdaSecStatusHandler;
36 
54  class MAMDAExpDLL MamdaSecStatusListener
55  : public MamdaMsgListener
56  , public MamdaSecStatus
57  , public MamdaSecStatusRecap
58  {
59  public:
60 
65  virtual ~MamdaSecStatusListener ();
66 
70  void addHandler (MamdaSecStatusHandler* handler);
71 
72  // Inherited from MamdaBasicEvent
73  const char* getSymbol () const;
74  const char* getPartId () const;
75  const MamaDateTime& getSrcTime () const;
76  const MamaDateTime& getActivityTime () const;
77  const MamaDateTime& getLineTime () const;
78  const MamaDateTime& getSendTime () const;
79  const MamaMsgQual& getMsgQual () const;
80  const MamaDateTime& getEventTime () const;
81  mama_seqnum_t getEventSeqNum () const;
82  const MamaDateTime& getLuldTime () const;
83  const char getLuldIndicator () const;
84 
85  MamdaFieldState getSymbolFieldState () const;
86  MamdaFieldState getPartIdFieldState () const;
87  MamdaFieldState getSrcTimeFieldState () const;
88  MamdaFieldState getActivityTimeFieldState () const;
89  MamdaFieldState getLineTimeFieldState () const;
90  MamdaFieldState getSendTimeFieldState () const;
91  MamdaFieldState getMsgQualFieldState () const;
92  MamdaFieldState getEventTimeFieldState () const;
93  MamdaFieldState getEventSeqNumFieldState () const;
94  MamdaFieldState getLuldIndicatorFieldState () const;
95  MamdaFieldState getLuldTimeFieldState () const;
96 
97 
98  const char* getIssueSymbol () const;
99  const char* getReason () const;
100  char getSecurityAction () const;
101  char getShortSaleCircuitBreaker () const;
102  const char* getSecurityType () const;
103  const char* getSecurityStatus () const;
104  const char* getSecurityStatusQual () const;
105  const char* getSecurityStatusNative () const;
106  const char* getSecurityStatusStr () const;
107  const char* getSecurityStatusQualStr () const;
108  MamdaSecurityStatus getSecurityStatusEnum () const;
109  MamdaSecurityStatusQual getSecurityStatusQualifierEnum () const;
110  const char* getFreeText () const;
111 
112  MamdaFieldState getIssueSymbolFieldState () const;
113  MamdaFieldState getReasonFieldState () const;
114  MamdaFieldState getSecurityActionFieldState () const;
115  MamdaFieldState getShortSaleCircuitBreakerFieldState () const;
116  MamdaFieldState getSecurityTypeFieldState () const;
117  MamdaFieldState getSecurityStatusFieldState () const;
118  MamdaFieldState getSecurityStatusQualFieldState () const;
119  MamdaFieldState getSecurityStatusNativeFieldState () const;
120  MamdaFieldState getSecurityStatusStrFieldState () const;
121  MamdaFieldState getSecurityStatusQualStrFieldState () const;
122  MamdaFieldState getSecurityStatusEnumFieldState () const;
123  MamdaFieldState getSecurityStatusQualifierEnumFieldState () const;
124  MamdaFieldState getFreeTextFieldState () const;
125 
129  virtual void onMsg (MamdaSubscription* subscription,
130  const MamaMsg& msg,
131  short msgType);
132 
133  struct MamdaSecStatusListenerImpl;
134 
135  private:
136  MamdaSecStatusListenerImpl& mImpl;
137  };
138 
139 }
140 
141 #endif // MamdaSecStatusListenerH
MamdaSecStatusHandler is an interface for applications that want to have an easy way to handle securi...
Definition: MamdaSecStatusHandler.h:38
MamdaSecurityStatusQual
An enumeration representing the status of a security such as whether or not it is halted or closed fo...
Definition: MamdaSecurityStatusQual.h:34
MamdaSecurityStatusListener is a class that specializes in handling security status updates...
Definition: MamdaSecStatusListener.h:54
MamdaOrderImbalanceUpdate is an interface that provides access to order imbalance related fields...
Definition: MamdaAuctionFields.h:29
MamdaSecurityStatus
An enumeration representing the status of a security such as whether or not it is halted or closed fo...
Definition: MamdaSecurityStatus.h:34
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
MamdaSecStatus is an interface that provides access to the Security Status fields such as symbol anno...
Definition: MamdaSecStatus.h:36
MamdaMsgListener defines an interface for handling MAMA messages for a MamdaSubscription.
Definition: MamdaMsgListener.h:38
MamdaSecStatus is an interface that provides access to the Security Status fields such as symbol anno...
Definition: MamdaSecStatusRecap.h:39


© 2012 Linux Foundation