# Python stubs generated by omniidl from .././../idl/SALOME_GenericObj.idl

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

_omnipy.checkVersion(3,0, __file__)


#
# Start of module "SALOME"
#
__name__ = "SALOME"
_0_SALOME = omniORB.openModule("SALOME", r".././../idl/SALOME_GenericObj.idl")
_0_SALOME__POA = omniORB.openModule("SALOME__POA", r".././../idl/SALOME_GenericObj.idl")


# interface GenericObj
_0_SALOME._d_GenericObj = (omniORB.tcInternal.tv_objref, "IDL:SALOME/GenericObj:1.0", "GenericObj")
omniORB.typeMapping["IDL:SALOME/GenericObj:1.0"] = _0_SALOME._d_GenericObj
_0_SALOME.GenericObj = omniORB.newEmptyClass()
class GenericObj :
    _NP_RepositoryId = _0_SALOME._d_GenericObj[1]

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

    _nil = CORBA.Object._nil


_0_SALOME.GenericObj = GenericObj
_0_SALOME._tc_GenericObj = omniORB.tcInternal.createTypeCode(_0_SALOME._d_GenericObj)
omniORB.registerType(GenericObj._NP_RepositoryId, _0_SALOME._d_GenericObj, _0_SALOME._tc_GenericObj)

# GenericObj operations and attributes
GenericObj._d_Register = ((), (), None)
GenericObj._d_Destroy = ((), (), None)

# GenericObj object reference
class _objref_GenericObj (CORBA.Object):
    _NP_RepositoryId = GenericObj._NP_RepositoryId

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

    def Register(self, *args):
        return _omnipy.invoke(self, "Register", _0_SALOME.GenericObj._d_Register, args)

    def Destroy(self, *args):
        return _omnipy.invoke(self, "Destroy", _0_SALOME.GenericObj._d_Destroy, args)

    __methods__ = ["Register", "Destroy"] + CORBA.Object.__methods__

omniORB.registerObjref(GenericObj._NP_RepositoryId, _objref_GenericObj)
_0_SALOME._objref_GenericObj = _objref_GenericObj
del GenericObj, _objref_GenericObj

# GenericObj skeleton
__name__ = "SALOME__POA"
class GenericObj (PortableServer.Servant):
    _NP_RepositoryId = _0_SALOME.GenericObj._NP_RepositoryId


    _omni_op_d = {"Register": _0_SALOME.GenericObj._d_Register, "Destroy": _0_SALOME.GenericObj._d_Destroy}

GenericObj._omni_skeleton = GenericObj
_0_SALOME__POA.GenericObj = GenericObj
omniORB.registerSkeleton(GenericObj._NP_RepositoryId, GenericObj)
del GenericObj
__name__ = "SALOME"

#
# End of module "SALOME"
#
__name__ = "SALOME_GenericObj_idl"

_exported_modules = ( "SALOME", )

# The end.
