# Python stubs generated by omniidl from ..\..\..\..\..\idl\pollable.idl
# DO NOT EDIT THIS FILE!

import omniORB, _omnipy
from omniORB import CORBA, PortableServer
_0_CORBA = CORBA


_omnipy.checkVersion(4,2, __file__, 1)

try:
    property
except NameError:
    def property(*args):
        return None


#
# Start of module "CORBA"
#
__name__ = "CORBA"
_0_CORBA = omniORB.openModule("CORBA", r"..\..\..\..\..\idl\pollable.idl")
_0_CORBA__POA = omniORB.openModule("CORBA__POA", r"..\..\..\..\..\idl\pollable.idl")


# forward interface PollableSet;
_0_CORBA._d_PollableSet = (omniORB.tcInternal.tv_objref, "IDL:omg.org/CORBA/PollableSet:1.0", "PollableSet")
omniORB.typeMapping["IDL:omg.org/CORBA/PollableSet:1.0"] = _0_CORBA._d_PollableSet

# abstract valuetype Pollable
class Pollable (_0_CORBA.ValueBase):
    _NP_RepositoryId = "IDL:omg.org/CORBA/Pollable:1.0"

    def __init__(self, *args, **kwargs):
        raise RuntimeError("Cannot construct objects of this type.")

_0_CORBA.Pollable = Pollable
_0_CORBA._d_Pollable  = (omniORB.tcInternal.tv_value, Pollable, Pollable._NP_RepositoryId, "Pollable", _0_CORBA.VM_ABSTRACT, None, _0_CORBA.tcInternal.tv_null, )
_0_CORBA._tc_Pollable = omniORB.tcInternal.createTypeCode(_0_CORBA._d_Pollable)
omniORB.registerType(Pollable._NP_RepositoryId, _0_CORBA._d_Pollable, _0_CORBA._tc_Pollable)
del Pollable


# abstract valuetype DIIPollable
class DIIPollable (_0_CORBA.Pollable):
    _NP_RepositoryId = "IDL:omg.org/CORBA/DIIPollable:1.0"

    def __init__(self, *args, **kwargs):
        raise RuntimeError("Cannot construct objects of this type.")

_0_CORBA.DIIPollable = DIIPollable
_0_CORBA._d_DIIPollable  = (omniORB.tcInternal.tv_value, DIIPollable, DIIPollable._NP_RepositoryId, "DIIPollable", _0_CORBA.VM_ABSTRACT, None, _0_CORBA.tcInternal.tv_null, )
_0_CORBA._tc_DIIPollable = omniORB.tcInternal.createTypeCode(_0_CORBA._d_DIIPollable)
omniORB.registerType(DIIPollable._NP_RepositoryId, _0_CORBA._d_DIIPollable, _0_CORBA._tc_DIIPollable)
del DIIPollable


