# Python stubs generated by omniidl from /usr/pkg/share/idl/omniORB/COS/CosPersistenceDDO.idl

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

_omnipy.checkVersion(3,0, __file__)

# #include "CosPersistencePID.idl"
import CosPersistencePID_idl
_0_CosPersistencePID = omniORB.openModule("CosPersistencePID")
_0_CosPersistencePID__POA = omniORB.openModule("CosPersistencePID__POA")

#
# Start of module "CosPersistenceDDO"
#
__name__ = "CosPersistenceDDO"
_0_CosPersistenceDDO = omniORB.openModule("CosPersistenceDDO", r"/usr/pkg/share/idl/omniORB/COS/CosPersistenceDDO.idl")
_0_CosPersistenceDDO__POA = omniORB.openModule("CosPersistenceDDO__POA", r"/usr/pkg/share/idl/omniORB/COS/CosPersistenceDDO.idl")


# interface DDO
_0_CosPersistenceDDO._d_DDO = (omniORB.tcInternal.tv_objref, "IDL:omg.org/CosPersistenceDDO/DDO:1.0", "DDO")
omniORB.typeMapping["IDL:omg.org/CosPersistenceDDO/DDO:1.0"] = _0_CosPersistenceDDO._d_DDO
_0_CosPersistenceDDO.DDO = omniORB.newEmptyClass()
class DDO :
    _NP_RepositoryId = _0_CosPersistenceDDO._d_DDO[1]

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

    _nil = CORBA.Object._nil


_0_CosPersistenceDDO.DDO = DDO
_0_CosPersistenceDDO._tc_DDO = omniORB.tcInternal.createTypeCode(_0_CosPersistenceDDO._d_DDO)
omniORB.registerType(DDO._NP_RepositoryId, _0_CosPersistenceDDO._d_DDO, _0_CosPersistenceDDO._tc_DDO)

# DDO operations and attributes
DDO._d__get_object_type = ((),((omniORB.tcInternal.tv_string,0),),None)
DDO._d__set_object_type = (((omniORB.tcInternal.tv_string,0),),(),None)
DDO._d__get_p = ((),(omniORB.typeMapping["IDL:omg.org/CosPersistencePID/PID:1.0"],),None)
DDO._d__set_p = ((omniORB.typeMapping["IDL:omg.org/CosPersistencePID/PID:1.0"],),(),None)
DDO._d_add_data = ((), (omniORB.tcInternal.tv_short, ), None)
DDO._d_add_data_property = ((omniORB.tcInternal.tv_short, ), (omniORB.tcInternal.tv_short, ), None)
DDO._d_get_data_count = ((), (omniORB.tcInternal.tv_short, ), None)
DDO._d_get_data_property_count = ((omniORB.tcInternal.tv_short, ), (omniORB.tcInternal.tv_short, ), None)
DDO._d_get_data_property = ((omniORB.tcInternal.tv_short, omniORB.tcInternal.tv_short), ((omniORB.tcInternal.tv_string,0), omniORB.tcInternal.tv_any), None)
DDO._d_set_data_property = ((omniORB.tcInternal.tv_short, omniORB.tcInternal.tv_short, (omniORB.tcInternal.tv_string,0), omniORB.tcInternal.tv_any), (), None)
DDO._d_get_data = ((omniORB.tcInternal.tv_short, ), ((omniORB.tcInternal.tv_string,0), omniORB.tcInternal.tv_any), None)
DDO._d_set_data = ((omniORB.tcInternal.tv_short, (omniORB.tcInternal.tv_string,0), omniORB.tcInternal.tv_any), (), None)

# DDO object reference
class _objref_DDO (CORBA.Object):
    _NP_RepositoryId = DDO._NP_RepositoryId

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

    def _get_object_type(self, *args):
        return _omnipy.invoke(self, "_get_object_type", _0_CosPersistenceDDO.DDO._d__get_object_type, args)

    def _set_object_type(self, *args):
        return _omnipy.invoke(self, "_set_object_type", _0_CosPersistenceDDO.DDO._d__set_object_type, args)

    def _get_p(self, *args):
        return _omnipy.invoke(self, "_get_p", _0_CosPersistenceDDO.DDO._d__get_p, args)

    def _set_p(self, *args):
        return _omnipy.invoke(self, "_set_p", _0_CosPersistenceDDO.DDO._d__set_p, args)

    def add_data(self, *args):
        return _omnipy.invoke(self, "add_data", _0_CosPersistenceDDO.DDO._d_add_data, args)

    def add_data_property(self, *args):
        return _omnipy.invoke(self, "add_data_property", _0_CosPersistenceDDO.DDO._d_add_data_property, args)

    def get_data_count(self, *args):
        return _omnipy.invoke(self, "get_data_count", _0_CosPersistenceDDO.DDO._d_get_data_count, args)

    def get_data_property_count(self, *args):
        return _omnipy.invoke(self, "get_data_property_count", _0_CosPersistenceDDO.DDO._d_get_data_property_count, args)

    def get_data_property(self, *args):
        return _omnipy.invoke(self, "get_data_property", _0_CosPersistenceDDO.DDO._d_get_data_property, args)

    def set_data_property(self, *args):
        return _omnipy.invoke(self, "set_data_property", _0_CosPersistenceDDO.DDO._d_set_data_property, args)

    def get_data(self, *args):
        return _omnipy.invoke(self, "get_data", _0_CosPersistenceDDO.DDO._d_get_data, args)

    def set_data(self, *args):
        return _omnipy.invoke(self, "set_data", _0_CosPersistenceDDO.DDO._d_set_data, args)

    __methods__ = ["_get_object_type", "_set_object_type", "_get_p", "_set_p", "add_data", "add_data_property", "get_data_count", "get_data_property_count", "get_data_property", "set_data_property", "get_data", "set_data"] + CORBA.Object.__methods__

omniORB.registerObjref(DDO._NP_RepositoryId, _objref_DDO)
_0_CosPersistenceDDO._objref_DDO = _objref_DDO
del DDO, _objref_DDO

# DDO skeleton
__name__ = "CosPersistenceDDO__POA"
class DDO (PortableServer.Servant):
    _NP_RepositoryId = _0_CosPersistenceDDO.DDO._NP_RepositoryId


    _omni_op_d = {"_get_object_type": _0_CosPersistenceDDO.DDO._d__get_object_type, "_set_object_type": _0_CosPersistenceDDO.DDO._d__set_object_type, "_get_p": _0_CosPersistenceDDO.DDO._d__get_p, "_set_p": _0_CosPersistenceDDO.DDO._d__set_p, "add_data": _0_CosPersistenceDDO.DDO._d_add_data, "add_data_property": _0_CosPersistenceDDO.DDO._d_add_data_property, "get_data_count": _0_CosPersistenceDDO.DDO._d_get_data_count, "get_data_property_count": _0_CosPersistenceDDO.DDO._d_get_data_property_count, "get_data_property": _0_CosPersistenceDDO.DDO._d_get_data_property, "set_data_property": _0_CosPersistenceDDO.DDO._d_set_data_property, "get_data": _0_CosPersistenceDDO.DDO._d_get_data, "set_data": _0_CosPersistenceDDO.DDO._d_set_data}

DDO._omni_skeleton = DDO
_0_CosPersistenceDDO__POA.DDO = DDO
omniORB.registerSkeleton(DDO._NP_RepositoryId, DDO)
del DDO
__name__ = "CosPersistenceDDO"

#
# End of module "CosPersistenceDDO"
#
__name__ = "CosPersistenceDDO_idl"

_exported_modules = ( "CosPersistenceDDO", )

# The end.
