OpenMAMA
MamdaNewsFields.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 MamdaNewsFieldsH
23 #define MamdaNewsFieldsH
24 
26 #include <mama/mamacpp.h>
27 
28 namespace Wombat
29 {
30 
31  class MamaFieldDescriptor;
32  class MamaDictionary;
33 
34  class MAMDAOPTExpDLL MamdaNewsFields
35  {
36  public:
37  static const MamaFieldDescriptor* HEADLINE_TEXT;
38  static const MamaFieldDescriptor* HEADLINE_ID;
39  static const MamaFieldDescriptor* STORY_TEXT;
40  static const MamaFieldDescriptor* STORY_ID;
41  static const MamaFieldDescriptor* ORIG_STORY_ID;
42  static const MamaFieldDescriptor* SOURCE_ID;
43  static const MamaFieldDescriptor* ORIG_SOURCE_ID;
44  static const MamaFieldDescriptor* LANGUAGE_ID;
45  static const MamaFieldDescriptor* NATIVE_CODES;
46  static const MamaFieldDescriptor* NATIVE_SYMBOLS;
47  static const MamaFieldDescriptor* INDUSTRIES;
48  static const MamaFieldDescriptor* MARKET_SECTORS;
49  static const MamaFieldDescriptor* REGIONS;
50  static const MamaFieldDescriptor* COUNTRIES;
51  static const MamaFieldDescriptor* PRODUCTS;
52  static const MamaFieldDescriptor* TOPICS;
53  static const MamaFieldDescriptor* MISC_CODES;
54  static const MamaFieldDescriptor* SYMBOLS;
55  static const MamaFieldDescriptor* PRIORITY;
56  static const MamaFieldDescriptor* TIME;
57  static const MamaFieldDescriptor* REVISION_NUM;
58  static const MamaFieldDescriptor* STORY_STATUS;
59  static const MamaFieldDescriptor* STORY_TIME;
60  static const MamaFieldDescriptor* ORIG_STORY_TIME;
61  static const MamaFieldDescriptor* STORY_HEADLINES;
62  static const MamaFieldDescriptor* HAS_STORY;
63 
64  // calling setDictionary will also set the Common Fields
65  static void setDictionary (const MamaDictionary& dictionary);
66  static void reset ();
67  static uint16_t getMaxFid ();
68  static bool isSet ();
69  };
70 
71 } // namespace Wombat
72 
73 #endif // MamdaNewsFieldsH


© 2012 Linux Foundation