# interface PollableSet
_0_CORBA._d_PollableSet = (omniORB.tcInternal.tv_objref, "IDL:omg.org/CORBA/PollableSet:1.0", "PollableSet")
omniORB.typeMapping["IDL:omg.org/CORBA/PollableSet:1.0"] = _0_CORBA._d_PollableSet
_0_CORBA.PollableSet = omniORB.newEmptyClass()
class PollableSet :
    _NP_RepositoryId = _0_CORBA._d_PollableSet[1]

    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")

    _nil = CORBA.Object._nil

    
    # exception NoPossiblePollable
    _0_CORBA.PollableSet.NoPossiblePollable = omniORB.newEmptyClass()
    class NoPossiblePollable (CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CORBA/PollableSet/NoPossiblePollable:1.0"

        _NP_ClassName = "CORBA.PollableSet.NoPossiblePollable"

        def __init__(self):
            CORBA.UserException.__init__(self)
    
    _d_NoPossiblePollable  = (omniORB.tcInternal.tv_except, NoPossiblePollable, NoPossiblePollable._NP_RepositoryId, "NoPossiblePollable")
    _tc_NoPossiblePollable = omniORB.tcInternal.createTypeCode(_d_NoPossiblePollable)
    omniORB.registerType(NoPossiblePollable._NP_RepositoryId, _d_NoPossiblePollable, _tc_NoPossiblePollable)
    
    # exception UnknownPollable
    _0_CORBA.PollableSet.UnknownPollable = omniORB.newEmptyClass()
    class UnknownPollable (CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CORBA/PollableSet/UnknownPollable:1.0"

        _NP_ClassName = "CORBA.PollableSet.UnknownPollable"

        def __init__(self):
            CORBA.UserException.__init__(self)
    
    _d_UnknownPollable  = (omniORB.tcInternal.tv_except, UnknownPollable, UnknownPollable._NP_RepositoryId, "UnknownPollable")
    _tc_UnknownPollable = omniORB.tcInternal.createTypeCode(_d_UnknownPollable)
    omniORB.registerType(UnknownPollable._NP_RepositoryId, _d_UnknownPollable, _tc_UnknownPollable)


_0_CORBA.PollableSet = PollableSet
_0_CORBA._tc_PollableSet = omniORB.tcInternal.createTypeCode(_0_CORBA._d_PollableSet)
omniORB.registerType(PollableSet._NP_RepositoryId, _0_CORBA._d_PollableSet, _0_CORBA._tc_PollableSet)

# PollableSet operations and attributes
PollableSet._d_create_dii_pollable = ((), (omniORB.typeMapping["IDL:omg.org/CORBA/DIIPollable:1.0"], ), None, None, 1)
PollableSet._d_add_pollable = ((omniORB.typeMapping["IDL:omg.org/CORBA/Pollable:1.0"], ), (), None, None, 1)
PollableSet._d_get_ready_pollable = ((omniORB.tcInternal.tv_ulong, ), (omniORB.typeMapping["IDL:omg.org/CORBA/Pollable:1.0"], ), {_0_CORBA.PollableSet.NoPossiblePollable._NP_RepositoryId: _0_CORBA.PollableSet._d_NoPossiblePollable}, None, 1)
PollableSet._d_remove = ((omniORB.typeMapping["IDL:omg.org/CORBA/Pollable:1.0"], ), (), {_0_CORBA.PollableSet.UnknownPollable._NP_RepositoryId: _0_CORBA.PollableSet._d_UnknownPollable}, None, 1)
PollableSet._d_number_left = ((), (omniORB.tcInternal.tv_ushort, ), None)

# PollableSet object reference
class _objref_PollableSet (CORBA.Object):
    _NP_RepositoryId = PollableSet._NP_RepositoryId

    def __init__(self, obj):
        CORBA.Object.__init__(self, obj)

    def create_dii_pollable(self, *args):
        return self._obj.invoke("create_dii_pollable", _0_CORBA.PollableSet._d_create_dii_pollable, args)

    def add_pollable(self, *args):
        return self._obj.invoke("add_pollable", _0_CORBA.PollableSet._d_add_pollable, args)

    def get_ready_pollable(self, *args):
        return self._obj.invoke("get_ready_pollable", _0_CORBA.PollableSet._d_get_ready_pollable, args)

    def remove(self, *args):
        return self._obj.invoke("remove", _0_CORBA.PollableSet._d_remove, args)

    def number_left(self, *args):
        return self._obj.invoke("number_left", _0_CORBA.PollableSet._d_number_left, args)

omniORB.registerObjref(PollableSet._NP_RepositoryId, _objref_PollableSet)
_0_CORBA._objref_PollableSet = _objref_PollableSet
del PollableSet, _objref_PollableSet

# PollableSet skeleton
__name__ = "CORBA__POA"
class PollableSet (PortableServer.Servant):
    _NP_RepositoryId = _0_CORBA.PollableSet._NP_RepositoryId


    _omni_op_d = {"create_dii_pollable": _0_CORBA.PollableSet._d_create_dii_pollable, "add_pollable": _0_CORBA.PollableSet._d_add_pollable, "get_ready_pollable": _0_CORBA.PollableSet._d_get_ready_pollable, "remove": _0_CORBA.PollableSet._d_remove, "number_left": _0_CORBA.PollableSet._d_number_left}

PollableSet._omni_skeleton = PollableSet
_0_CORBA__POA.PollableSet = PollableSet
omniORB.registerSkeleton(PollableSet._NP_RepositoryId, PollableSet)
del PollableSet
__name__ = "CORBA"

#
# End of module "CORBA"
#
__name__ = "pollable_idl"

_exported_modules = ( "CORBA", )

# The end.
