This file is indexed.

/usr/include/ossim/base/ossimTrace.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
//*****************************************************************************
// FILE: ossimTrace.h
//
// License:  See top level LICENSE.txt file.
//
// DESCRIPTION:
//   Contains declaration of class ossimTrace. Used for tracing code execution.
//   Implemented as a singluy linked list of ossimTrace objects.
//
// SOFTWARE HISTORY:
//   24Apr2001  Oscar Kramer
//              Initial coding.
//*****************************************************************************
// $Id: ossimTrace.h 11650 2007-08-24 12:02:47Z dburken $

#ifndef ossimTrace_HEADER
#define ossimTrace_HEADER

#include <ossim/base/ossimString.h>
#include <ossim/base/ossimNotify.h>

// Macro for use with trace...
#define CLOG ossimNotify(ossimNotifyLevel_DEBUG) << MODULE << " (\"" __FILE__ "\", line " << __LINE__ << ") DEBUG: "


class OSSIMDLLEXPORT ossimTrace
{
public:
   ossimTrace( const ossimString& trace_name );
   ~ossimTrace();

   /**
    * @returns true if enabled false if not.
    */
   bool isEnabled() const { return theEnabledFlag; }

   /**
    * Returns "theTraceName" as an ossimString.
    */
   ossimString getTraceName() const { return theTraceName; }


   /**
    * Sets "theEnabled" flag.
    *
    * @param flag true == enabled, false == disabled.
    */
   void setTraceFlag(bool flag) { theEnabledFlag = flag; }
   
   /**
    * Operator() for ossimTrace.  Given the static instance:
    * static ossimTrace traceDebug("myTrace");
    *
    * You can do:
    * if (traceDebug())
    * {
    *     CLOG << "Your trace stuff goes here..." << endl;
    * }
    */
   bool operator()() const { return theEnabledFlag; }

private:
   ossimString                theTraceName;
   bool                       theEnabledFlag;
};

#endif