This file is indexed.

/usr/include/ossim/base/ossimApplicationUsage.h is in libossim-dev 1.8.16-4ubuntu1.

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
//-------------------------------------------------------------------------
//
// This code was taken from Open Scene Graph and incorporated from into
// OSSIM.
//
//-------------------------------------------------------------------------
// $Id: ossimApplicationUsage.h 19692 2011-05-31 16:55:47Z dburken $
#ifndef ossimApplicationUsage_HEADER
#define ossimApplicationUsage_HEADER 1

#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimString.h>
#include <map>

class OSSIMDLLEXPORT ossimApplicationUsage
{
    public:
        
        static ossimApplicationUsage* instance();

        ossimApplicationUsage() {}

        ossimApplicationUsage(const ossimString& commandLineUsage);

        typedef std::map<ossimString,ossimString,ossimStringLtstr> UsageMap;

        void setApplicationName(const ossimString& name);
        const ossimString& getApplicationName() const;

        void setDescription(const ossimString& desc);
        const ossimString& getDescription() const;

        enum Type
        {
            OSSIM_COMMAND_LINE_OPTION    = 0x1,
            OSSIM_ENVIRONMENTAL_VARIABLE = 0x2
        };
        
        void addUsageExplanation(Type type,const ossimString& option,const ossimString& explanation);
        
        void setCommandLineUsage(const ossimString& explanation);

        const ossimString& getCommandLineUsage() const;


        void addCommandLineOption(const ossimString& option,const ossimString& explanation);
        
        const UsageMap& getCommandLineOptions() const;


        void addEnvironmentalVariable(const ossimString& option,const ossimString& explanation);
        
        const UsageMap& getEnvironmentalVariables() const;

        void getFormatedString(ossimString& str, const UsageMap& um,unsigned int widthOfOutput=80);

        void write(std::ostream& output,const UsageMap& um,unsigned int widthOfOutput=80);
        
        void write(std::ostream& output,unsigned int type=OSSIM_COMMAND_LINE_OPTION|OSSIM_ENVIRONMENTAL_VARIABLE, unsigned int widthOfOutput=80);

    protected:
    
        ossimString theApplicationName;
        ossimString theDescription;
        ossimString theCommandLineUsage;
        UsageMap    theCommandLineOptions;
        UsageMap    theEnvironmentalVariables;
};

class ApplicationUsageProxy
{   
    public:

        /** register an explanation of commandline/evironmentalvaraible/keyboard mouse usage.*/
        ApplicationUsageProxy(ossimApplicationUsage::Type type,const ossimString& option,const ossimString& explanation)
        {
            ossimApplicationUsage::instance()->addUsageExplanation(type,option,explanation);
        }
};


#endif