This file is indexed.

/usr/include/arc/compute/SubmissionStatus.h is in nordugrid-arc-dev 4.0.0-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
// -*- indent-tabs-mode: nil -*-

#ifndef __ARC_SUBMISSIONSTATUS_H__
#define __ARC_SUBMISSIONSTATUS_H__

namespace Arc {
  
  /**
   * \ingroup compute
   * \headerfile SubmissionStatus.h arc/compute/SubmissionStatus.h 
   */
  class SubmissionStatus {
  private:
    static const unsigned int maxValue = (1 << 8) - 1;
  public:
    enum SubmissionStatusType {
      NONE = 0,
      NOT_IMPLEMENTED = 1 << 0,
      NO_SERVICES = 1 << 1,
      ENDPOINT_NOT_QUERIED = 1 << 2,
      BROKER_PLUGIN_NOT_LOADED = 1 << 3,
      DESCRIPTION_NOT_SUBMITTED = 1 << 4,
      SUBMITTER_PLUGIN_NOT_LOADED = 1 << 5, 
      AUTHENTICATION_ERROR = 1 << 6,
      ERROR_FROM_ENDPOINT = 1 << 7
    };

    SubmissionStatus() : status(NONE) {}
    SubmissionStatus(const SubmissionStatus& s) : status(s.status) {}
    SubmissionStatus(SubmissionStatusType s) : status(s) {}
    SubmissionStatus(unsigned int s) : status(s & maxValue) {}
  
    SubmissionStatus& operator|=(SubmissionStatusType s) { status |= s; return *this; }
    SubmissionStatus& operator|=(const SubmissionStatus& s) { status |= s.status; return *this; }
    SubmissionStatus& operator|=(unsigned int s) { status |= (s & maxValue); return *this; }

    SubmissionStatus operator|(SubmissionStatusType s) const { return (status | s); }
    SubmissionStatus operator|(const SubmissionStatus& s) const { return (status | s.status); }
    SubmissionStatus operator|(unsigned int s) const { return (status | (s & maxValue)); }
    
    SubmissionStatus& operator&=(SubmissionStatusType s) { status &= s; return *this; }
    SubmissionStatus& operator&=(const SubmissionStatus& s) { status &= s.status; return *this; }
    SubmissionStatus& operator&=(unsigned int s) { status &= s; return *this; }

    SubmissionStatus operator&(SubmissionStatusType s) const { return (status & s); }
    SubmissionStatus operator&(const SubmissionStatus& s) const { return (status & s.status); }
    SubmissionStatus operator&(unsigned int s) const { return (status & s); }

    SubmissionStatus& operator=(SubmissionStatusType s) { status = s; return *this; }
    SubmissionStatus& operator=(unsigned int s) { status = (s & maxValue); return *this; }

    operator bool() const { return status == NONE; }
    
    bool operator==(const SubmissionStatus& s) const { return status == s.status; }
    bool operator==(SubmissionStatusType s) const { return status == (unsigned int)s; }
    bool operator==(unsigned int s) const { return status == s; }
    friend bool operator==(SubmissionStatusType a, const SubmissionStatus& b);

    bool operator!=(const SubmissionStatus& s) const { return !operator==(s); }
    bool operator!=(SubmissionStatusType s) const { return !operator==(s); }
    bool operator!=(unsigned int s) const { return !operator==(s); }
    
    bool isSet(SubmissionStatusType s) const { return (s & status) == (unsigned int)s; }
    void unset(SubmissionStatusType s) { status &= (~s); }
    
  private:
    unsigned int status;
  };

  inline bool operator==(SubmissionStatus::SubmissionStatusType a, const SubmissionStatus& b) { return (unsigned int)a == b.status; }
}

#endif // __ARC_SUBMISSIONSTATUS_H__