This file is indexed.

/usr/include/mamda/MamdaOrderBookFields.h is in libmamda-dev 2.2.2.1-11.1ubuntu1.

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
/* $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 MamdaOrderBookFieldsH
#define MamdaOrderBookFieldsH

#include <mamda/MamdaOptionalConfig.h>
#include <mama/types.h>

namespace Wombat
{

    class MamaFieldDescriptor;
    class MamaDictionary;

    /**
     * Utility cache of <code>MamaFieldDescriptor</code>s which are used
     * internally by the API when accessing orderbook related fields from update
     * messages.
     * This class should be initialized prior to using the
     * <code>MamdaOrderBookListener</code> by calling <code>setDictionary()</code>
     * with a valid dictionary object which contains orderbook related fields.
     */
    class MAMDAOPTExpDLL MamdaOrderBookFields
    {
    public:
        static const MamaFieldDescriptor*  BOOK_TIME;
        static const MamaFieldDescriptor*  NUM_LEVELS;
        static const MamaFieldDescriptor*  BOOK_PROPERTIES;
        static const MamaFieldDescriptor*  BOOK_TYPE;
        static const MamaFieldDescriptor*  BOOK_PROP_MSG_TYPE;
        static const MamaFieldDescriptor*  PRICE_LEVELS;
        static const MamaFieldDescriptor*  PL_ACTION;
        static const MamaFieldDescriptor*  PL_PRICE;
        static const MamaFieldDescriptor*  PL_SIDE;
        static const MamaFieldDescriptor*  PL_SIZE;
        static const MamaFieldDescriptor*  PL_SIZE_CHANGE;
        static const MamaFieldDescriptor*  PL_TIME;
        static const MamaFieldDescriptor*  PL_NUM_ENTRIES;
        static const MamaFieldDescriptor*  PL_NUM_ATTACH;
        static const MamaFieldDescriptor*  PL_ENTRIES;
        static const MamaFieldDescriptor*  PL_PROPERTIES;
        static const MamaFieldDescriptor*  PL_PROP_MSG_TYPE;
        static const MamaFieldDescriptor*  ENTRY_ID;
        static const MamaFieldDescriptor*  ENTRY_ACTION;
        static const MamaFieldDescriptor*  ENTRY_REASON;
        static const MamaFieldDescriptor*  ENTRY_SIZE;
        static const MamaFieldDescriptor*  ENTRY_TIME;
        static const MamaFieldDescriptor*  ENTRY_STATUS;
        static const MamaFieldDescriptor*  ENTRY_PROPERTIES;
        static const MamaFieldDescriptor*  ENTRY_PROP_MSG_TYPE;
        static const MamaFieldDescriptor*  BID_MARKET_ORDERS;
        static const MamaFieldDescriptor*  ASK_MARKET_ORDERS;
        static const MamaFieldDescriptor** PRICE_LEVEL;
        static int                         PRICE_LEVEL_LENGTH;
        static const MamaFieldDescriptor** PL_ENTRY;
        static int                         PL_ENTRY_LENGTH;
        static const MamaFieldDescriptor*  BOOK_CONTRIBUTORS;

        
        // calling setDictionary will also set the Common Fields
        static void setDictionary (const MamaDictionary&  dictionary);
        static void reset ();
        static mama_u16_t  getMaxFid();
        static bool isSet ();

        /**
         * Internal.  Returns the number of fixed (non-vector) price level
         * fields.
         */
        static int getNumLevelFields ();

        /**
         * Internal.  Returns the number of fixed (non-vector) entry
         * fields.
         */
        static int getNumEntryFields ();

        /**
         * Internal.  Returns whether the dictionary contains vector
         * fields (important when unpacking order book messages).
         */
        static bool getHasVectorFields();

        /**
         * Internal.  Returns whether the dictionary contains fixed price
         * level fields (important when unpacking order book messages).
         */
        static bool getHasFixedLevelFields();

        /**
         * Get the dictionary used to setup the fields */
        static const MamaDictionary& getDictionary();
    };

} // namespace Wombat

#endif // MamdaOrderBookFieldsH