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

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

_omnipy.checkVersion(3,0, __file__)


#
# Start of module "SALOME_RessourcesCatalog"
#
__name__ = "SALOME_RessourcesCatalog"
_0_SALOME_RessourcesCatalog = omniORB.openModule("SALOME_RessourcesCatalog", r".././../idl/SALOME_RessourcesCatalog.idl")
_0_SALOME_RessourcesCatalog__POA = omniORB.openModule("SALOME_RessourcesCatalog__POA", r".././../idl/SALOME_RessourcesCatalog.idl")


# struct proc_info
_0_SALOME_RessourcesCatalog.proc_info = omniORB.newEmptyClass()
class proc_info (omniORB.StructBase):
    _NP_RepositoryId = "IDL:SALOME_RessourcesCatalog/proc_info:1.0"

    def __init__(self, number, model_name, cpu_mhz, cache_size):
        self.number = number
        self.model_name = model_name
        self.cpu_mhz = cpu_mhz
        self.cache_size = cache_size

_0_SALOME_RessourcesCatalog.proc_info = proc_info
_0_SALOME_RessourcesCatalog._d_proc_info  = (omniORB.tcInternal.tv_struct, proc_info, proc_info._NP_RepositoryId, "proc_info", "number", omniORB.tcInternal.tv_long, "model_name", (omniORB.tcInternal.tv_string,0), "cpu_mhz", omniORB.tcInternal.tv_float, "cache_size", omniORB.tcInternal.tv_float)
_0_SALOME_RessourcesCatalog._tc_proc_info = omniORB.tcInternal.createTypeCode(_0_SALOME_RessourcesCatalog._d_proc_info)
omniORB.registerType(proc_info._NP_RepositoryId, _0_SALOME_RessourcesCatalog._d_proc_info, _0_SALOME_RessourcesCatalog._tc_proc_info)
del proc_info

# typedef ... ListOfProc
class ListOfProc:
    _NP_RepositoryId = "IDL:SALOME_RessourcesCatalog/ListOfProc:1.0"
    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")
_0_SALOME_RessourcesCatalog.ListOfProc = ListOfProc
_0_SALOME_RessourcesCatalog._d_ListOfProc  = (omniORB.tcInternal.tv_sequence, omniORB.typeMapping["IDL:SALOME_RessourcesCatalog/proc_info:1.0"], 0)
_0_SALOME_RessourcesCatalog._ad_ListOfProc = (omniORB.tcInternal.tv_alias, ListOfProc._NP_RepositoryId, "ListOfProc", (omniORB.tcInternal.tv_sequence, omniORB.typeMapping["IDL:SALOME_RessourcesCatalog/proc_info:1.0"], 0))
_0_SALOME_RessourcesCatalog._tc_ListOfProc = omniORB.tcInternal.createTypeCode(_0_SALOME_RessourcesCatalog._ad_ListOfProc)
omniORB.registerType(ListOfProc._NP_RepositoryId, _0_SALOME_RessourcesCatalog._ad_ListOfProc, _0_SALOME_RessourcesCatalog._tc_ListOfProc)
del ListOfProc

# struct computer_info
_0_SALOME_RessourcesCatalog.computer_info = omniORB.newEmptyClass()
class computer_info (omniORB.StructBase):
    _NP_RepositoryId = "IDL:SALOME_RessourcesCatalog/computer_info:1.0"

    def __init__(self, name, OS, OS_version, procs):
        self.name = name
        self.OS = OS
        self.OS_version = OS_version
        self.procs = procs

_0_SALOME_RessourcesCatalog.computer_info = computer_info
_0_SALOME_RessourcesCatalog._d_computer_info  = (omniORB.tcInternal.tv_struct, computer_info, computer_info._NP_RepositoryId, "computer_info", "name", (omniORB.tcInternal.tv_string,0), "OS", (omniORB.tcInternal.tv_string,0), "OS_version", (omniORB.tcInternal.tv_string,0), "procs", omniORB.typeMapping["IDL:SALOME_RessourcesCatalog/ListOfProc:1.0"])
_0_SALOME_RessourcesCatalog._tc_computer_info = omniORB.tcInternal.createTypeCode(_0_SALOME_RessourcesCatalog._d_computer_info)
omniORB.registerType(computer_info._NP_RepositoryId, _0_SALOME_RessourcesCatalog._d_computer_info, _0_SALOME_RessourcesCatalog._tc_computer_info)
del computer_info

