This file is indexed.

/usr/include/ossim/base/ossimMultiResLevelHistogram.h is in libossim-dev 1.7.21-4.

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
//*******************************************************************
//
// License:  See top level LICENSE.txt file.
//
// Author: Garrett Potts (gpotts@imagelinks.com)
//
// Description: 
//
//*******************************************************************
//  $Id: ossimMultiResLevelHistogram.h 11721 2007-09-13 13:19:34Z gpotts $
#ifndef ossimMultiResLevelHistogram_HEADER
#define ossimMultiResLevelHistogram_HEADER
#include <vector>
#include <ossim/base/ossimFilename.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/base/ossimReferenced.h>
#include <ossim/base/ossimRefPtr.h>
#include <ossim/base/ossimHistogram.h>
#include <ossim/base/ossimMultiBandHistogram.h>

class OSSIMDLLEXPORT ossimMultiResLevelHistogram : public ossimReferenced
{
public:
   ossimMultiResLevelHistogram();
   ossimMultiResLevelHistogram(ossim_uint32 numberOfResLevels);
   ossimMultiResLevelHistogram(const ossimMultiResLevelHistogram& rhs);
   
   virtual ~ossimMultiResLevelHistogram();

   ossimRefPtr<ossimHistogram> getHistogram(ossim_uint32 band,
                                            ossim_uint32 resLevel=0);
   const ossimRefPtr<ossimHistogram> getHistogram(ossim_uint32 band,
                                                  ossim_uint32 resLevel=0)const;
   ossim_uint32 getNumberOfResLevels()const;
   ossim_uint32 getNumberOfBands(ossim_uint32 resLevel=0) const;
   void create(ossim_uint32 numberOfResLevels);
   ossimRefPtr<ossimMultiBandHistogram> getMultiBandHistogram(ossim_uint32 resLevel) const;
   ossimRefPtr<ossimMultiResLevelHistogram> createAccumulationLessThanEqual()const;
   ossimRefPtr<ossimMultiResLevelHistogram> createAccumulationGreaterThanEqual()const;

   void setBinCount(double binNumber, double count);
   /*!
    * Will append to the list the passed in histogram.
    */
   virtual void addHistogram(ossimMultiBandHistogram* histo);

   /*!
    * This will create and append a histogram to the
    * list and return a pointer to the new histogram.
    */
   virtual ossimRefPtr<ossimMultiBandHistogram> addHistogram();

   /*!
    * Will set the histogram to the passed in res level.
    * It will delete the histogram at the res level before
    * setting the pointer to the passed in histogram.  if
    * the resLevel is out of range it will return false meaning
    * it was unable to assign the pointer.
    */
   virtual bool setHistogram(ossimRefPtr<ossimMultiBandHistogram> histo, ossim_uint32 resLevel);

   virtual ossimFilename getHistogramFile() const;
   virtual bool importHistogram(const ossimFilename& inputFile);
   virtual bool importHistogram(std::istream& in);

   virtual bool loadState(const ossimKeywordlist& kwl,
                          const char* prefix=0);
   virtual bool saveState(ossimKeywordlist& kwl,
                          const char* prefix=0)const;
   
protected:
   class  ossimProprietaryHeaderInformation
   {
   public:
      ossimProprietaryHeaderInformation(){clear();}

      bool parseStream(std::istream& in);

      ossim_uint32 getNumberOfResLevels()
         {
            return theNumberOfResLevels.toUInt32();
         }
      void clear()
         {
            theFileType          = "";
            theVersion           = "";
            theCreatorId         = "";
            theNumberOfResLevels = "";
         }
      ossimString theFileType;
      ossimString theVersion;
      ossimString theCreatorId;
      ossimString theNumberOfResLevels;
   };

   std::vector<ossimRefPtr<ossimMultiBandHistogram> > theHistogramList;
   ossimFilename                    theHistogramFile;
   
   void deleteHistograms();
   bool parseProprietaryHistogram(std::istream& in);
};

#endif