Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space IceMaster and version 3.7.1

...

Another method defined by every proxy class is ice_staticId, which returns the type ID string corresponding to the interface. As an example, for the Slice interface Simple in module M, the string returned by ice_staticId is "::M::Simple".

Ztop

Interface Inheritance in Python

Inheritance relationships among Slice interfaces are maintained in the generated Python classes. For example:

Code Block
languageslice
titleSlice
interface A { ... }
interface B { ... }
interface C extends A, B { ... }

The generated code for CPrx reflects the inheritance hierarchy:

Code Block
languagepy
titlePython
class CPrx(APrx, BPrx):
    ...

Given a proxy for C, a client can invoke any operation defined for interface C, as well as any operation inherited from C's base interfaces.

Ztop
Anchor
ObjectPrx
ObjectPrx

Ice.ObjectPrx Class in Python

...