# enum ContainerType
_0_SALOME_RessourcesCatalog.Cpp = omniORB.EnumItem("Cpp", 0)
_0_SALOME_RessourcesCatalog.python = omniORB.EnumItem("python", 1)
_0_SALOME_RessourcesCatalog.NP = omniORB.EnumItem("NP", 2)
_0_SALOME_RessourcesCatalog.ContainerType = omniORB.Enum("IDL:SALOME_RessourcesCatalog/ContainerType:1.0", (_0_SALOME_RessourcesCatalog.Cpp, _0_SALOME_RessourcesCatalog.python, _0_SALOME_RessourcesCatalog.NP,))

_0_SALOME_RessourcesCatalog._d_ContainerType  = (omniORB.tcInternal.tv_enum, _0_SALOME_RessourcesCatalog.ContainerType._NP_RepositoryId, "ContainerType", _0_SALOME_RessourcesCatalog.ContainerType._items)
_0_SALOME_RessourcesCatalog._tc_ContainerType = omniORB.tcInternal.createTypeCode(_0_SALOME_RessourcesCatalog._d_ContainerType)
omniORB.registerType(_0_SALOME_RessourcesCatalog.ContainerType._NP_RepositoryId, _0_SALOME_RessourcesCatalog._d_ContainerType, _0_SALOME_RessourcesCatalog._tc_ContainerType)

# typedef ... ListOfContainerType
class ListOfContainerType:
    _NP_RepositoryId = "IDL:SALOME_RessourcesCatalog/ListOfContainerType:1.0"
    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")
_0_SALOME_RessourcesCatalog.ListOfContainerType = ListOfContainerType
_0_SALOME_RessourcesCatalog._d_ListOfContainerType  = (omniORB.tcInternal.tv_sequence, omniORB.typeMapping["IDL:SALOME_RessourcesCatalog/ContainerType:1.0"], 0)
_0_SALOME_RessourcesCatalog._ad_ListOfContainerType = (omniORB.tcInternal.tv_alias, ListOfContainerType._NP_RepositoryId, "ListOfContainerType", (omniORB.tcInternal.tv_sequence, omniORB.typeMapping["IDL:SALOME_RessourcesCatalog/ContainerType:1.0"], 0))
_0_SALOME_RessourcesCatalog._tc_ListOfContainerType = omniORB.tcInternal.createTypeCode(_0_SALOME_RessourcesCatalog._ad_ListOfContainerType)
omniORB.registerType(ListOfContainerType._NP_RepositoryId, _0_SALOME_RessourcesCatalog._ad_ListOfContainerType, _0_SALOME_RessourcesCatalog._tc_ListOfContainerType)
del ListOfContainerType

# typedef ... ListOfComputer
class ListOfComputer:
    _NP_RepositoryId = "IDL:SALOME_RessourcesCatalog/ListOfComputer:1.0"
    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")
_0_SALOME_RessourcesCatalog.ListOfComputer = ListOfComputer
_0_SALOME_RessourcesCatalog._d_ListOfComputer  = (omniORB.tcInternal.tv_sequence, (omniORB.tcInternal.tv_string,0), 0)
_0_SALOME_RessourcesCatalog._ad_ListOfComputer = (omniORB.tcInternal.tv_alias, ListOfComputer._NP_RepositoryId, "ListOfComputer", (omniORB.tcInternal.tv_sequence, (omniORB.tcInternal.tv_string,0), 0))
_0_SALOME_RessourcesCatalog._tc_ListOfComputer = omniORB.tcInternal.createTypeCode(_0_SALOME_RessourcesCatalog._ad_ListOfComputer)
omniORB.registerType(ListOfComputer._NP_RepositoryId, _0_SALOME_RessourcesCatalog._ad_ListOfComputer, _0_SALOME_RessourcesCatalog._tc_ListOfComputer)
del ListOfComputer

# exception NotFound
_0_SALOME_RessourcesCatalog.NotFound = omniORB.newEmptyClass()
class NotFound (CORBA.UserException):
    _NP_RepositoryId = "IDL:SALOME_RessourcesCatalog/NotFound:1.0"

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

_0_SALOME_RessourcesCatalog.NotFound = NotFound
_0_SALOME_RessourcesCatalog._d_NotFound  = (omniORB.tcInternal.tv_except, NotFound, NotFound._NP_RepositoryId, "NotFound")
_0_SALOME_RessourcesCatalog._tc_NotFound = omniORB.tcInternal.createTypeCode(_0_SALOME_RessourcesCatalog._d_NotFound)
omniORB.registerType(NotFound._NP_RepositoryId, _0_SALOME_RessourcesCatalog._d_NotFound, _0_SALOME_RessourcesCatalog._tc_NotFound)
del NotFound

