This file is indexed.

/usr/include/mamda/MamdaTradeFields.h is in libmamda-dev 2.2.2.1-10.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/* $Id$
 *
 * OpenMAMA: The open middleware agnostic messaging API
 * Copyright (C) 2011 NYSE Technologies, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA
 */

#ifndef MamdaTradeFieldsH
#define MamdaTradeFieldsH

#include <mamda/MamdaConfig.h>
#include <mama/mamacpp.h>

namespace Wombat
{

    class MamaFieldDescriptor;
    class MamaDictionary;

    /**
     * Utility cache of <code>MamaFieldDescriptor</code>s which are used
     * internally  by the API when accessing trade related fields from 
     * update messages.
     * This class should be initialized prior to using the
     * <code>MamdaTradeListener</code> by calling setDictionary() with a
     * valid dictionary object which contains trade related fields.
     */
    class MAMDAExpDLL MamdaTradeFields
    {
    public:
        static const MamaFieldDescriptor*  TRADE_PRICE;
        static const MamaFieldDescriptor*  TRADE_DATE;
        static const MamaFieldDescriptor*  TRADE_SIDE;
        static const MamaFieldDescriptor*  AGGRESSOR_SIDE;
        static const MamaFieldDescriptor*  TRADE_TIME;
        static const MamaFieldDescriptor*  LAST_PRICE;
        static const MamaFieldDescriptor*  LAST_VOLUME;
        static const MamaFieldDescriptor*  LAST_DATE_TIME;
        static const MamaFieldDescriptor*  LAST_PART_ID;
        static const MamaFieldDescriptor*  LAST_DIRECTION;
        static const MamaFieldDescriptor*  NET_CHANGE;
        static const MamaFieldDescriptor*  PCT_CHANGE;
        static const MamaFieldDescriptor*  TRADE_SIZE;
        static const MamaFieldDescriptor*  TOTAL_VOLUME;
        static const MamaFieldDescriptor*  OFF_EXCHANGE_TOTAL_VOLUME;
        static const MamaFieldDescriptor*  ON_EXCHANGE_TOTAL_VOLUME;
        static const MamaFieldDescriptor*  TRADE_UNITS;
        static const MamaFieldDescriptor*  HIGH_PRICE;
        static const MamaFieldDescriptor*  LOW_PRICE;
        static const MamaFieldDescriptor*  OPEN_PRICE;
        static const MamaFieldDescriptor*  CLOSE_PRICE;
        static const MamaFieldDescriptor*  CLOSE_DATE;
        static const MamaFieldDescriptor*  PREV_CLOSE_PRICE;
        static const MamaFieldDescriptor*  PREV_CLOSE_DATE;
        static const MamaFieldDescriptor*  ADJ_PREV_CLOSE;
        static const MamaFieldDescriptor*  PREV_VOLUME;
        static const MamaFieldDescriptor*  TRADE_SEQNUM;
        static const MamaFieldDescriptor*  TRADE_QUALIFIER;
        static const MamaFieldDescriptor*  TRADE_PART_ID;
        static const MamaFieldDescriptor*  TOTAL_VALUE;
        static const MamaFieldDescriptor*  OFF_EXCHANGE_TOTAL_VALUE;
        static const MamaFieldDescriptor*  ON_EXCHANGE_TOTAL_VALUE;
        static const MamaFieldDescriptor*  VWAP;
        static const MamaFieldDescriptor*  OFF_EXCHANGE_VWAP;
        static const MamaFieldDescriptor*  ON_EXCHANGE_VWAP;
        static const MamaFieldDescriptor*  STD_DEV;
        static const MamaFieldDescriptor*  STD_DEV_SUM;
        static const MamaFieldDescriptor*  STD_DEV_SUM_SQUARES;
        static const MamaFieldDescriptor*  SALE_CONDITION;
        static const MamaFieldDescriptor*  SELLERS_SALE_DAYS;
        static const MamaFieldDescriptor*  IS_IRREGULAR;
        static const MamaFieldDescriptor*  IRREG_PART_ID;
        static const MamaFieldDescriptor*  IRREG_PRICE;
        static const MamaFieldDescriptor*  IRREG_SIZE;
        static const MamaFieldDescriptor*  IRREG_TIME;
        static const MamaFieldDescriptor*  ORIG_PART_ID;
        static const MamaFieldDescriptor*  ORIG_PRICE;
        static const MamaFieldDescriptor*  ORIG_SIZE;
        static const MamaFieldDescriptor*  ORIG_SEQNUM;
        static const MamaFieldDescriptor*  ORIG_TRADE_QUALIFIER;
        static const MamaFieldDescriptor*  ORIG_SALE_CONDITION;
        static const MamaFieldDescriptor*  ORIG_SELLERS_SALE_DAYS;
        static const MamaFieldDescriptor*  ORIG_STOP_STOCK_IND;
        static const MamaFieldDescriptor*  STOP_STOCK_IND;
        static const MamaFieldDescriptor*  CORR_PART_ID;
        static const MamaFieldDescriptor*  CORR_PRICE;
        static const MamaFieldDescriptor*  CORR_SIZE;
        static const MamaFieldDescriptor*  CORR_TRADE_QUALIFIER;
        static const MamaFieldDescriptor*  CORR_SALE_CONDITION;
        static const MamaFieldDescriptor*  CORR_TRADE_ID;
        static const MamaFieldDescriptor*  CORR_SELLERS_SALE_DAYS;
        static const MamaFieldDescriptor*  CORR_STOP_STOCK_IND;
        static const MamaFieldDescriptor*  CORR_TIME;
        static const MamaFieldDescriptor*  CANCEL_TIME;
        static const MamaFieldDescriptor*  TRADE_ID;
        static const MamaFieldDescriptor*  ORIG_TRADE_ID;
        static const MamaFieldDescriptor*  PRIMARY_EXCH;
        static const MamaFieldDescriptor*  TRADE_COUNT;
        static const MamaFieldDescriptor*  BLOCK_COUNT;
        static const MamaFieldDescriptor*  BLOCK_VOLUME;
        static const MamaFieldDescriptor*  ORDER_ID;
        static const MamaFieldDescriptor*  UPDATE_AS_TRADE;
        static const MamaFieldDescriptor*  CURRENCY_CODE;
        static const MamaFieldDescriptor*  SETTLE_PRICE;
        static const MamaFieldDescriptor*  SETTLE_DATE;
        static const MamaFieldDescriptor*  HIGH_SEQNUM;
        static const MamaFieldDescriptor*  LOW_SEQNUM;
        static const MamaFieldDescriptor*  LAST_SEQNUM;
        static const MamaFieldDescriptor*  TOTAL_VOLUME_SEQNUM;
        static const MamaFieldDescriptor*  UNIQUE_ID;
        static const MamaFieldDescriptor*  TRADE_ACTION;
        static const MamaFieldDescriptor*  TRADE_EXEC_VENUE;
        static const MamaFieldDescriptor*  OFF_EXCHANGE_TRADE_PRICE;
        static const MamaFieldDescriptor*  ON_EXCHANGE_TRADE_PRICE;
        static const MamaFieldDescriptor*  TRADE_CONTRIBUTORS;
        static const MamaFieldDescriptor*  GENERIC_FLAG;
        static const MamaFieldDescriptor*  TRADE_RECAPS;
        static const MamaFieldDescriptor*  SHORT_SALE_CIRCUIT_BREAKER;
        static const MamaFieldDescriptor*  ORIG_SHORT_SALE_CIRCUIT_BREAKER; 
        static const MamaFieldDescriptor*  CORR_SHORT_SALE_CIRCUIT_BREAKER; 

        // calling setDictionary will also set the Common Fields
        static void      setDictionary (const MamaDictionary&  dictionary);

        /**
        * Reset the dictionary for trade update fields
        */
        static void      reset     ();
        static uint16_t  getMaxFid ();
        static bool      isSet     ();
    };

}

#endif // MamdaTradeFieldsH