Example #1
0
 def register_value_factory(self, repoId, factory):
     return omniORB.registerValueFactory(repoId, factory)
Example #2
0
        _NP_postUnmarshal(self)

        Called when a value has been completely unmarshalled. May
        modify the object state. The return value is used as the
        unmarshalled valuetype, so must return self or a compatible
        object.
        """
        return self


_d_ValueBase = (omniORB.tcInternal.tv_value, ValueBase,
                ValueBase._NP_RepositoryId, "ValueBase", VM_NONE, None,
                omniORB.tcInternal.tv_null)
TC_ValueBase = _tc_ValueBase = omniORB.tcInternal.createTypeCode(_d_ValueBase)
omniORB.registerType(ValueBase._NP_RepositoryId, _d_ValueBase, _tc_ValueBase)
omniORB.registerValueFactory(ValueBase._NP_RepositoryId, ValueBase)

#############################################################################
#                                                                           #
# Policy                                                                    #
#                                                                           #
#############################################################################

class Policy (Object):
    _NP_RepositoryId = "IDL:omg.org/CORBA/Policy:1.0"

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

    def _get_policy_type(self):
        return self._policy_type
Example #3
0
 def register_value_factory(self, repoId, factory):
     return omniORB.registerValueFactory(repoId, factory)
Example #4
0
        _NP_postUnmarshal(self)

        Called when a value has been completely unmarshalled. May
        modify the object state. The return value is used as the
        unmarshalled valuetype, so must return self or a compatible
        object.
        """
        return self


_d_ValueBase = (omniORB.tcInternal.tv_value, ValueBase,
                ValueBase._NP_RepositoryId, "ValueBase", VM_NONE, None,
                omniORB.tcInternal.tv_null)
TC_ValueBase = _tc_ValueBase = omniORB.tcInternal.createTypeCode(_d_ValueBase)
omniORB.registerType(ValueBase._NP_RepositoryId, _d_ValueBase, _tc_ValueBase)
omniORB.registerValueFactory(ValueBase._NP_RepositoryId, ValueBase)

#############################################################################
#                                                                           #
# Policy                                                                    #
#                                                                           #
#############################################################################


class Policy(Object):
    _NP_RepositoryId = "IDL:omg.org/CORBA/Policy:1.0"

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

    def _get_policy_type(self):
Example #5
0
__name__ = "CORBA"
_0_CORBA = omniORB.openModule("CORBA", r"/usr/local/share/idl/omniORB/boxes.idl")
_0_CORBA__POA = omniORB.openModule("CORBA__POA", r"/usr/local/share/idl/omniORB/boxes.idl")


# valuebox StringValue
class StringValue:
    _NP_RepositoryId = "IDL:omg.org/CORBA/StringValue:1.0"
    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")

_0_CORBA.StringValue = StringValue
_0_CORBA._d_StringValue  = (omniORB.tcInternal.tv_value_box, StringValue, StringValue._NP_RepositoryId, "StringValue", (omniORB.tcInternal.tv_string,0))
_0_CORBA._tc_StringValue = omniORB.tcInternal.createTypeCode(_0_CORBA._d_StringValue)
omniORB.registerType(StringValue._NP_RepositoryId, _0_CORBA._d_StringValue, _0_CORBA._tc_StringValue)
omniORB.registerValueFactory(StringValue._NP_RepositoryId, StringValue)
del StringValue


# valuebox WStringValue
class WStringValue:
    _NP_RepositoryId = "IDL:omg.org/CORBA/WStringValue:1.0"
    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")

_0_CORBA.WStringValue = WStringValue
_0_CORBA._d_WStringValue  = (omniORB.tcInternal.tv_value_box, WStringValue, WStringValue._NP_RepositoryId, "WStringValue", (omniORB.tcInternal.tv_wstring,0))
_0_CORBA._tc_WStringValue = omniORB.tcInternal.createTypeCode(_0_CORBA._d_WStringValue)
omniORB.registerType(WStringValue._NP_RepositoryId, _0_CORBA._d_WStringValue, _0_CORBA._tc_WStringValue)
omniORB.registerValueFactory(WStringValue._NP_RepositoryId, WStringValue)
del WStringValue
Example #6
0
class StringValue:
    _NP_RepositoryId = "IDL:omg.org/CORBA/StringValue:1.0"

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


_0_CORBA.StringValue = StringValue
_0_CORBA._d_StringValue = (omniORB.tcInternal.tv_value_box, StringValue,
                           StringValue._NP_RepositoryId, "StringValue",
                           (omniORB.tcInternal.tv_string, 0))
_0_CORBA._tc_StringValue = omniORB.tcInternal.createTypeCode(
    _0_CORBA._d_StringValue)
omniORB.registerType(StringValue._NP_RepositoryId, _0_CORBA._d_StringValue,
                     _0_CORBA._tc_StringValue)
omniORB.registerValueFactory(StringValue._NP_RepositoryId, StringValue)
del StringValue


# valuebox WStringValue
class WStringValue:
    _NP_RepositoryId = "IDL:omg.org/CORBA/WStringValue:1.0"

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


_0_CORBA.WStringValue = WStringValue
_0_CORBA._d_WStringValue = (omniORB.tcInternal.tv_value_box, WStringValue,
                            WStringValue._NP_RepositoryId, "WStringValue",
                            (omniORB.tcInternal.tv_wstring, 0))