# interface RessourcesCatalog
_0_SALOME_RessourcesCatalog._d_RessourcesCatalog = (omniORB.tcInternal.tv_objref, "IDL:SALOME_RessourcesCatalog/RessourcesCatalog:1.0", "RessourcesCatalog")
omniORB.typeMapping["IDL:SALOME_RessourcesCatalog/RessourcesCatalog:1.0"] = _0_SALOME_RessourcesCatalog._d_RessourcesCatalog
_0_SALOME_RessourcesCatalog.RessourcesCatalog = omniORB.newEmptyClass()
class RessourcesCatalog :
    _NP_RepositoryId = _0_SALOME_RessourcesCatalog._d_RessourcesCatalog[1]

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

    _nil = CORBA.Object._nil


_0_SALOME_RessourcesCatalog.RessourcesCatalog = RessourcesCatalog
_0_SALOME_RessourcesCatalog._tc_RessourcesCatalog = omniORB.tcInternal.createTypeCode(_0_SALOME_RessourcesCatalog._d_RessourcesCatalog)
omniORB.registerType(RessourcesCatalog._NP_RepositoryId, _0_SALOME_RessourcesCatalog._d_RessourcesCatalog, _0_SALOME_RessourcesCatalog._tc_RessourcesCatalog)

# RessourcesCatalog operations and attributes
RessourcesCatalog._d_GetComputerList = ((), (omniORB.typeMapping["IDL:SALOME_RessourcesCatalog/ListOfComputer:1.0"], ), None)
RessourcesCatalog._d_GetContainerTypeList = (((omniORB.tcInternal.tv_string,0), ), (omniORB.typeMapping["IDL:SALOME_RessourcesCatalog/ListOfContainerType:1.0"], ), {_0_SALOME_RessourcesCatalog.NotFound._NP_RepositoryId: _0_SALOME_RessourcesCatalog._d_NotFound})
RessourcesCatalog._d_GetComputerInfo = (((omniORB.tcInternal.tv_string,0), ), (omniORB.typeMapping["IDL:SALOME_RessourcesCatalog/computer_info:1.0"], ), {_0_SALOME_RessourcesCatalog.NotFound._NP_RepositoryId: _0_SALOME_RessourcesCatalog._d_NotFound})

# RessourcesCatalog object reference
class _objref_RessourcesCatalog (CORBA.Object):
    _NP_RepositoryId = RessourcesCatalog._NP_RepositoryId

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

    def GetComputerList(self, *args):
        return _omnipy.invoke(self, "GetComputerList", _0_SALOME_RessourcesCatalog.RessourcesCatalog._d_GetComputerList, args)

    def GetContainerTypeList(self, *args):
        return _omnipy.invoke(self, "GetContainerTypeList", _0_SALOME_RessourcesCatalog.RessourcesCatalog._d_GetContainerTypeList, args)

    def GetComputerInfo(self, *args):
        return _omnipy.invoke(self, "GetComputerInfo", _0_SALOME_RessourcesCatalog.RessourcesCatalog._d_GetComputerInfo, args)

    __methods__ = ["GetComputerList", "GetContainerTypeList", "GetComputerInfo"] + CORBA.Object.__methods__

omniORB.registerObjref(RessourcesCatalog._NP_RepositoryId, _objref_RessourcesCatalog)
_0_SALOME_RessourcesCatalog._objref_RessourcesCatalog = _objref_RessourcesCatalog
del RessourcesCatalog, _objref_RessourcesCatalog

# RessourcesCatalog skeleton
__name__ = "SALOME_RessourcesCatalog__POA"
class RessourcesCatalog (PortableServer.Servant):
    _NP_RepositoryId = _0_SALOME_RessourcesCatalog.RessourcesCatalog._NP_RepositoryId


    _omni_op_d = {"GetComputerList": _0_SALOME_RessourcesCatalog.RessourcesCatalog._d_GetComputerList, "GetContainerTypeList": _0_SALOME_RessourcesCatalog.RessourcesCatalog._d_GetContainerTypeList, "GetComputerInfo": _0_SALOME_RessourcesCatalog.RessourcesCatalog._d_GetComputerInfo}

RessourcesCatalog._omni_skeleton = RessourcesCatalog
_0_SALOME_RessourcesCatalog__POA.RessourcesCatalog = RessourcesCatalog
omniORB.registerSkeleton(RessourcesCatalog._NP_RepositoryId, RessourcesCatalog)
del RessourcesCatalog
__name__ = "SALOME_RessourcesCatalog"

#
# End of module "SALOME_RessourcesCatalog"
#
__name__ = "SALOME_RessourcesCatalog_idl"

_exported_modules = ( "SALOME_RessourcesCatalog", )

# The end.
