This file is indexed.

/usr/include/Cable/cableSystemTools.h is in libcableswig-dev 0.1.0+cvs20111009-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
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
/*=========================================================================

  Program:   GCC-XML
  Module:    $RCSfile: cableSystemTools.h,v $
  Language:  C++
  Date:      $Date: 2003-05-28 21:55:34 $
  Version:   $Revision: 1.2 $

  Copyright (c) 2002 Kitware, Inc., Insight Consortium.  All rights reserved.
  See Copyright.txt for details.

     This software is distributed WITHOUT ANY WARRANTY; without even 
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#ifndef _cableSystemTools_h
#define _cableSystemTools_h

#include "cableUtils.h"

#include <iostream>
#include <fstream>
#include <string>

namespace cable
{

/** Utility methods to hide platform differences.  */
class SystemTools
{
public:
  /** Read a registry value with the given key.  Return whether it was
      found.  */
  static bool ReadRegistryValue(const char *key, String& result);
  
  /** Copy a file named by "source" to the file named by
      "destination". */
  static bool FileCopy(const char* source, const char* destination);
  
  /** Get a lower case string.  */
  static String LowerCase(const String& s);
  
  /** Read an environment variable.  */
  static const char* GetEnv(const char* key);
  static bool GetEnv(const char* key, String& result);
  
  /** Check if a file exists.  */
  static bool FileExists(const char* filename);
  
  /** Check if a file exists and is a directory.  */
  static bool FileIsDirectory(const char* name);
  
  /** Given a path to a directory, convert it to a full path.  This
   * collapses away relative paths.  The full path is returned.  */
  static String CollapseDirectory(const char* in_dir);
  
  /** Get the current working directory.  */
  static String GetCWD();
  
  /** Convert the given path to one with forward slashes.  */
  static void ConvertToUnixSlashes(String& path);

  /** Run the given command and get back the output and the result value.  */
  static bool RunCommand(const char* command, String& output,
                         int &retVal);
  
  /** Delete the file with the given name.  */
  static bool RemoveFile(const char* source);
  
  /** Convert a file path to a suitable output format.  */
  static String ConvertToOutputPath(const char* path);
  static String ConvertToWindowsOutputPath(const char* path);
  static String ConvertToUnixOutputPath(const char* path);
  

  /**
   * Copy the source file to the destination file only
   * if the two files differ.  
   */
  static bool CopyFileIfDifferent(const char* source,
                                  const char* destination);
    ///! Compare the contents of two files.  Return true if different.
  static bool FilesDiffer(const char* source,
                          const char* destination);
  ///! Copy a file.
  static void cmCopyFile(const char* source,
                         const char* destination);
  /** Get the file extension for an executable.  */
  static String GetExecutableExtension();
  
  /** Find a program in the system search path.  */
  static String FindProgram(const char* name);
};

} // namespace cable

#endif