This file is indexed.

/usr/lib/ruby/vendor_ruby/IceStorm/IceStorm.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
# **********************************************************************
#
# 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 `IceStorm.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#

require 'Ice'
require 'Ice/Identity.rb'
require 'Ice/SliceChecksumDict.rb'
require 'IceStorm/Metrics.rb'

module IceStorm

    if not defined?(::IceStorm::T_Topic)
        T_Topic = ::Ice::__declareClass('::IceStorm::Topic')
        T_TopicPrx = ::Ice::__declareProxy('::IceStorm::Topic')
    end

    if not defined?(::IceStorm::LinkInfo)
        class LinkInfo
            def initialize(theTopic=nil, name='', cost=0)
                @theTopic = theTopic
                @name = name
                @cost = cost
            end

            def hash
                _h = 0
                _h = 5 * _h + @theTopic.hash
                _h = 5 * _h + @name.hash
                _h = 5 * _h + @cost.hash
                _h % 0x7fffffff
            end

            def ==(other)
                return false if
                    @theTopic != other.theTopic or
                    @name != other.name or
                    @cost != other.cost
                true
            end

            def eql?(other)
                return other.class == self.class && other == self
            end

            def inspect
                ::Ice::__stringify(self, T_LinkInfo)
            end

            attr_accessor :theTopic, :name, :cost
        end

        T_LinkInfo = ::Ice::__defineStruct('::IceStorm::LinkInfo', LinkInfo, [
            ["theTopic", ::IceStorm::T_TopicPrx],
            ["name", ::Ice::T_string],
            ["cost", ::Ice::T_int]
        ])
    end

    if not defined?(::IceStorm::T_LinkInfoSeq)
        T_LinkInfoSeq = ::Ice::__defineSequence('::IceStorm::LinkInfoSeq', ::IceStorm::T_LinkInfo)
    end

    if not defined?(::IceStorm::T_QoS)
        T_QoS = ::Ice::__defineDictionary('::IceStorm::QoS', ::Ice::T_string, ::Ice::T_string)
    end

    if not defined?(::IceStorm::LinkExists)
        class LinkExists < Ice::UserException
            def initialize(name='')
                @name = name
            end

            def to_s
                'IceStorm::LinkExists'
            end

            attr_accessor :name
        end

        T_LinkExists = ::Ice::__defineException('::IceStorm::LinkExists', LinkExists, false, nil, [["name", ::Ice::T_string, false, 0]])
        LinkExists::ICE_TYPE = T_LinkExists
    end

    if not defined?(::IceStorm::NoSuchLink)
        class NoSuchLink < Ice::UserException
            def initialize(name='')
                @name = name
            end

            def to_s
                'IceStorm::NoSuchLink'
            end

            attr_accessor :name
        end

        T_NoSuchLink = ::Ice::__defineException('::IceStorm::NoSuchLink', NoSuchLink, false, nil, [["name", ::Ice::T_string, false, 0]])
        NoSuchLink::ICE_TYPE = T_NoSuchLink
    end

    if not defined?(::IceStorm::AlreadySubscribed)
        class AlreadySubscribed < Ice::UserException
            def initialize
            end

            def to_s
                'IceStorm::AlreadySubscribed'
            end
        end

        T_AlreadySubscribed = ::Ice::__defineException('::IceStorm::AlreadySubscribed', AlreadySubscribed, false, nil, [])
        AlreadySubscribed::ICE_TYPE = T_AlreadySubscribed
    end

    if not defined?(::IceStorm::BadQoS)
        class BadQoS < Ice::UserException
            def initialize(reason='')
                @reason = reason
            end

            def to_s
                'IceStorm::BadQoS'
            end

            attr_accessor :reason
        end

        T_BadQoS = ::Ice::__defineException('::IceStorm::BadQoS', BadQoS, false, nil, [["reason", ::Ice::T_string, false, 0]])
        BadQoS::ICE_TYPE = T_BadQoS
    end

    if not defined?(::IceStorm::Topic_mixin)
        module Topic_mixin
            include ::Ice::Object_mixin

            def ice_ids(current=nil)
                ['::Ice::Object', '::IceStorm::Topic']
            end

            def ice_id(current=nil)
                '::IceStorm::Topic'
            end

            #
            # Operation signatures.
            #
            # def getName(current=nil)
            # def getPublisher(current=nil)
            # def getNonReplicatedPublisher(current=nil)
            # def subscribe(theQoS, subscriber, current=nil)
            # def subscribeAndGetPublisher(theQoS, subscriber, current=nil)
            # def unsubscribe(subscriber, current=nil)
            # def link(linkTo, cost, current=nil)
            # def unlink(linkTo, current=nil)
            # def getLinkInfoSeq(current=nil)
            # def getSubscribers(current=nil)
            # def destroy(current=nil)

            def inspect
                ::Ice::__stringify(self, T_Topic)
            end
        end
        class Topic
            include Topic_mixin
            
            def Topic.ice_staticId()
                '::IceStorm::Topic'
            end
        end
        module TopicPrx_mixin

            def getName(_ctx=nil)
                Topic_mixin::OP_getName.invoke(self, [], _ctx)
            end

            def getPublisher(_ctx=nil)
                Topic_mixin::OP_getPublisher.invoke(self, [], _ctx)
            end

            def getNonReplicatedPublisher(_ctx=nil)
                Topic_mixin::OP_getNonReplicatedPublisher.invoke(self, [], _ctx)
            end

            def subscribe(theQoS, subscriber, _ctx=nil)
                Topic_mixin::OP_subscribe.invoke(self, [theQoS, subscriber], _ctx)
            end

            def subscribeAndGetPublisher(theQoS, subscriber, _ctx=nil)
                Topic_mixin::OP_subscribeAndGetPublisher.invoke(self, [theQoS, subscriber], _ctx)
            end

            def unsubscribe(subscriber, _ctx=nil)
                Topic_mixin::OP_unsubscribe.invoke(self, [subscriber], _ctx)
            end

            def link(linkTo, cost, _ctx=nil)
                Topic_mixin::OP_link.invoke(self, [linkTo, cost], _ctx)
            end

            def unlink(linkTo, _ctx=nil)
                Topic_mixin::OP_unlink.invoke(self, [linkTo], _ctx)
            end

            def getLinkInfoSeq(_ctx=nil)
                Topic_mixin::OP_getLinkInfoSeq.invoke(self, [], _ctx)
            end

            def getSubscribers(_ctx=nil)
                Topic_mixin::OP_getSubscribers.invoke(self, [], _ctx)
            end

            def destroy(_ctx=nil)
                Topic_mixin::OP_destroy.invoke(self, [], _ctx)
            end
        end
        class TopicPrx < ::Ice::ObjectPrx
            include TopicPrx_mixin

            def TopicPrx.checkedCast(proxy, facetOrCtx=nil, _ctx=nil)
                ice_checkedCast(proxy, '::IceStorm::Topic', facetOrCtx, _ctx)
            end

            def TopicPrx.uncheckedCast(proxy, facet=nil)
                ice_uncheckedCast(proxy, facet)
            end
        end

        if not defined?(::IceStorm::T_Topic)
            T_Topic = ::Ice::__declareClass('::IceStorm::Topic')
            T_TopicPrx = ::Ice::__declareProxy('::IceStorm::Topic')
        end

        T_Topic.defineClass(Topic, -1, true, false, nil, [], [])
        Topic_mixin::ICE_TYPE = T_Topic

        T_TopicPrx.defineProxy(TopicPrx, T_Topic)
        TopicPrx::ICE_TYPE = T_TopicPrx

        Topic_mixin::OP_getName = ::Ice::__defineOperation('getName', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [], [], [::Ice::T_string, false, 0], [])
        Topic_mixin::OP_getPublisher = ::Ice::__defineOperation('getPublisher', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [], [], [::Ice::T_ObjectPrx, false, 0], [])
        Topic_mixin::OP_getNonReplicatedPublisher = ::Ice::__defineOperation('getNonReplicatedPublisher', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [], [], [::Ice::T_ObjectPrx, false, 0], [])
        Topic_mixin::OP_subscribe = ::Ice::__defineOperation('subscribe', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, false, nil, [[::IceStorm::T_QoS, false, 0], [::Ice::T_ObjectPrx, false, 0]], [], nil, [])
        Topic_mixin::OP_subscribe.deprecate("subscribe is deprecated, use subscribeAndGetPublisher instead")
        Topic_mixin::OP_subscribeAndGetPublisher = ::Ice::__defineOperation('subscribeAndGetPublisher', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, false, nil, [[::IceStorm::T_QoS, false, 0], [::Ice::T_ObjectPrx, false, 0]], [], [::Ice::T_ObjectPrx, false, 0], [::IceStorm::T_AlreadySubscribed, ::IceStorm::T_BadQoS])
        Topic_mixin::OP_unsubscribe = ::Ice::__defineOperation('unsubscribe', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, false, nil, [[::Ice::T_ObjectPrx, false, 0]], [], nil, [])
        Topic_mixin::OP_link = ::Ice::__defineOperation('link', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, false, nil, [[::IceStorm::T_TopicPrx, false, 0], [::Ice::T_int, false, 0]], [], nil, [::IceStorm::T_LinkExists])
        Topic_mixin::OP_unlink = ::Ice::__defineOperation('unlink', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, false, nil, [[::IceStorm::T_TopicPrx, false, 0]], [], nil, [::IceStorm::T_NoSuchLink])
        Topic_mixin::OP_getLinkInfoSeq = ::Ice::__defineOperation('getLinkInfoSeq', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [], [], [::IceStorm::T_LinkInfoSeq, false, 0], [])
        Topic_mixin::OP_getSubscribers = ::Ice::__defineOperation('getSubscribers', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, false, nil, [], [], [::Ice::T_IdentitySeq, false, 0], [])
        Topic_mixin::OP_destroy = ::Ice::__defineOperation('destroy', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, false, nil, [], [], nil, [])
    end

    if not defined?(::IceStorm::T_TopicDict)
        T_TopicDict = ::Ice::__defineDictionary('::IceStorm::TopicDict', ::Ice::T_string, ::IceStorm::T_TopicPrx)
    end

    if not defined?(::IceStorm::TopicExists)
        class TopicExists < Ice::UserException
            def initialize(name='')
                @name = name
            end

            def to_s
                'IceStorm::TopicExists'
            end

            attr_accessor :name
        end

        T_TopicExists = ::Ice::__defineException('::IceStorm::TopicExists', TopicExists, false, nil, [["name", ::Ice::T_string, false, 0]])
        TopicExists::ICE_TYPE = T_TopicExists
    end

    if not defined?(::IceStorm::NoSuchTopic)
        class NoSuchTopic < Ice::UserException
            def initialize(name='')
                @name = name
            end

            def to_s
                'IceStorm::NoSuchTopic'
            end

            attr_accessor :name
        end

        T_NoSuchTopic = ::Ice::__defineException('::IceStorm::NoSuchTopic', NoSuchTopic, false, nil, [["name", ::Ice::T_string, false, 0]])
        NoSuchTopic::ICE_TYPE = T_NoSuchTopic
    end

    if not defined?(::IceStorm::TopicManager_mixin)
        module TopicManager_mixin
            include ::Ice::Object_mixin

            def ice_ids(current=nil)
                ['::Ice::Object', '::IceStorm::TopicManager']
            end

            def ice_id(current=nil)
                '::IceStorm::TopicManager'
            end

            #
            # Operation signatures.
            #
            # def create(name, current=nil)
            # def retrieve(name, current=nil)
            # def retrieveAll(current=nil)
            # def getSliceChecksums(current=nil)

            def inspect
                ::Ice::__stringify(self, T_TopicManager)
            end
        end
        class TopicManager
            include TopicManager_mixin
            
            def TopicManager.ice_staticId()
                '::IceStorm::TopicManager'
            end
        end
        module TopicManagerPrx_mixin

            def create(name, _ctx=nil)
                TopicManager_mixin::OP_create.invoke(self, [name], _ctx)
            end

            def retrieve(name, _ctx=nil)
                TopicManager_mixin::OP_retrieve.invoke(self, [name], _ctx)
            end

            def retrieveAll(_ctx=nil)
                TopicManager_mixin::OP_retrieveAll.invoke(self, [], _ctx)
            end

            def getSliceChecksums(_ctx=nil)
                TopicManager_mixin::OP_getSliceChecksums.invoke(self, [], _ctx)
            end
        end
        class TopicManagerPrx < ::Ice::ObjectPrx
            include TopicManagerPrx_mixin

            def TopicManagerPrx.checkedCast(proxy, facetOrCtx=nil, _ctx=nil)
                ice_checkedCast(proxy, '::IceStorm::TopicManager', facetOrCtx, _ctx)
            end

            def TopicManagerPrx.uncheckedCast(proxy, facet=nil)
                ice_uncheckedCast(proxy, facet)
            end
        end

        if not defined?(::IceStorm::T_TopicManager)
            T_TopicManager = ::Ice::__declareClass('::IceStorm::TopicManager')
            T_TopicManagerPrx = ::Ice::__declareProxy('::IceStorm::TopicManager')
        end

        T_TopicManager.defineClass(TopicManager, -1, true, false, nil, [], [])
        TopicManager_mixin::ICE_TYPE = T_TopicManager

        T_TopicManagerPrx.defineProxy(TopicManagerPrx, T_TopicManager)
        TopicManagerPrx::ICE_TYPE = T_TopicManagerPrx

        TopicManager_mixin::OP_create = ::Ice::__defineOperation('create', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, false, nil, [[::Ice::T_string, false, 0]], [], [::IceStorm::T_TopicPrx, false, 0], [::IceStorm::T_TopicExists])
        TopicManager_mixin::OP_retrieve = ::Ice::__defineOperation('retrieve', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [[::Ice::T_string, false, 0]], [], [::IceStorm::T_TopicPrx, false, 0], [::IceStorm::T_NoSuchTopic])
        TopicManager_mixin::OP_retrieveAll = ::Ice::__defineOperation('retrieveAll', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [], [], [::IceStorm::T_TopicDict, false, 0], [])
        TopicManager_mixin::OP_getSliceChecksums = ::Ice::__defineOperation('getSliceChecksums', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Nonmutating, false, nil, [], [], [::Ice::T_SliceChecksumDict, false, 0], [])
    end
end