OpenMAMA
MamdaFundamentalFields.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 MamdaFundamentalFieldsH
23 #define MamdaFundamentalFieldsH
24 
25 #include <mamda/MamdaConfig.h>
26 #include <mama/mamacpp.h>
27 
28 namespace Wombat
29 {
30 
31  class MamaFieldDescriptor;
32  class MamaDictionary;
33 
34 
35  class MAMDAExpDLL MamdaFundamentalFields
36  {
37  public:
38  static const MamaFieldDescriptor* CORP_ACT_TYPE;
39  static const MamaFieldDescriptor* DIVIDEND_PRICE;
40 
41  static const MamaFieldDescriptor* DIVIDEND_FREQ;
42  static const char* DIV_FREQ_NONE;
43  static const char* DIV_FREQ_MONTHLY;
44  static const char* DIV_FREQ_QUARTERLY;
45  static const char* DIV_FREQ_SEMI_ANNUALLY;
46  static const char* DIV_FREQ_ANNUALLY;
47  static const char* DIV_FREQ_SPECIAL;
48  static const char* DIV_FREQ_IRREGULAR;
49  static const char* DIV_FREQ_INVALID;
50 
51  static const MamaFieldDescriptor* DIVIDEND_EX_DATE;
52  static const MamaFieldDescriptor* DIVIDEND_PAY_DATE;
53  static const MamaFieldDescriptor* DIVIDEND_REC_DATE;
54  static const MamaFieldDescriptor* DIVIDEND_CURRENCY;
55  static const MamaFieldDescriptor* SHARES_OUT;
56  static const MamaFieldDescriptor* SHARES_FLOAT;
57  static const MamaFieldDescriptor* SHARES_AUTH;
58  static const MamaFieldDescriptor* EARN_PER_SHARE;
59  static const MamaFieldDescriptor* VOLATILITY;
60  static const MamaFieldDescriptor* PRICE_EARN_RATIO;
61  static const MamaFieldDescriptor* YIELD;
62  static const MamaFieldDescriptor* MRKT_SEGM_NATIVE;
63  static const MamaFieldDescriptor* MRKT_SECT_NATIVE;
64 
65  static const MamaFieldDescriptor* MRKT_SEGMENT;
66  static const char* MRKT_SEGMENT_NONE;
67  static const char* MRKT_SEGMENT_EMPTY;
68 
69  static const MamaFieldDescriptor* MRKT_SECTOR;
70  static const char* MRKT_SECTOR_NONE;
71  static const char* MRKT_SECTOR_EMPTY;
72 
73  static const MamaFieldDescriptor* RISK_FREE_RATE;
74  static const MamaFieldDescriptor* HIST_VOLATILITY;
75 
76  // calling setDictionary will also set the Common Fields
77  static void setDictionary (const MamaDictionary& dictionary);
78 
82  static void reset ();
83  static uint16_t getMaxFid ();
84  static bool isSet ();
85  };
86 
87 }
88 
89 #endif // MamdaFundamentalFieldsH


© 2012 Linux Foundation