/usr/lib/ruby/vendor_ruby/Ice/Current.rb is in ruby-zeroc-ice 3.5.1-6.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 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 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | # **********************************************************************
#
# Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************
#
# Ice version 3.5.1
#
# <auto-generated>
#
# Generated from file `Current.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
require 'Ice'
require 'Ice/ObjectAdapterF.rb'
require 'Ice/ConnectionF.rb'
require 'Ice/Identity.rb'
require 'Ice/Version.rb'
module Ice
if not defined?(::Ice::T_Context)
T_Context = ::Ice::__defineDictionary('::Ice::Context', ::Ice::T_string, ::Ice::T_string)
end
if not defined?(::Ice::OperationMode)
class OperationMode
include Comparable
def initialize(name, value)
@name = name
@value = value
end
def OperationMode.from_int(val)
@@_enumerators[val]
end
def to_s
@name
end
def to_i
@value
end
def <=>(other)
other.is_a?(OperationMode) or raise ArgumentError, "value must be a OperationMode"
@value <=> other.to_i
end
def hash
@value.hash
end
def inspect
@name + "(#{@value})"
end
def OperationMode.each(&block)
@@_enumerators.each_value(&block)
end
Normal = OperationMode.new("Normal", 0)
Nonmutating = OperationMode.new("Nonmutating", 1)
Idempotent = OperationMode.new("Idempotent", 2)
@@_enumerators = {0=>Normal, 1=>Nonmutating, 2=>Idempotent}
def OperationMode._enumerators
@@_enumerators
end
private_class_method :new
end
T_OperationMode = ::Ice::__defineEnum('::Ice::OperationMode', OperationMode, OperationMode::_enumerators)
end
if not defined?(::Ice::Current)
class Current
def initialize(adapter=nil, con=nil, id=::Ice::Identity.new, facet='', operation='', mode=::Ice::OperationMode::Normal, ctx=nil, requestId=0, encoding=::Ice::EncodingVersion.new)
@adapter = adapter
@con = con
@id = id
@facet = facet
@operation = operation
@mode = mode
@ctx = ctx
@requestId = requestId
@encoding = encoding
end
def hash
_h = 0
_h = 5 * _h + @adapter.hash
_h = 5 * _h + @con.hash
_h = 5 * _h + @id.hash
_h = 5 * _h + @facet.hash
_h = 5 * _h + @operation.hash
_h = 5 * _h + @mode.hash
_h = 5 * _h + @ctx.hash
_h = 5 * _h + @requestId.hash
_h = 5 * _h + @encoding.hash
_h % 0x7fffffff
end
def ==(other)
return false if
@adapter != other.adapter or
@con != other.con or
@id != other.id or
@facet != other.facet or
@operation != other.operation or
@mode != other.mode or
@ctx != other.ctx or
@requestId != other.requestId or
@encoding != other.encoding
true
end
def eql?(other)
return other.class == self.class && other == self
end
def inspect
::Ice::__stringify(self, T_Current)
end
attr_accessor :adapter, :con, :id, :facet, :operation, :mode, :ctx, :requestId, :encoding
end
T_Current = ::Ice::__defineStruct('::Ice::Current', Current, [
["adapter", ::Ice::T_ObjectAdapter],
["con", ::Ice::T_Connection],
["id", ::Ice::T_Identity],
["facet", ::Ice::T_string],
["operation", ::Ice::T_string],
["mode", ::Ice::T_OperationMode],
["ctx", ::Ice::T_Context],
["requestId", ::Ice::T_int],
["encoding", ::Ice::T_EncodingVersion]
])
end
end
|