This file is indexed.

/usr/include/crystalspace-2.0/ivaria/stdrep.h is in libcrystalspace-dev 2.0+dfsg-1build1.

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
117
118
119
120
/*
    Copyright (C) 2001 by Jorrit Tyberghein

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 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
    Library General Public License for more details.

    You should have received a copy of the GNU Library General Public
    License along with this library; if not, write to the Free
    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifndef __CS_IVARIA_STDREP_H__
#define __CS_IVARIA_STDREP_H__

/**\file
 * Standard reporter listener interface
 */

#include "csutil/scf.h"

struct iConsoleOutput;
struct iNativeWindowManager;
struct iReporter;

/**
 * Interface to control the settings of the reporter listener plugin.
 * 
 * Main creators of instances implementing this interface:
 * - Standard Reporter Listener plugin (crystalspace.utilities.stdrep)
 *   
 * Main ways to get pointers to this interface:
 * - csQueryRegistry()
 */
struct iStandardReporterListener : public virtual iBase
{
  SCF_INTERFACE (iStandardReporterListener, 1, 1, 0);

  /// Set the output console to use.
  virtual void SetOutputConsole (iConsoleOutput* console) = 0;
  /// Set the native window manager to use.
  virtual void SetNativeWindowManager (iNativeWindowManager* wm) = 0;
  /// Set the reporter to use.
  virtual void SetReporter (iReporter* rep) = 0;
  /** 
    * Set the debug file to use (standard filename).
    * If append is true the debug file name is appended to instead of a new 
    * one created.
    */  
  virtual void SetDebugFile (const char* filename, bool append=false) = 0;
  /**
   * Set useful defaults for output console, native window manager,
   * reporter (will use iObjectRegistry to query for those). The
   * debug file will be 'debug.txt'
   */
  virtual void SetDefaults () = 0;

  /**
   * Control where some type of message (severity level from the
   * reporter plugin: CS_REPORTER_...) will go to. Several of these
   * flags can be on at the same time or none if you just want to ignore
   * some message.
   */
  virtual void SetMessageDestination (int severity,
  	bool do_stdout, bool do_stderr, bool do_console,
	bool do_alert, bool do_debug, bool do_popup = false) = 0;

  /// Disable/enable standard output for the given severity.
  virtual void SetStandardOutput (int severity, bool en) = 0;
  /// Return the state of output to standard output for the given severity.
  virtual bool IsStandardOutput (int severity) = 0;

  /// Disable/enable standard error for the given severity.
  virtual void SetStandardError (int severity, bool en) = 0;
  /// Return the state of output to standard error for the given severity.
  virtual bool IsStandardError (int severity) = 0;

  /// Disable/enable console output for the given severity.
  virtual void SetConsoleOutput (int severity, bool en) = 0;
  /// Return the state of output to console for the given severity.
  virtual bool IsConsoleOutput (int severity) = 0;

  /// Disable/enable alert output for the given severity.
  virtual void SetAlertOutput (int severity, bool en) = 0;
  /// Return the state of output to alert for the given severity.
  virtual bool IsAlertOutput (int severity) = 0;

  /// Disable/enable debug output for the given severity.
  virtual void SetDebugOutput (int severity, bool en) = 0;
  /// Return the state of output to debug for the given severity.
  virtual bool IsDebugOutput (int severity) = 0;

  /// Disable/enable popup output for the given severity.
  virtual void SetPopupOutput (int severity, bool en) = 0;
  /// Return the state of output to popup for the given severity.
  virtual bool IsPopupOutput (int severity) = 0;

  /**
   * Control if this reporter listener should remove messages of a certain
   * severity. By default all messages are removed.
   */
  virtual void RemoveMessages (int severity, bool remove) = 0;

  /**
   * Control if the reporter should show message id as well. By default
   * this is only done for fatal, bug, and debug severity levels.
   */
  virtual void ShowMessageID (int severity, bool showid) = 0;

  /// Get the debug file name (or null if a debug file is not used).
  virtual const char* GetDebugFile () = 0;
};

#endif // __CS_IVARIA_STDREP_H__