# Python stubs generated by omniidl from /local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-9.0.2/idl/hpp/corbaserver/tools.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


# #include "hpp/common.idl"
import hpp_stubs.common_idl
_0_hpp = omniORB.openModule("hpp_stubs.hpp")
_0_hpp__POA = omniORB.openModule("hpp_stubs.hpp__POA")

#
# Start of module "hpp"
#
__name__ = "hpp_idl.hpp"
_0_hpp = omniORB.openModule("hpp_idl.hpp", r"/local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-9.0.2/idl/hpp/corbaserver/tools.idl")
_0_hpp__POA = omniORB.openModule("hpp_idl.hpp__POA", r"/local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-9.0.2/idl/hpp/corbaserver/tools.idl")


# interface Tools
_0_hpp._d_Tools = (omniORB.tcInternal.tv_objref, "IDL:hpp/Tools:1.0", "Tools")
omniORB.typeMapping["IDL:hpp/Tools:1.0"] = _0_hpp._d_Tools
_0_hpp.Tools = omniORB.newEmptyClass()
class Tools :
    _NP_RepositoryId = _0_hpp._d_Tools[1]

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

    _nil = CORBA.Object._nil

    loadServerPlugin__doc__ = "Load a plugin that creates a CORBA interface.\012\134param pluginName either an absolute filename or a filename relative\012                  to `<a_path_in_LD_LIBRARY_PATH>/hppPlugins`.\012\134note The plugin will be available for any problem (even after resetting it).\012\134note The context is created if it does not exists.\012\012Prototype:\011    boolean loadServerPlugin (in string context_, in string pluginName) raises (Error);\012"
    createContext__doc__ = "Create a new context.\012\012A context is a set of servant classes that works on a ProblemSolver.\012\012All contexts share the same map of ProblemSolver. Each context can\012whichever ProblemSolver in this map.\012\012Prototype:\011    boolean createContext (in string context_) raises (Error);\012"
    getContexts__doc__ = "List the existing contexts.\012\012Prototype:\011    Names_t getContexts () raises (Error);\012"
    deleteContext__doc__ = "Remove a context.\012\134return True if effectively deleted and False if not found.\012\012Prototype:\011    boolean deleteContext (in string context_) raises (Error);\012"
    getServer__doc__ = "Get a server object\012\012Prototype:\011    Object getServer (in string context_, in string pluginName, in string objectname) raises (Error);\012"
    deleteServant__doc__ = "Delete a servant\012It throws an exception if the object could not be deleted.\012\012Prototype:\011    void deleteServant (in string id) raises (Error);\012"
    deleteAllServants__doc__ = "\012Prototype:\011    void deleteAllServants () raises (Error);\012"
    getAllServants__doc__ = "\012Prototype:\011    Names_t getAllServants() raises (Error);\012"
    shutdown__doc__ = "Shutdown the server.\012\012Prototype:\011    void shutdown ();\012"


_0_hpp.Tools = Tools
_0_hpp._tc_Tools = omniORB.tcInternal.createTypeCode(_0_hpp._d_Tools)
omniORB.registerType(Tools._NP_RepositoryId, _0_hpp._d_Tools, _0_hpp._tc_Tools)

# Tools operations and attributes
Tools._d_loadServerPlugin = (((omniORB.tcInternal.tv_string,0), (omniORB.tcInternal.tv_string,0)), (omniORB.tcInternal.tv_boolean, ), {_0_hpp.Error._NP_RepositoryId: _0_hpp._d_Error})
Tools._d_createContext = (((omniORB.tcInternal.tv_string,0), ), (omniORB.tcInternal.tv_boolean, ), {_0_hpp.Error._NP_RepositoryId: _0_hpp._d_Error})
Tools._d_getContexts = ((), (omniORB.typeMapping["IDL:hpp/Names_t:1.0"], ), {_0_hpp.Error._NP_RepositoryId: _0_hpp._d_Error})
Tools._d_deleteContext = (((omniORB.tcInternal.tv_string,0), ), (omniORB.tcInternal.tv_boolean, ), {_0_hpp.Error._NP_RepositoryId: _0_hpp._d_Error})
Tools._d_getServer = (((omniORB.tcInternal.tv_string,0), (omniORB.tcInternal.tv_string,0), (omniORB.tcInternal.tv_string,0)), (omniORB.typeMapping["IDL:omg.org/CORBA/Object:1.0"], ), {_0_hpp.Error._NP_RepositoryId: _0_hpp._d_Error})
Tools._d_deleteServant = (((omniORB.tcInternal.tv_string,0), ), (), {_0_hpp.Error._NP_RepositoryId: _0_hpp._d_Error})
Tools._d_deleteAllServants = ((), (), {_0_hpp.Error._NP_RepositoryId: _0_hpp._d_Error})
Tools._d_getAllServants = ((), (omniORB.typeMapping["IDL:hpp/Names_t:1.0"], ), {_0_hpp.Error._NP_RepositoryId: _0_hpp._d_Error})
Tools._d_shutdown = ((), (), None)

