This file is indexed.

/usr/include/getopt++/OptionSet.h is in libgetopt++-dev 0.0.2-p22-3.1.

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
/*
 * Copyright (c) 2002 Robert Collins.
 * Copyright (c) 2003 Robert Collins.
 *
 *     This program is free software; you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation; either version 2 of the License, or
 *     (at your option) any later version.
 *
 *     A copy of the GNU General Public License can be found at
 *     http://www.gnu.org/
 *
 * Written by Robert Collins <robertc@hotmail.com>
 *
 */

#ifndef _OPTIONSET_H_
#define _OPTIONSET_H_

#include <iosfwd>
#include <vector>
#include "getopt++/Option.h"

class OptionSet
{
public:
  OptionSet();
  virtual ~OptionSet();
  virtual void Register (Option *);
  virtual bool Process (int argc, char **argv, Option *nonOptionHandler);
  virtual bool Process (std::vector<std::string> const &parms, Option *nonOptionHandler);
  virtual bool process (Option *nonOptionHandler);
  virtual void ParameterUsage (std::ostream &);
  virtual std::vector<Option *> const &optionsInSet() const;
  virtual std::vector<std::string> const &nonOptions() const;
  virtual std::vector<std::string> const &remainingArgv() const;
protected:
  OptionSet (OptionSet const &);
  OptionSet &operator= (OptionSet const &);
  // force initialisation of variables
  void Init ();
private:
  void processOne();
  bool isOption(std::string::size_type) const;
  void doOption(std::string &option, std::string::size_type const &pos);
  bool doNoArgumentOption(std::string &option, std::string::size_type const &pos);
  Option * findOption(std::string &option, std::string::size_type const &pos) const;
  std::vector<Option *> options;
  std::vector<std::string> argv;
  std::vector<std::string> nonoptions;
  std::vector<std::string> remainingargv;
  Option *nonOptionHandler;
  Option::Result lastResult;
};

#endif // _OPTIONSET_H_