# Tools object reference
class _objref_Tools (CORBA.Object):
    _NP_RepositoryId = Tools._NP_RepositoryId

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

    def loadServerPlugin(self, *args):
        return self._obj.invoke("loadServerPlugin", _0_hpp.Tools._d_loadServerPlugin, args)

    def createContext(self, *args):
        return self._obj.invoke("createContext", _0_hpp.Tools._d_createContext, args)

    def getContexts(self, *args):
        return self._obj.invoke("getContexts", _0_hpp.Tools._d_getContexts, args)

    def deleteContext(self, *args):
        return self._obj.invoke("deleteContext", _0_hpp.Tools._d_deleteContext, args)

    def getServer(self, *args):
        return self._obj.invoke("getServer", _0_hpp.Tools._d_getServer, args)

    def deleteServant(self, *args):
        return self._obj.invoke("deleteServant", _0_hpp.Tools._d_deleteServant, args)

    def deleteAllServants(self, *args):
        return self._obj.invoke("deleteAllServants", _0_hpp.Tools._d_deleteAllServants, args)

    def getAllServants(self, *args):
        return self._obj.invoke("getAllServants", _0_hpp.Tools._d_getAllServants, args)

    def shutdown(self, *args):
        return self._obj.invoke("shutdown", _0_hpp.Tools._d_shutdown, args)

omniORB.registerObjref(Tools._NP_RepositoryId, _objref_Tools)
_0_hpp._objref_Tools = _objref_Tools
del Tools, _objref_Tools

# Tools skeleton
__name__ = "hpp_idl.hpp__POA"
class Tools (PortableServer.Servant):
    _NP_RepositoryId = _0_hpp.Tools._NP_RepositoryId


    _omni_op_d = {"loadServerPlugin": _0_hpp.Tools._d_loadServerPlugin, "createContext": _0_hpp.Tools._d_createContext, "getContexts": _0_hpp.Tools._d_getContexts, "deleteContext": _0_hpp.Tools._d_deleteContext, "getServer": _0_hpp.Tools._d_getServer, "deleteServant": _0_hpp.Tools._d_deleteServant, "deleteAllServants": _0_hpp.Tools._d_deleteAllServants, "getAllServants": _0_hpp.Tools._d_getAllServants, "shutdown": _0_hpp.Tools._d_shutdown}

Tools._omni_skeleton = Tools
_0_hpp__POA.Tools = Tools
omniORB.registerSkeleton(Tools._NP_RepositoryId, Tools)
del Tools
__name__ = "hpp_idl.hpp"
_0_hpp.Tools__doc__ = "Utilities to create new contexts and load new interfaces at runtime.\012"

#
# End of module "hpp"
#
__name__ = "hpp_stubs.corbaserver.tools_idl"

#
# Docstrings
#

omniORB.setDocString(_0_hpp._objref_Tools.loadServerPlugin, _0_hpp.Tools.loadServerPlugin__doc__)
omniORB.setDocString(_0_hpp._objref_Tools.createContext, _0_hpp.Tools.createContext__doc__)
omniORB.setDocString(_0_hpp._objref_Tools.getContexts, _0_hpp.Tools.getContexts__doc__)
omniORB.setDocString(_0_hpp._objref_Tools.deleteContext, _0_hpp.Tools.deleteContext__doc__)
omniORB.setDocString(_0_hpp._objref_Tools.getServer, _0_hpp.Tools.getServer__doc__)
omniORB.setDocString(_0_hpp._objref_Tools.deleteServant, _0_hpp.Tools.deleteServant__doc__)
omniORB.setDocString(_0_hpp._objref_Tools.deleteAllServants, _0_hpp.Tools.deleteAllServants__doc__)
omniORB.setDocString(_0_hpp._objref_Tools.getAllServants, _0_hpp.Tools.getAllServants__doc__)
omniORB.setDocString(_0_hpp._objref_Tools.shutdown, _0_hpp.Tools.shutdown__doc__)
omniORB.setDocString(_0_hpp.Tools, _0_hpp.Tools__doc__)
omniORB.setDocString(_0_hpp._objref_Tools, _0_hpp.Tools__doc__)

_exported_modules = ( "hpp_idl.hpp", )

# The end.
