Exemplo n.º 1
0
class POAManager (CORBA.Object) :
    _NP_RepositoryId = "IDL:omg.org/PortableServer/POAManager:1.0"

    def __init__(self):
        self.__release = _omnipy.poamanager_func.releaseRef

    def __del__(self):
        self.__release(self)

    def activate(self):
        _omnipy.poamanager_func.activate(self)

    def hold_requests(self, wait_for_completion):
        _omnipy.poamanager_func.hold_requests(self, wait_for_completion)
    
    def discard_requests(self, wait_for_completion):
        _omnipy.poamanager_func.discard_requests(self, wait_for_completion)
    
    def deactivate(self, etherialize_objects, wait_for_completion):
        _omnipy.poamanager_func.deactivate(self, etherialize_objects,
                                           wait_for_completion)

    def get_state(self):
        return self.State._item(_omnipy.poamanager_func.get_state(self))

    __methods__ = ["activate", "hold_requests", "discard_requests",
                   "deactivate", "get_state"] + CORBA.Object.__methods__

    # Generated declarations

    class AdapterInactive (CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/PortableServer/POAManager/AdapterInactive:1.0"

    _d_AdapterInactive  = (omniORB.tcInternal.tv_except, AdapterInactive,
                           AdapterInactive._NP_RepositoryId, "AdapterInactive")
    _tc_AdapterInactive = omniORB.tcInternal.createTypeCode(_d_AdapterInactive)
    omniORB.registerType(AdapterInactive._NP_RepositoryId,
                         _d_AdapterInactive, _tc_AdapterInactive)
    
    HOLDING    = omniORB.EnumItem("HOLDING", 0)
    ACTIVE     = omniORB.EnumItem("ACTIVE", 1)
    DISCARDING = omniORB.EnumItem("DISCARDING", 2)
    INACTIVE   = omniORB.EnumItem("INACTIVE", 3)
    State = omniORB.Enum("IDL:omg.org/PortableServer/POAManager/State:1.0",
                         (HOLDING, ACTIVE, DISCARDING, INACTIVE))
    
    _d_State  = (omniORB.tcInternal.tv_enum, State._NP_RepositoryId,
                 "State", State._items)
    _tc_State = omniORB.tcInternal.createTypeCode(_d_State)
    omniORB.registerType(State._NP_RepositoryId, _d_State, _tc_State)
Exemplo n.º 2
0
class POAManager(CORBA.Object):
    _NP_RepositoryId = "IDL:omg.org/PortableServer/POAManager:2.4"

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

    def activate(self):
        self._obj.activate()

    def hold_requests(self, wait_for_completion):
        self._obj.hold_requests(wait_for_completion)

    def discard_requests(self, wait_for_completion):
        self._obj.discard_requests(wait_for_completion)

    def deactivate(self, etherialize_objects, wait_for_completion):
        self._obj.deactivate(etherialize_objects, wait_for_completion)

    def get_state(self):
        return self.State._item(self._obj.get_state())

    # Generated declarations

    class AdapterInactive(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/PortableServer/POAManager/AdapterInactive:2.4"

    _d_AdapterInactive = (omniORB.tcInternal.tv_except, AdapterInactive,
                          AdapterInactive._NP_RepositoryId, "AdapterInactive")
    _tc_AdapterInactive = omniORB.tcInternal.createTypeCode(_d_AdapterInactive)
    omniORB.registerType(AdapterInactive._NP_RepositoryId, _d_AdapterInactive,
                         _tc_AdapterInactive)

    HOLDING = omniORB.EnumItem("HOLDING", 0)
    ACTIVE = omniORB.EnumItem("ACTIVE", 1)
    DISCARDING = omniORB.EnumItem("DISCARDING", 2)
    INACTIVE = omniORB.EnumItem("INACTIVE", 3)
    State = omniORB.Enum("IDL:omg.org/PortableServer/POAManager/State:2.4",
                         (HOLDING, ACTIVE, DISCARDING, INACTIVE))

    _d_State = (omniORB.tcInternal.tv_enum, State._NP_RepositoryId, "State",
                State._items)
    _tc_State = omniORB.tcInternal.createTypeCode(_d_State)
    omniORB.registerType(State._NP_RepositoryId, _d_State, _tc_State)
Exemplo n.º 3
0
                     _0_softwareAndDataManager._ad_BackupIdList_T,
                     _0_softwareAndDataManager._tc_BackupIdList_T)
del BackupIdList_T

# enum Current_OperationStatus_T
_0_softwareAndDataManager.COS_Idle = omniORB.EnumItem("COS_Idle", 0)
_0_softwareAndDataManager.COS_Pending = omniORB.EnumItem("COS_Pending", 1)
_0_softwareAndDataManager.COS_InProgress = omniORB.EnumItem(
    "COS_InProgress", 2)
_0_softwareAndDataManager.COS_Completed = omniORB.EnumItem("COS_Completed", 3)
_0_softwareAndDataManager.COS_Aborted = omniORB.EnumItem("COS_Aborted", 4)
_0_softwareAndDataManager.Current_OperationStatus_T = omniORB.Enum(
    "IDL:mtnm.tmforum.org/softwareAndDataManager/Current_OperationStatus_T:1.0",
    (
        _0_softwareAndDataManager.COS_Idle,
        _0_softwareAndDataManager.COS_Pending,
        _0_softwareAndDataManager.COS_InProgress,
        _0_softwareAndDataManager.COS_Completed,
        _0_softwareAndDataManager.COS_Aborted,
    ))

_0_softwareAndDataManager._d_Current_OperationStatus_T = (
    omniORB.tcInternal.tv_enum,
    _0_softwareAndDataManager.Current_OperationStatus_T._NP_RepositoryId,
    "Current_OperationStatus_T",
    _0_softwareAndDataManager.Current_OperationStatus_T._items)
_0_softwareAndDataManager._tc_Current_OperationStatus_T = omniORB.tcInternal.createTypeCode(
    _0_softwareAndDataManager._d_Current_OperationStatus_T)
omniORB.registerType(
    _0_softwareAndDataManager.Current_OperationStatus_T._NP_RepositoryId,
    _0_softwareAndDataManager._d_Current_OperationStatus_T,
Exemplo n.º 4
0
_0_maintenanceOps._ad_MaintenanceOperation_T = (
    omniORB.tcInternal.tv_alias, MaintenanceOperation_T._NP_RepositoryId,
    "MaintenanceOperation_T", (omniORB.tcInternal.tv_string, 0))
_0_maintenanceOps._tc_MaintenanceOperation_T = omniORB.tcInternal.createTypeCode(
    _0_maintenanceOps._ad_MaintenanceOperation_T)
omniORB.registerType(MaintenanceOperation_T._NP_RepositoryId,
                     _0_maintenanceOps._ad_MaintenanceOperation_T,
                     _0_maintenanceOps._tc_MaintenanceOperation_T)
del MaintenanceOperation_T

# enum MaintenanceOperationMode_T
_0_maintenanceOps.MOM_OPERATE = omniORB.EnumItem("MOM_OPERATE", 0)
_0_maintenanceOps.MOM_RELEASE = omniORB.EnumItem("MOM_RELEASE", 1)
_0_maintenanceOps.MaintenanceOperationMode_T = omniORB.Enum(
    "IDL:mtnm.tmforum.org/maintenanceOps/MaintenanceOperationMode_T:1.0", (
        _0_maintenanceOps.MOM_OPERATE,
        _0_maintenanceOps.MOM_RELEASE,
    ))

_0_maintenanceOps._d_MaintenanceOperationMode_T = (
    omniORB.tcInternal.tv_enum,
    _0_maintenanceOps.MaintenanceOperationMode_T._NP_RepositoryId,
    "MaintenanceOperationMode_T",
    _0_maintenanceOps.MaintenanceOperationMode_T._items)
_0_maintenanceOps._tc_MaintenanceOperationMode_T = omniORB.tcInternal.createTypeCode(
    _0_maintenanceOps._d_MaintenanceOperationMode_T)
omniORB.registerType(
    _0_maintenanceOps.MaintenanceOperationMode_T._NP_RepositoryId,
    _0_maintenanceOps._d_MaintenanceOperationMode_T,
    _0_maintenanceOps._tc_MaintenanceOperationMode_T)
Exemplo n.º 5
0
_0_IOFF_AL.OFF_AL_IWPR_DATA = 26
_0_IOFF_AL.OFF_AL_EWPR_DATA = 27

# enum OperationResult
_0_IOFF_AL.SUCCESS = omniORB.EnumItem("SUCCESS", 0)
_0_IOFF_AL.FAILED_BAD_ARGUMENT = omniORB.EnumItem("FAILED_BAD_ARGUMENT", 1)
_0_IOFF_AL.FAILED_EXPORT = omniORB.EnumItem("FAILED_EXPORT", 2)
_0_IOFF_AL.FAILED_IMPORT = omniORB.EnumItem("FAILED_IMPORT", 3)
_0_IOFF_AL.FAILED_SET_VAR = omniORB.EnumItem("FAILED_SET_VAR", 4)
_0_IOFF_AL.FAILED_GET_VAR = omniORB.EnumItem("FAILED_GET_VAR", 5)
_0_IOFF_AL.FAILED_NOT_IMPLEMENTED = omniORB.EnumItem("FAILED_NOT_IMPLEMENTED", 6)
_0_IOFF_AL.FAILED_WRITE_FILE = omniORB.EnumItem("FAILED_WRITE_FILE", 7)
_0_IOFF_AL.FAILED_READ_FILE = omniORB.EnumItem("FAILED_READ_FILE", 8)
_0_IOFF_AL.FAILED_ABORT = omniORB.EnumItem("FAILED_ABORT", 9)
_0_IOFF_AL.FAILED_UKN_TYPE = omniORB.EnumItem("FAILED_UKN_TYPE", 10)
_0_IOFF_AL.OperationResult = omniORB.Enum("IDL:IOFF_AL/OperationResult:1.0", (_0_IOFF_AL.SUCCESS, _0_IOFF_AL.FAILED_BAD_ARGUMENT, _0_IOFF_AL.FAILED_EXPORT, _0_IOFF_AL.FAILED_IMPORT, _0_IOFF_AL.FAILED_SET_VAR, _0_IOFF_AL.FAILED_GET_VAR, _0_IOFF_AL.FAILED_NOT_IMPLEMENTED, _0_IOFF_AL.FAILED_WRITE_FILE, _0_IOFF_AL.FAILED_READ_FILE, _0_IOFF_AL.FAILED_ABORT, _0_IOFF_AL.FAILED_UKN_TYPE,))

_0_IOFF_AL._d_OperationResult  = (omniORB.tcInternal.tv_enum, _0_IOFF_AL.OperationResult._NP_RepositoryId, "OperationResult", _0_IOFF_AL.OperationResult._items)
_0_IOFF_AL._tc_OperationResult = omniORB.tcInternal.createTypeCode(_0_IOFF_AL._d_OperationResult)
omniORB.registerType(_0_IOFF_AL.OperationResult._NP_RepositoryId, _0_IOFF_AL._d_OperationResult, _0_IOFF_AL._tc_OperationResult)

# interface Offline_Alignment
_0_IOFF_AL._d_Offline_Alignment = (omniORB.tcInternal.tv_objref, "IDL:IOFF_AL/Offline_Alignment:1.0", "Offline_Alignment")
omniORB.typeMapping["IDL:IOFF_AL/Offline_Alignment:1.0"] = _0_IOFF_AL._d_Offline_Alignment
_0_IOFF_AL.Offline_Alignment = omniORB.newEmptyClass()
class Offline_Alignment :
    _NP_RepositoryId = _0_IOFF_AL._d_Offline_Alignment[1]

    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")
Exemplo n.º 6
0
__base_Exception = Exception


class Exception(__base_Exception):
    pass


OMGVMCID = 0x4f4d0000

# Completion status:

COMPLETED_YES = omniORB.EnumItem("COMPLETED_YES", 0)
COMPLETED_NO = omniORB.EnumItem("COMPLETED_NO", 1)
COMPLETED_MAYBE = omniORB.EnumItem("COMPLETED_MAYBE", 2)
completion_status = omniORB.Enum(
    "IDL:omg.org/CORBA/completion_status:1.0",
    (COMPLETED_YES, COMPLETED_NO, COMPLETED_MAYBE))


class SystemException(Exception):
    def __init__(self, minor=0, completed=COMPLETED_NO, info=None):
        self.minor = minor
        if isinstance(completed, int):
            self.completed = completion_status._item(completed)
        else:
            self.completed = completed

        self._info = info

        Exception.__init__(self, minor, self.completed)
Exemplo n.º 7
0
_0_CosQueryCollection.TypeDoublePrecision = omniORB.EnumItem(
    "TypeDoublePrecision", 15)
_0_CosQueryCollection.TypeCharacter = omniORB.EnumItem("TypeCharacter", 16)
_0_CosQueryCollection.TypeDecimal = omniORB.EnumItem("TypeDecimal", 17)
_0_CosQueryCollection.TypeNumeric = omniORB.EnumItem("TypeNumeric", 18)
_0_CosQueryCollection.ValueType = omniORB.Enum(
    "IDL:omg.org/CosQueryCollection/ValueType:1.0", (
        _0_CosQueryCollection.TypeBoolean,
        _0_CosQueryCollection.TypeChar,
        _0_CosQueryCollection.TypeOctet,
        _0_CosQueryCollection.TypeShort,
        _0_CosQueryCollection.TypeUShort,
        _0_CosQueryCollection.TypeLong,
        _0_CosQueryCollection.TypeULong,
        _0_CosQueryCollection.TypeFloat,
        _0_CosQueryCollection.TypeDouble,
        _0_CosQueryCollection.TypeString,
        _0_CosQueryCollection.TypeObject,
        _0_CosQueryCollection.TypeAny,
        _0_CosQueryCollection.TypeSmallInt,
        _0_CosQueryCollection.TypeInteger,
        _0_CosQueryCollection.TypeReal,
        _0_CosQueryCollection.TypeDoublePrecision,
        _0_CosQueryCollection.TypeCharacter,
        _0_CosQueryCollection.TypeDecimal,
        _0_CosQueryCollection.TypeNumeric,
    ))

_0_CosQueryCollection._d_ValueType = (
    omniORB.tcInternal.tv_enum,
    _0_CosQueryCollection.ValueType._NP_RepositoryId, "ValueType",
    _0_CosQueryCollection.ValueType._items)
Exemplo n.º 8
0
# enum QoSError_code
_0_CosNotification.UNSUPPORTED_PROPERTY = omniORB.EnumItem(
    "UNSUPPORTED_PROPERTY", 0)
_0_CosNotification.UNAVAILABLE_PROPERTY = omniORB.EnumItem(
    "UNAVAILABLE_PROPERTY", 1)
_0_CosNotification.UNSUPPORTED_VALUE = omniORB.EnumItem("UNSUPPORTED_VALUE", 2)
_0_CosNotification.UNAVAILABLE_VALUE = omniORB.EnumItem("UNAVAILABLE_VALUE", 3)
_0_CosNotification.BAD_PROPERTY = omniORB.EnumItem("BAD_PROPERTY", 4)
_0_CosNotification.BAD_TYPE = omniORB.EnumItem("BAD_TYPE", 5)
_0_CosNotification.BAD_VALUE = omniORB.EnumItem("BAD_VALUE", 6)
_0_CosNotification.QoSError_code = omniORB.Enum(
    "IDL:omg.org/CosNotification/QoSError_code:1.0", (
        _0_CosNotification.UNSUPPORTED_PROPERTY,
        _0_CosNotification.UNAVAILABLE_PROPERTY,
        _0_CosNotification.UNSUPPORTED_VALUE,
        _0_CosNotification.UNAVAILABLE_VALUE,
        _0_CosNotification.BAD_PROPERTY,
        _0_CosNotification.BAD_TYPE,
        _0_CosNotification.BAD_VALUE,
    ))

_0_CosNotification._d_QoSError_code = (
    omniORB.tcInternal.tv_enum,
    _0_CosNotification.QoSError_code._NP_RepositoryId, "QoSError_code",
    _0_CosNotification.QoSError_code._items)
_0_CosNotification._tc_QoSError_code = omniORB.tcInternal.createTypeCode(
    _0_CosNotification._d_QoSError_code)
omniORB.registerType(_0_CosNotification.QoSError_code._NP_RepositoryId,
                     _0_CosNotification._d_QoSError_code,
                     _0_CosNotification._tc_QoSError_code)
Exemplo n.º 9
0
    _0_Manipulation._d_LimitValue)
omniORB.registerType(LimitValue._NP_RepositoryId,
                     _0_Manipulation._d_LimitValue,
                     _0_Manipulation._tc_LimitValue)
del LimitValue

# enum JOINT_TYPE
_0_Manipulation.JOINT_ROTATE = omniORB.EnumItem("JOINT_ROTATE", 0)
_0_Manipulation.JOINT_SLIDE = omniORB.EnumItem("JOINT_SLIDE", 1)
_0_Manipulation.JOINT_FIXED = omniORB.EnumItem("JOINT_FIXED", 2)
_0_Manipulation.JOINT_FREE = omniORB.EnumItem("JOINT_FREE", 3)
_0_Manipulation.JOINT_UNKNOWN = omniORB.EnumItem("JOINT_UNKNOWN", 4)
_0_Manipulation.JOINT_TYPE = omniORB.Enum("IDL:Manipulation/JOINT_TYPE:1.0", (
    _0_Manipulation.JOINT_ROTATE,
    _0_Manipulation.JOINT_SLIDE,
    _0_Manipulation.JOINT_FIXED,
    _0_Manipulation.JOINT_FREE,
    _0_Manipulation.JOINT_UNKNOWN,
))

_0_Manipulation._d_JOINT_TYPE = (omniORB.tcInternal.tv_enum,
                                 _0_Manipulation.JOINT_TYPE._NP_RepositoryId,
                                 "JOINT_TYPE",
                                 _0_Manipulation.JOINT_TYPE._items)
_0_Manipulation._tc_JOINT_TYPE = omniORB.tcInternal.createTypeCode(
    _0_Manipulation._d_JOINT_TYPE)
omniORB.registerType(_0_Manipulation.JOINT_TYPE._NP_RepositoryId,
                     _0_Manipulation._d_JOINT_TYPE,
                     _0_Manipulation._tc_JOINT_TYPE)

# struct JointParameter
Exemplo n.º 10
0
                                                   2)
_0_RTC.RETURN_NOT_FOUND = omniORB.EnumItem("RETURN_NOT_FOUND", 3)
_0_RTC.RETURN_OUT_OF_RANGE = omniORB.EnumItem("RETURN_OUT_OF_RANGE", 4)
_0_RTC.RETURN_ERROR = omniORB.EnumItem("RETURN_ERROR", 5)
_0_RTC.RETVAL_ARRIVAL_OK = omniORB.EnumItem("RETVAL_ARRIVAL_OK", 6)
_0_RTC.RETVAL_EMERGENCY = omniORB.EnumItem("RETVAL_EMERGENCY", 7)
_0_RTC.RETVAL_SET_PARAM = omniORB.EnumItem("RETVAL_SET_PARAM", 8)
_0_RTC.RETVAL_MOVE_START = omniORB.EnumItem("RETVAL_MOVE_START", 9)
_0_RTC.RETVAL_MOVE_STOP = omniORB.EnumItem("RETVAL_MOVE_STOP", 10)
_0_RTC.RETURN_VALUE = omniORB.Enum("IDL:RTC/RETURN_VALUE:1.0", (
    _0_RTC.RETURN_OK,
    _0_RTC.RETURN_MOVE_OK,
    _0_RTC.RETURN_INVALID_PARAMETER,
    _0_RTC.RETURN_NOT_FOUND,
    _0_RTC.RETURN_OUT_OF_RANGE,
    _0_RTC.RETURN_ERROR,
    _0_RTC.RETVAL_ARRIVAL_OK,
    _0_RTC.RETVAL_EMERGENCY,
    _0_RTC.RETVAL_SET_PARAM,
    _0_RTC.RETVAL_MOVE_START,
    _0_RTC.RETVAL_MOVE_STOP,
))

_0_RTC._d_RETURN_VALUE = (omniORB.tcInternal.tv_enum,
                          _0_RTC.RETURN_VALUE._NP_RepositoryId, "RETURN_VALUE",
                          _0_RTC.RETURN_VALUE._items)
_0_RTC._tc_RETURN_VALUE = omniORB.tcInternal.createTypeCode(
    _0_RTC._d_RETURN_VALUE)
omniORB.registerType(_0_RTC.RETURN_VALUE._NP_RepositoryId,
                     _0_RTC._d_RETURN_VALUE, _0_RTC._tc_RETURN_VALUE)
Exemplo n.º 11
0
# forward interface PropagationCriteriaFactory;
_0_CosCompoundLifeCycle._d_PropagationCriteriaFactory = (
    omniORB.tcInternal.tv_objref,
    "IDL:omg.org/CosCompoundLifeCycle/PropagationCriteriaFactory:1.0",
    "PropagationCriteriaFactory")
omniORB.typeMapping[
    "IDL:omg.org/CosCompoundLifeCycle/PropagationCriteriaFactory:1.0"] = _0_CosCompoundLifeCycle._d_PropagationCriteriaFactory

# enum Operation
_0_CosCompoundLifeCycle.copy = omniORB.EnumItem("copy", 0)
_0_CosCompoundLifeCycle.move = omniORB.EnumItem("move", 1)
_0_CosCompoundLifeCycle.remove = omniORB.EnumItem("remove", 2)
_0_CosCompoundLifeCycle.Operation = omniORB.Enum(
    "IDL:omg.org/CosCompoundLifeCycle/Operation:1.0", (
        _0_CosCompoundLifeCycle.copy,
        _0_CosCompoundLifeCycle.move,
        _0_CosCompoundLifeCycle.remove,
    ))

_0_CosCompoundLifeCycle._d_Operation = (
    omniORB.tcInternal.tv_enum,
    _0_CosCompoundLifeCycle.Operation._NP_RepositoryId, "Operation",
    _0_CosCompoundLifeCycle.Operation._items)
_0_CosCompoundLifeCycle._tc_Operation = omniORB.tcInternal.createTypeCode(
    _0_CosCompoundLifeCycle._d_Operation)
omniORB.registerType(_0_CosCompoundLifeCycle.Operation._NP_RepositoryId,
                     _0_CosCompoundLifeCycle._d_Operation,
                     _0_CosCompoundLifeCycle._tc_Operation)

# struct RelationshipHandle
_0_CosCompoundLifeCycle.RelationshipHandle = omniORB.newEmptyClass()
Exemplo n.º 12
0
_0_aSAP = omniORB.openModule("aSAP", r"aSAP.idl")
_0_aSAP__POA = omniORB.openModule("aSAP__POA", r"aSAP.idl")

# enum AssignedSeverity_T
_0_aSAP.AS_INDETERMINATE = omniORB.EnumItem("AS_INDETERMINATE", 0)
_0_aSAP.AS_CRITICAL = omniORB.EnumItem("AS_CRITICAL", 1)
_0_aSAP.AS_MAJOR = omniORB.EnumItem("AS_MAJOR", 2)
_0_aSAP.AS_MINOR = omniORB.EnumItem("AS_MINOR", 3)
_0_aSAP.AS_WARNING = omniORB.EnumItem("AS_WARNING", 4)
_0_aSAP.AS_NONALARMED = omniORB.EnumItem("AS_NONALARMED", 5)
_0_aSAP.AS_FREE_CHOICE = omniORB.EnumItem("AS_FREE_CHOICE", 6)
_0_aSAP.AssignedSeverity_T = omniORB.Enum(
    "IDL:mtnm.tmforum.org/aSAP/AssignedSeverity_T:1.0", (
        _0_aSAP.AS_INDETERMINATE,
        _0_aSAP.AS_CRITICAL,
        _0_aSAP.AS_MAJOR,
        _0_aSAP.AS_MINOR,
        _0_aSAP.AS_WARNING,
        _0_aSAP.AS_NONALARMED,
        _0_aSAP.AS_FREE_CHOICE,
    ))

_0_aSAP._d_AssignedSeverity_T = (omniORB.tcInternal.tv_enum,
                                 _0_aSAP.AssignedSeverity_T._NP_RepositoryId,
                                 "AssignedSeverity_T",
                                 _0_aSAP.AssignedSeverity_T._items)
_0_aSAP._tc_AssignedSeverity_T = omniORB.tcInternal.createTypeCode(
    _0_aSAP._d_AssignedSeverity_T)
omniORB.registerType(_0_aSAP.AssignedSeverity_T._NP_RepositoryId,
                     _0_aSAP._d_AssignedSeverity_T,
                     _0_aSAP._tc_AssignedSeverity_T)
Exemplo n.º 13
0
class QueryTypeInvalid (CORBA.UserException):
    _NP_RepositoryId = "IDL:omg.org/CosQuery/QueryTypeInvalid:1.0"

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

_0_CosQuery.QueryTypeInvalid = QueryTypeInvalid
_0_CosQuery._d_QueryTypeInvalid  = (omniORB.tcInternal.tv_except, QueryTypeInvalid, QueryTypeInvalid._NP_RepositoryId, "QueryTypeInvalid")
_0_CosQuery._tc_QueryTypeInvalid = omniORB.tcInternal.createTypeCode(_0_CosQuery._d_QueryTypeInvalid)
omniORB.registerType(QueryTypeInvalid._NP_RepositoryId, _0_CosQuery._d_QueryTypeInvalid, _0_CosQuery._tc_QueryTypeInvalid)
del QueryTypeInvalid

# enum QueryStatus
_0_CosQuery.complete = omniORB.EnumItem("complete", 0)
_0_CosQuery.incomplete = omniORB.EnumItem("incomplete", 1)
_0_CosQuery.QueryStatus = omniORB.Enum("IDL:omg.org/CosQuery/QueryStatus:1.0", (_0_CosQuery.complete, _0_CosQuery.incomplete,))

_0_CosQuery._d_QueryStatus  = (omniORB.tcInternal.tv_enum, _0_CosQuery.QueryStatus._NP_RepositoryId, "QueryStatus", _0_CosQuery.QueryStatus._items)
_0_CosQuery._tc_QueryStatus = omniORB.tcInternal.createTypeCode(_0_CosQuery._d_QueryStatus)
omniORB.registerType(_0_CosQuery.QueryStatus._NP_RepositoryId, _0_CosQuery._d_QueryStatus, _0_CosQuery._tc_QueryStatus)

# typedef ... ParameterList
class ParameterList:
    _NP_RepositoryId = "IDL:omg.org/CosQuery/ParameterList:1.0"
    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")
_0_CosQuery.ParameterList = ParameterList
_0_CosQuery._d_ParameterList  = omniORB.typeMapping["IDL:omg.org/CosQueryCollection/ParameterList:1.0"]
_0_CosQuery._ad_ParameterList = (omniORB.tcInternal.tv_alias, ParameterList._NP_RepositoryId, "ParameterList", omniORB.typeCodeMapping["IDL:omg.org/CosQueryCollection/ParameterList:1.0"]._d)
_0_CosQuery._tc_ParameterList = omniORB.tcInternal.createTypeCode(_0_CosQuery._ad_ParameterList)
omniORB.registerType(ParameterList._NP_RepositoryId, _0_CosQuery._ad_ParameterList, _0_CosQuery._tc_ParameterList)
Exemplo n.º 14
0
#
__name__ = "CosTime"
_0_CosTime = omniORB.openModule("CosTime",
                                r"..\..\..\..\..\idl\COS\CosTime.idl")
_0_CosTime__POA = omniORB.openModule("CosTime__POA",
                                     r"..\..\..\..\..\idl\COS\CosTime.idl")

# enum TimeComparison
_0_CosTime.TCEqualTo = omniORB.EnumItem("TCEqualTo", 0)
_0_CosTime.TCLessThan = omniORB.EnumItem("TCLessThan", 1)
_0_CosTime.TCGreaterThan = omniORB.EnumItem("TCGreaterThan", 2)
_0_CosTime.TCIndeterminate = omniORB.EnumItem("TCIndeterminate", 3)
_0_CosTime.TimeComparison = omniORB.Enum(
    "IDL:omg.org/CosTime/TimeComparison:1.0", (
        _0_CosTime.TCEqualTo,
        _0_CosTime.TCLessThan,
        _0_CosTime.TCGreaterThan,
        _0_CosTime.TCIndeterminate,
    ))

_0_CosTime._d_TimeComparison = (omniORB.tcInternal.tv_enum,
                                _0_CosTime.TimeComparison._NP_RepositoryId,
                                "TimeComparison",
                                _0_CosTime.TimeComparison._items)
_0_CosTime._tc_TimeComparison = omniORB.tcInternal.createTypeCode(
    _0_CosTime._d_TimeComparison)
omniORB.registerType(_0_CosTime.TimeComparison._NP_RepositoryId,
                     _0_CosTime._d_TimeComparison,
                     _0_CosTime._tc_TimeComparison)

# enum ComparisonType
Exemplo n.º 15
0
            raise CORBA.PolicyError(CORBA.BAD_POLICY_TYPE)
        self._value       = value
        self._policy_type = 22

    def _get_value(self):
        return self._value

    __methods__ = ["_get_value"] + CORBA.Policy.__methods__


# enum ThreadPolicyValue
ORB_CTRL_MODEL      = omniORB.EnumItem("ORB_CTRL_MODEL", 0)
SINGLE_THREAD_MODEL = omniORB.EnumItem("SINGLE_THREAD_MODEL", 1)
MAIN_THREAD_MODEL   = omniORB.EnumItem("MAIN_THREAD_MODEL", 2)
ThreadPolicyValue   = omniORB.Enum(\
    "IDL:omg.org/PortableServer/ThreadPolicyValue:1.0",
    (ORB_CTRL_MODEL, SINGLE_THREAD_MODEL, MAIN_THREAD_MODEL))

_d_ThreadPolicyValue  = (omniORB.tcInternal.tv_enum,
                         ThreadPolicyValue._NP_RepositoryId,
                         "ThreadPolicyValue", ThreadPolicyValue._items)
_tc_ThreadPolicyValue = omniORB.tcInternal.createTypeCode(_d_ThreadPolicyValue)
omniORB.registerType(ThreadPolicyValue._NP_RepositoryId,
                     _d_ThreadPolicyValue, _tc_ThreadPolicyValue)

# enum LifespanPolicyValue
TRANSIENT  = omniORB.EnumItem("TRANSIENT", 0)
PERSISTENT = omniORB.EnumItem("PERSISTENT", 1)
LifespanPolicyValue = omniORB.Enum(\
    "IDL:omg.org/PortableServer/LifespanPolicyValue:1.0",
    (TRANSIENT, PERSISTENT))
Exemplo n.º 16
0
class NamingContext:
    _NP_RepositoryId = _0_CosNaming._d_NamingContext[1]

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

    _nil = CORBA.Object._nil

    # enum NotFoundReason
    missing_node = omniORB.EnumItem("missing_node", 0)
    not_context = omniORB.EnumItem("not_context", 1)
    not_object = omniORB.EnumItem("not_object", 2)
    NotFoundReason = omniORB.Enum(
        "IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0", (
            missing_node,
            not_context,
            not_object,
        ))

    _d_NotFoundReason = (omniORB.tcInternal.tv_enum,
                         NotFoundReason._NP_RepositoryId, "NotFoundReason",
                         NotFoundReason._items)
    _tc_NotFoundReason = omniORB.tcInternal.createTypeCode(_d_NotFoundReason)
    omniORB.registerType(NotFoundReason._NP_RepositoryId, _d_NotFoundReason,
                         _tc_NotFoundReason)

    # exception NotFound
    _0_CosNaming.NamingContext.NotFound = omniORB.newEmptyClass()

    class NotFound(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"

        _NP_ClassName = "CosNaming.NamingContext.NotFound"

        def __init__(self, why, rest_of_name):
            CORBA.UserException.__init__(self, why, rest_of_name)
            self.why = why
            self.rest_of_name = rest_of_name

    _d_NotFound = (
        omniORB.tcInternal.tv_except, NotFound, NotFound._NP_RepositoryId,
        "NotFound", "why", omniORB.
        typeMapping["IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0"],
        "rest_of_name", omniORB.typeMapping["IDL:omg.org/CosNaming/Name:1.0"])
    _tc_NotFound = omniORB.tcInternal.createTypeCode(_d_NotFound)
    omniORB.registerType(NotFound._NP_RepositoryId, _d_NotFound, _tc_NotFound)

    # exception CannotProceed
    _0_CosNaming.NamingContext.CannotProceed = omniORB.newEmptyClass()

    class CannotProceed(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"

        _NP_ClassName = "CosNaming.NamingContext.CannotProceed"

        def __init__(self, cxt, rest_of_name):
            CORBA.UserException.__init__(self, cxt, rest_of_name)
            self.cxt = cxt
            self.rest_of_name = rest_of_name

    _d_CannotProceed = (
        omniORB.tcInternal.tv_except, CannotProceed,
        CannotProceed._NP_RepositoryId, "CannotProceed", "cxt",
        omniORB.typeMapping["IDL:omg.org/CosNaming/NamingContext:1.0"],
        "rest_of_name", omniORB.typeMapping["IDL:omg.org/CosNaming/Name:1.0"])
    _tc_CannotProceed = omniORB.tcInternal.createTypeCode(_d_CannotProceed)
    omniORB.registerType(CannotProceed._NP_RepositoryId, _d_CannotProceed,
                         _tc_CannotProceed)

    # exception InvalidName
    _0_CosNaming.NamingContext.InvalidName = omniORB.newEmptyClass()

    class InvalidName(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"

        _NP_ClassName = "CosNaming.NamingContext.InvalidName"

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

    _d_InvalidName = (omniORB.tcInternal.tv_except, InvalidName,
                      InvalidName._NP_RepositoryId, "InvalidName")
    _tc_InvalidName = omniORB.tcInternal.createTypeCode(_d_InvalidName)
    omniORB.registerType(InvalidName._NP_RepositoryId, _d_InvalidName,
                         _tc_InvalidName)

    # exception AlreadyBound
    _0_CosNaming.NamingContext.AlreadyBound = omniORB.newEmptyClass()

    class AlreadyBound(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"

        _NP_ClassName = "CosNaming.NamingContext.AlreadyBound"

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

    _d_AlreadyBound = (omniORB.tcInternal.tv_except, AlreadyBound,
                       AlreadyBound._NP_RepositoryId, "AlreadyBound")
    _tc_AlreadyBound = omniORB.tcInternal.createTypeCode(_d_AlreadyBound)
    omniORB.registerType(AlreadyBound._NP_RepositoryId, _d_AlreadyBound,
                         _tc_AlreadyBound)

    # exception NotEmpty
    _0_CosNaming.NamingContext.NotEmpty = omniORB.newEmptyClass()

    class NotEmpty(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0"

        _NP_ClassName = "CosNaming.NamingContext.NotEmpty"

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

    _d_NotEmpty = (omniORB.tcInternal.tv_except, NotEmpty,
                   NotEmpty._NP_RepositoryId, "NotEmpty")
    _tc_NotEmpty = omniORB.tcInternal.createTypeCode(_d_NotEmpty)
    omniORB.registerType(NotEmpty._NP_RepositoryId, _d_NotEmpty, _tc_NotEmpty)
Exemplo n.º 17
0
# enum EltType
_0_ASTER_ORB.WorkingDir = omniORB.EnumItem("WorkingDir", 0)
_0_ASTER_ORB.CommFile = omniORB.EnumItem("CommFile", 1)
_0_ASTER_ORB.MedFile = omniORB.EnumItem("MedFile", 2)
_0_ASTER_ORB.SMeshEntry = omniORB.EnumItem("SMeshEntry", 3)
_0_ASTER_ORB.RemoveRmed = omniORB.EnumItem("RemoveRmed", 4)
_0_ASTER_ORB.ExportFile = omniORB.EnumItem("ExportFile", 5)
_0_ASTER_ORB.MessFile = omniORB.EnumItem("MessFile", 6)
_0_ASTER_ORB.ResuFile = omniORB.EnumItem("ResuFile", 7)
_0_ASTER_ORB.RMedFile = omniORB.EnumItem("RMedFile", 8)
_0_ASTER_ORB.EltType = omniORB.Enum("IDL:ASTER_ORB/EltType:1.0", (
    _0_ASTER_ORB.WorkingDir,
    _0_ASTER_ORB.CommFile,
    _0_ASTER_ORB.MedFile,
    _0_ASTER_ORB.SMeshEntry,
    _0_ASTER_ORB.RemoveRmed,
    _0_ASTER_ORB.ExportFile,
    _0_ASTER_ORB.MessFile,
    _0_ASTER_ORB.ResuFile,
    _0_ASTER_ORB.RMedFile,
))

_0_ASTER_ORB._d_EltType = (omniORB.tcInternal.tv_enum,
                           _0_ASTER_ORB.EltType._NP_RepositoryId, "EltType",
                           _0_ASTER_ORB.EltType._items)
_0_ASTER_ORB._tc_EltType = omniORB.tcInternal.createTypeCode(
    _0_ASTER_ORB._d_EltType)
omniORB.registerType(_0_ASTER_ORB.EltType._NP_RepositoryId,
                     _0_ASTER_ORB._d_EltType, _0_ASTER_ORB._tc_EltType)

# enum JobStatus
Exemplo n.º 18
0
_0_CosEventComm = omniORB.openModule("CosEventComm")
_0_CosEventComm__POA = omniORB.openModule("CosEventComm__POA")

#
# Start of module "CosTimerEvent"
#
__name__ = "CosTimerEvent"
_0_CosTimerEvent = omniORB.openModule("CosTimerEvent", r"/tmp/corba/omni/share/idl/omniORB/COS/CosTimerEvent.idl")
_0_CosTimerEvent__POA = omniORB.openModule("CosTimerEvent__POA", r"/tmp/corba/omni/share/idl/omniORB/COS/CosTimerEvent.idl")


# enum TimeType
_0_CosTimerEvent.TTAbsolute = omniORB.EnumItem("TTAbsolute", 0)
_0_CosTimerEvent.TTRelative = omniORB.EnumItem("TTRelative", 1)
_0_CosTimerEvent.TTPeriodic = omniORB.EnumItem("TTPeriodic", 2)
_0_CosTimerEvent.TimeType = omniORB.Enum("IDL:omg.org/CosTimerEvent/TimeType:1.0", (_0_CosTimerEvent.TTAbsolute, _0_CosTimerEvent.TTRelative, _0_CosTimerEvent.TTPeriodic,))

_0_CosTimerEvent._d_TimeType  = (omniORB.tcInternal.tv_enum, _0_CosTimerEvent.TimeType._NP_RepositoryId, "TimeType", _0_CosTimerEvent.TimeType._items)
_0_CosTimerEvent._tc_TimeType = omniORB.tcInternal.createTypeCode(_0_CosTimerEvent._d_TimeType)
omniORB.registerType(_0_CosTimerEvent.TimeType._NP_RepositoryId, _0_CosTimerEvent._d_TimeType, _0_CosTimerEvent._tc_TimeType)

# enum EventStatus
_0_CosTimerEvent.ESTimeSet = omniORB.EnumItem("ESTimeSet", 0)
_0_CosTimerEvent.ESTimeCleared = omniORB.EnumItem("ESTimeCleared", 1)
_0_CosTimerEvent.ESTriggered = omniORB.EnumItem("ESTriggered", 2)
_0_CosTimerEvent.ESFailedTrigger = omniORB.EnumItem("ESFailedTrigger", 3)
_0_CosTimerEvent.EventStatus = omniORB.Enum("IDL:omg.org/CosTimerEvent/EventStatus:1.0", (_0_CosTimerEvent.ESTimeSet, _0_CosTimerEvent.ESTimeCleared, _0_CosTimerEvent.ESTriggered, _0_CosTimerEvent.ESFailedTrigger,))

_0_CosTimerEvent._d_EventStatus  = (omniORB.tcInternal.tv_enum, _0_CosTimerEvent.EventStatus._NP_RepositoryId, "EventStatus", _0_CosTimerEvent.EventStatus._items)
_0_CosTimerEvent._tc_EventStatus = omniORB.tcInternal.createTypeCode(_0_CosTimerEvent._d_EventStatus)
omniORB.registerType(_0_CosTimerEvent.EventStatus._NP_RepositoryId, _0_CosTimerEvent._d_EventStatus, _0_CosTimerEvent._tc_EventStatus)
_0_Img.ColorFormat = omniORB.Enum("IDL:Img/ColorFormat:1.0", (
    _0_Img.CF_UNKNOWN,
    _0_Img.CF_RGB,
    _0_Img.CF_GRAY,
    _0_Img.CF_JPEG,
    _0_Img.CF_PNG,
    _0_Img.RGB,
    _0_Img.RLE8,
    _0_Img.RLE,
    _0_Img.RAW,
    _0_Img.RGBA,
    _0_Img.RGBT,
    _0_Img.AYUV,
    _0_Img.CLJR,
    _0_Img.CYUV,
    _0_Img.GREY,
    _0_Img.IRAW,
    _0_Img.IUYV,
    _0_Img.IY41,
    _0_Img.IYU1,
    _0_Img.IYU2,
    _0_Img.HDYC,
    _0_Img.UYNV,
    _0_Img.UYVP,
    _0_Img.V210,
    _0_Img.V422,
    _0_Img.V655,
    _0_Img.VYUV,
    _0_Img.YUNV,
    _0_Img.YVYU,
    _0_Img.Y41P,
    _0_Img.Y211,
    _0_Img.Y41T,
    _0_Img.Y42T,
    _0_Img.YUVP,
    _0_Img.Y800,
    _0_Img.Y8,
    _0_Img.Y16,
))
Exemplo n.º 20
0
    _0_RDITestTypes._ad_StringArrayTen)
omniORB.registerType(StringArrayTen._NP_RepositoryId,
                     _0_RDITestTypes._ad_StringArrayTen,
                     _0_RDITestTypes._tc_StringArrayTen)
del StringArrayTen

# enum UnionSwitch
_0_RDITestTypes.a = omniORB.EnumItem("a", 0)
_0_RDITestTypes.b = omniORB.EnumItem("b", 1)
_0_RDITestTypes.c = omniORB.EnumItem("c", 2)
_0_RDITestTypes.d = omniORB.EnumItem("d", 3)
_0_RDITestTypes.e = omniORB.EnumItem("e", 4)
_0_RDITestTypes.UnionSwitch = omniORB.Enum(
    "IDL:research.att.com/RDITestTypes/UnionSwitch:1.0", (
        _0_RDITestTypes.a,
        _0_RDITestTypes.b,
        _0_RDITestTypes.c,
        _0_RDITestTypes.d,
        _0_RDITestTypes.e,
    ))

_0_RDITestTypes._d_UnionSwitch = (omniORB.tcInternal.tv_enum,
                                  _0_RDITestTypes.UnionSwitch._NP_RepositoryId,
                                  "UnionSwitch",
                                  _0_RDITestTypes.UnionSwitch._items)
_0_RDITestTypes._tc_UnionSwitch = omniORB.tcInternal.createTypeCode(
    _0_RDITestTypes._d_UnionSwitch)
omniORB.registerType(_0_RDITestTypes.UnionSwitch._NP_RepositoryId,
                     _0_RDITestTypes._d_UnionSwitch,
                     _0_RDITestTypes._tc_UnionSwitch)

# union UnionType
Exemplo n.º 21
0
     omniORB.typeMapping["IDL:omg.org/CosGraphs/Edge:1.0"], 0))
_0_CosGraphs._tc_Edges = omniORB.tcInternal.createTypeCode(
    _0_CosGraphs._ad_Edges)
omniORB.registerType(Edges._NP_RepositoryId, _0_CosGraphs._ad_Edges,
                     _0_CosGraphs._tc_Edges)
del Edges

# enum PropagationValue
_0_CosGraphs.deep = omniORB.EnumItem("deep", 0)
_0_CosGraphs.shallow = omniORB.EnumItem("shallow", 1)
_0_CosGraphs.none = omniORB.EnumItem("none", 2)
_0_CosGraphs.inhibit = omniORB.EnumItem("inhibit", 3)
_0_CosGraphs.PropagationValue = omniORB.Enum(
    "IDL:omg.org/CosGraphs/PropagationValue:1.0", (
        _0_CosGraphs.deep,
        _0_CosGraphs.shallow,
        _0_CosGraphs.none,
        _0_CosGraphs.inhibit,
    ))

_0_CosGraphs._d_PropagationValue = (
    omniORB.tcInternal.tv_enum, _0_CosGraphs.PropagationValue._NP_RepositoryId,
    "PropagationValue", _0_CosGraphs.PropagationValue._items)
_0_CosGraphs._tc_PropagationValue = omniORB.tcInternal.createTypeCode(
    _0_CosGraphs._d_PropagationValue)
omniORB.registerType(_0_CosGraphs.PropagationValue._NP_RepositoryId,
                     _0_CosGraphs._d_PropagationValue,
                     _0_CosGraphs._tc_PropagationValue)

# enum Mode
_0_CosGraphs.depthFirst = omniORB.EnumItem("depthFirst", 0)
Exemplo n.º 22
0
# Start of module "transmissionDescriptor"
#
__name__ = "transmissionDescriptor"
_0_transmissionDescriptor = omniORB.openModule("transmissionDescriptor", r"transmissionDescriptor.idl")
_0_transmissionDescriptor__POA = omniORB.openModule("transmissionDescriptor__POA", r"transmissionDescriptor.idl")


# enum ServiceCategory_T
_0_transmissionDescriptor.SC_CBR = omniORB.EnumItem("SC_CBR", 0)
_0_transmissionDescriptor.SC_VBRRT = omniORB.EnumItem("SC_VBRRT", 1)
_0_transmissionDescriptor.SC_VBRNRT = omniORB.EnumItem("SC_VBRNRT", 2)
_0_transmissionDescriptor.SC_ABR = omniORB.EnumItem("SC_ABR", 3)
_0_transmissionDescriptor.SC_UBR = omniORB.EnumItem("SC_UBR", 4)
_0_transmissionDescriptor.SC_GFR = omniORB.EnumItem("SC_GFR", 5)
_0_transmissionDescriptor.SC_NA = omniORB.EnumItem("SC_NA", 6)
_0_transmissionDescriptor.ServiceCategory_T = omniORB.Enum("IDL:mtnm.tmforum.org/transmissionDescriptor/ServiceCategory_T:1.0", (_0_transmissionDescriptor.SC_CBR, _0_transmissionDescriptor.SC_VBRRT, _0_transmissionDescriptor.SC_VBRNRT, _0_transmissionDescriptor.SC_ABR, _0_transmissionDescriptor.SC_UBR, _0_transmissionDescriptor.SC_GFR, _0_transmissionDescriptor.SC_NA,))

_0_transmissionDescriptor._d_ServiceCategory_T  = (omniORB.tcInternal.tv_enum, _0_transmissionDescriptor.ServiceCategory_T._NP_RepositoryId, "ServiceCategory_T", _0_transmissionDescriptor.ServiceCategory_T._items)
_0_transmissionDescriptor._tc_ServiceCategory_T = omniORB.tcInternal.createTypeCode(_0_transmissionDescriptor._d_ServiceCategory_T)
omniORB.registerType(_0_transmissionDescriptor.ServiceCategory_T._NP_RepositoryId, _0_transmissionDescriptor._d_ServiceCategory_T, _0_transmissionDescriptor._tc_ServiceCategory_T)

# typedef ... TrafficParameterList_T
class TrafficParameterList_T:
    _NP_RepositoryId = "IDL:mtnm.tmforum.org/transmissionDescriptor/TrafficParameterList_T:1.0"
    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")
_0_transmissionDescriptor.TrafficParameterList_T = TrafficParameterList_T
_0_transmissionDescriptor._d_TrafficParameterList_T  = omniORB.typeMapping["IDL:mtnm.tmforum.org/globaldefs/NVSList_T:1.0"]
_0_transmissionDescriptor._ad_TrafficParameterList_T = (omniORB.tcInternal.tv_alias, TrafficParameterList_T._NP_RepositoryId, "TrafficParameterList_T", omniORB.typeCodeMapping["IDL:mtnm.tmforum.org/globaldefs/NVSList_T:1.0"]._d)
_0_transmissionDescriptor._tc_TrafficParameterList_T = omniORB.tcInternal.createTypeCode(_0_transmissionDescriptor._ad_TrafficParameterList_T)
omniORB.registerType(TrafficParameterList_T._NP_RepositoryId, _0_transmissionDescriptor._ad_TrafficParameterList_T, _0_transmissionDescriptor._tc_TrafficParameterList_T)
Exemplo n.º 23
0
#
# Start of module "NamingAuthority"
#
__name__ = "NamingAuthority"
_0_NamingAuthority = omniORB.openModule("NamingAuthority", r"NamingAuthority.idl")
_0_NamingAuthority__POA = omniORB.openModule("NamingAuthority__POA", r"NamingAuthority.idl")


# enum RegistrationAuthority
_0_NamingAuthority.OTHER = omniORB.EnumItem("OTHER", 0)
_0_NamingAuthority.ISO = omniORB.EnumItem("ISO", 1)
_0_NamingAuthority.DNS = omniORB.EnumItem("DNS", 2)
_0_NamingAuthority.IDL = omniORB.EnumItem("IDL", 3)
_0_NamingAuthority.DCE = omniORB.EnumItem("DCE", 4)
_0_NamingAuthority.RegistrationAuthority = omniORB.Enum("IDL:omg.org/NamingAuthority/RegistrationAuthority:1.0", (_0_NamingAuthority.OTHER, _0_NamingAuthority.ISO, _0_NamingAuthority.DNS, _0_NamingAuthority.IDL, _0_NamingAuthority.DCE,))

_0_NamingAuthority._d_RegistrationAuthority  = (omniORB.tcInternal.tv_enum, _0_NamingAuthority.RegistrationAuthority._NP_RepositoryId, "RegistrationAuthority", _0_NamingAuthority.RegistrationAuthority._items)
_0_NamingAuthority._tc_RegistrationAuthority = omniORB.tcInternal.createTypeCode(_0_NamingAuthority._d_RegistrationAuthority)
omniORB.registerType(_0_NamingAuthority.RegistrationAuthority._NP_RepositoryId, _0_NamingAuthority._d_RegistrationAuthority, _0_NamingAuthority._tc_RegistrationAuthority)

# typedef ... NamingEntity
class NamingEntity:
    _NP_RepositoryId = "IDL:omg.org/NamingAuthority/NamingEntity:1.0"
    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")
_0_NamingAuthority.NamingEntity = NamingEntity
_0_NamingAuthority._d_NamingEntity  = (omniORB.tcInternal.tv_string,0)
_0_NamingAuthority._ad_NamingEntity = (omniORB.tcInternal.tv_alias, NamingEntity._NP_RepositoryId, "NamingEntity", (omniORB.tcInternal.tv_string,0))
_0_NamingAuthority._tc_NamingEntity = omniORB.tcInternal.createTypeCode(_0_NamingAuthority._ad_NamingEntity)
omniORB.registerType(NamingEntity._NP_RepositoryId, _0_NamingAuthority._ad_NamingEntity, _0_NamingAuthority._tc_NamingEntity)
Exemplo n.º 24
0
_0_globaldefs._d_Time_T = (omniORB.tcInternal.tv_string, 0)
_0_globaldefs._ad_Time_T = (omniORB.tcInternal.tv_alias,
                            Time_T._NP_RepositoryId, "Time_T",
                            (omniORB.tcInternal.tv_string, 0))
_0_globaldefs._tc_Time_T = omniORB.tcInternal.createTypeCode(
    _0_globaldefs._ad_Time_T)
omniORB.registerType(Time_T._NP_RepositoryId, _0_globaldefs._ad_Time_T,
                     _0_globaldefs._tc_Time_T)
del Time_T

# enum ConnectionDirection_T
_0_globaldefs.CD_UNI = omniORB.EnumItem("CD_UNI", 0)
_0_globaldefs.CD_BI = omniORB.EnumItem("CD_BI", 1)
_0_globaldefs.ConnectionDirection_T = omniORB.Enum(
    "IDL:mtnm.tmforum.org/globaldefs/ConnectionDirection_T:1.0", (
        _0_globaldefs.CD_UNI,
        _0_globaldefs.CD_BI,
    ))

_0_globaldefs._d_ConnectionDirection_T = (
    omniORB.tcInternal.tv_enum,
    _0_globaldefs.ConnectionDirection_T._NP_RepositoryId,
    "ConnectionDirection_T", _0_globaldefs.ConnectionDirection_T._items)
_0_globaldefs._tc_ConnectionDirection_T = omniORB.tcInternal.createTypeCode(
    _0_globaldefs._d_ConnectionDirection_T)
omniORB.registerType(_0_globaldefs.ConnectionDirection_T._NP_RepositoryId,
                     _0_globaldefs._d_ConnectionDirection_T,
                     _0_globaldefs._tc_ConnectionDirection_T)

# enum ExceptionType_T
_0_globaldefs.EXCPT_NOT_IMPLEMENTED = omniORB.EnumItem("EXCPT_NOT_IMPLEMENTED",
Exemplo n.º 25
0
#
# Start of module "demo"
#
__name__ = "demo"
_0_demo = omniORB.openModule("demo", r"..\IntegerSequence.idl")
_0_demo__POA = omniORB.openModule("demo__POA", r"..\IntegerSequence.idl")

_0_demo.MAX_QUERY_SIZE = 100

# enum ResponseType
_0_demo.t_int = omniORB.EnumItem("t_int", 0)
_0_demo.t_string = omniORB.EnumItem("t_string", 1)
_0_demo.t_error = omniORB.EnumItem("t_error", 2)
_0_demo.ResponseType = omniORB.Enum("IDL:demo/ResponseType:1.0", (
    _0_demo.t_int,
    _0_demo.t_string,
    _0_demo.t_error,
))

_0_demo._d_ResponseType = (omniORB.tcInternal.tv_enum,
                           _0_demo.ResponseType._NP_RepositoryId,
                           "ResponseType", _0_demo.ResponseType._items)
_0_demo._tc_ResponseType = omniORB.tcInternal.createTypeCode(
    _0_demo._d_ResponseType)
omniORB.registerType(_0_demo.ResponseType._NP_RepositoryId,
                     _0_demo._d_ResponseType, _0_demo._tc_ResponseType)

# union Response
_0_demo.Response = omniORB.newEmptyClass()

_0_JARA_ARM = omniORB.openModule("JARA_ARM")
_0_JARA_ARM__POA = omniORB.openModule("JARA_ARM__POA")

#
# Start of module "JARA_ARM"
#
__name__ = "JARA_ARM"
_0_JARA_ARM = omniORB.openModule("JARA_ARM", r"idl/ManipulatorCommonInterface_Common.idl")
_0_JARA_ARM__POA = omniORB.openModule("JARA_ARM__POA", r"idl/ManipulatorCommonInterface_Common.idl")


# enum AlarmType
_0_JARA_ARM.FAULT = omniORB.EnumItem("FAULT", 0)
_0_JARA_ARM.WARNING = omniORB.EnumItem("WARNING", 1)
_0_JARA_ARM.UNKNOWN = omniORB.EnumItem("UNKNOWN", 2)
_0_JARA_ARM.AlarmType = omniORB.Enum("IDL:JARA_ARM/AlarmType:1.0", (_0_JARA_ARM.FAULT, _0_JARA_ARM.WARNING, _0_JARA_ARM.UNKNOWN,))

_0_JARA_ARM._d_AlarmType  = (omniORB.tcInternal.tv_enum, _0_JARA_ARM.AlarmType._NP_RepositoryId, "AlarmType", _0_JARA_ARM.AlarmType._items)
_0_JARA_ARM._tc_AlarmType = omniORB.tcInternal.createTypeCode(_0_JARA_ARM._d_AlarmType)
omniORB.registerType(_0_JARA_ARM.AlarmType._NP_RepositoryId, _0_JARA_ARM._d_AlarmType, _0_JARA_ARM._tc_AlarmType)

# struct Alarm
_0_JARA_ARM.Alarm = omniORB.newEmptyClass()
class Alarm (omniORB.StructBase):
    _NP_RepositoryId = "IDL:JARA_ARM/Alarm:1.0"

    def __init__(self, code, type, description):
        self.code = code
        self.type = type
        self.description = description
#
__name__ = "terminationPoint"
_0_terminationPoint = omniORB.openModule("terminationPoint",
                                         r"terminationPoint.idl")
_0_terminationPoint__POA = omniORB.openModule("terminationPoint__POA",
                                              r"terminationPoint.idl")

# enum Directionality_T
_0_terminationPoint.D_NA = omniORB.EnumItem("D_NA", 0)
_0_terminationPoint.D_BIDIRECTIONAL = omniORB.EnumItem("D_BIDIRECTIONAL", 1)
_0_terminationPoint.D_SOURCE = omniORB.EnumItem("D_SOURCE", 2)
_0_terminationPoint.D_SINK = omniORB.EnumItem("D_SINK", 3)
_0_terminationPoint.Directionality_T = omniORB.Enum(
    "IDL:mtnm.tmforum.org/terminationPoint/Directionality_T:1.0", (
        _0_terminationPoint.D_NA,
        _0_terminationPoint.D_BIDIRECTIONAL,
        _0_terminationPoint.D_SOURCE,
        _0_terminationPoint.D_SINK,
    ))

_0_terminationPoint._d_Directionality_T = (
    omniORB.tcInternal.tv_enum,
    _0_terminationPoint.Directionality_T._NP_RepositoryId, "Directionality_T",
    _0_terminationPoint.Directionality_T._items)
_0_terminationPoint._tc_Directionality_T = omniORB.tcInternal.createTypeCode(
    _0_terminationPoint._d_Directionality_T)
omniORB.registerType(_0_terminationPoint.Directionality_T._NP_RepositoryId,
                     _0_terminationPoint._d_Directionality_T,
                     _0_terminationPoint._tc_Directionality_T)

# enum TPConnectionState_T
Exemplo n.º 28
0
_omnipy.checkVersion(3,0, __file__)


#
# Start of module "CARESS"
#
__name__ = "CARESS"
_0_CARESS = omniORB.openModule("CARESS", r"corbadevice.idl")
_0_CARESS__POA = omniORB.openModule("CARESS__POA", r"corbadevice.idl")


# enum ReturnType
_0_CARESS.OK = omniORB.EnumItem("OK", 0)
_0_CARESS.NOT_OK = omniORB.EnumItem("NOT_OK", 1)
_0_CARESS.ReturnType = omniORB.Enum("IDL:CARESS/ReturnType:1.0", (_0_CARESS.OK, _0_CARESS.NOT_OK,))

_0_CARESS._d_ReturnType  = (omniORB.tcInternal.tv_enum, _0_CARESS.ReturnType._NP_RepositoryId, "ReturnType", _0_CARESS.ReturnType._items)
_0_CARESS._tc_ReturnType = omniORB.tcInternal.createTypeCode(_0_CARESS._d_ReturnType)
omniORB.registerType(_0_CARESS.ReturnType._NP_RepositoryId, _0_CARESS._d_ReturnType, _0_CARESS._tc_ReturnType)

# typedef ... ArrayLong
class ArrayLong:
    _NP_RepositoryId = "IDL:CARESS/ArrayLong:1.0"
    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")
_0_CARESS.ArrayLong = ArrayLong
_0_CARESS._d_ArrayLong  = (omniORB.tcInternal.tv_sequence, omniORB.tcInternal.tv_long, 0)
_0_CARESS._ad_ArrayLong = (omniORB.tcInternal.tv_alias, ArrayLong._NP_RepositoryId, "ArrayLong", (omniORB.tcInternal.tv_sequence, omniORB.tcInternal.tv_long, 0))
_0_CARESS._tc_ArrayLong = omniORB.tcInternal.createTypeCode(_0_CARESS._ad_ArrayLong)
omniORB.registerType(ArrayLong._NP_RepositoryId, _0_CARESS._ad_ArrayLong, _0_CARESS._tc_ArrayLong)
Exemplo n.º 29
0
class ServiceTypeRepository:
    _NP_RepositoryId = _0_CosTradingRepos._d_ServiceTypeRepository[1]

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

    _nil = CORBA.Object._nil

    # typedef ... ServiceTypeNameSeq
    class ServiceTypeNameSeq:
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ServiceTypeNameSeq:1.0"

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

    _d_ServiceTypeNameSeq = (
        omniORB.tcInternal.tv_sequence,
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"], 0)
    _ad_ServiceTypeNameSeq = (
        omniORB.tcInternal.tv_alias, ServiceTypeNameSeq._NP_RepositoryId,
        "ServiceTypeNameSeq",
        (omniORB.tcInternal.tv_sequence,
         omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"], 0))
    _tc_ServiceTypeNameSeq = omniORB.tcInternal.createTypeCode(
        _ad_ServiceTypeNameSeq)
    omniORB.registerType(ServiceTypeNameSeq._NP_RepositoryId,
                         _ad_ServiceTypeNameSeq, _tc_ServiceTypeNameSeq)

    # enum PropertyMode
    PROP_NORMAL = omniORB.EnumItem("PROP_NORMAL", 0)
    PROP_READONLY = omniORB.EnumItem("PROP_READONLY", 1)
    PROP_MANDATORY = omniORB.EnumItem("PROP_MANDATORY", 2)
    PROP_MANDATORY_READONLY = omniORB.EnumItem("PROP_MANDATORY_READONLY", 3)
    PropertyMode = omniORB.Enum(
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropertyMode:1.0", (
            PROP_NORMAL,
            PROP_READONLY,
            PROP_MANDATORY,
            PROP_MANDATORY_READONLY,
        ))

    _d_PropertyMode = (omniORB.tcInternal.tv_enum,
                       PropertyMode._NP_RepositoryId, "PropertyMode",
                       PropertyMode._items)
    _tc_PropertyMode = omniORB.tcInternal.createTypeCode(_d_PropertyMode)
    omniORB.registerType(PropertyMode._NP_RepositoryId, _d_PropertyMode,
                         _tc_PropertyMode)

    # struct PropStruct
    _0_CosTradingRepos.ServiceTypeRepository.PropStruct = omniORB.newEmptyClass(
    )

    class PropStruct(omniORB.StructBase):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStruct:1.0"

        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.PropStruct"

        def __init__(self, name, value_type, mode):
            self.name = name
            self.value_type = value_type
            self.mode = mode

    _d_PropStruct = _0_CosTradingRepos.ServiceTypeRepository._d_PropStruct = (
        omniORB.tcInternal.tv_struct, PropStruct, PropStruct._NP_RepositoryId,
        "PropStruct", "name",
        omniORB.typeMapping["IDL:omg.org/CosTrading/PropertyName:1.0"],
        "value_type", omniORB.tcInternal.tv_TypeCode, "mode",
        omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropertyMode:1.0"]
    )
    _tc_PropStruct = omniORB.tcInternal.createTypeCode(_d_PropStruct)
    omniORB.registerType(PropStruct._NP_RepositoryId, _d_PropStruct,
                         _tc_PropStruct)

    # typedef ... PropStructSeq
    class PropStructSeq:
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStructSeq:1.0"

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

    _d_PropStructSeq = (omniORB.tcInternal.tv_sequence, omniORB.typeMapping[
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStruct:1.0"], 0)
    _ad_PropStructSeq = (
        omniORB.tcInternal.tv_alias, PropStructSeq._NP_RepositoryId,
        "PropStructSeq", (omniORB.tcInternal.tv_sequence, omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStruct:1.0"],
                          0))
    _tc_PropStructSeq = omniORB.tcInternal.createTypeCode(_ad_PropStructSeq)
    omniORB.registerType(PropStructSeq._NP_RepositoryId, _ad_PropStructSeq,
                         _tc_PropStructSeq)

    # typedef ... Identifier
    class Identifier:
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/Identifier:1.0"

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

    _d_Identifier = omniORB.typeMapping["IDL:omg.org/CosTrading/Istring:1.0"]
    _ad_Identifier = (
        omniORB.tcInternal.tv_alias, Identifier._NP_RepositoryId, "Identifier",
        omniORB.typeCodeMapping["IDL:omg.org/CosTrading/Istring:1.0"]._d)
    _tc_Identifier = omniORB.tcInternal.createTypeCode(_ad_Identifier)
    omniORB.registerType(Identifier._NP_RepositoryId, _ad_Identifier,
                         _tc_Identifier)

    # struct IncarnationNumber
    _0_CosTradingRepos.ServiceTypeRepository.IncarnationNumber = omniORB.newEmptyClass(
    )

    class IncarnationNumber(omniORB.StructBase):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/IncarnationNumber:1.0"

        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.IncarnationNumber"

        def __init__(self, high, low):
            self.high = high
            self.low = low

    _d_IncarnationNumber = _0_CosTradingRepos.ServiceTypeRepository._d_IncarnationNumber = (
        omniORB.tcInternal.tv_struct, IncarnationNumber,
        IncarnationNumber._NP_RepositoryId, "IncarnationNumber", "high",
        omniORB.tcInternal.tv_ulong, "low", omniORB.tcInternal.tv_ulong)
    _tc_IncarnationNumber = omniORB.tcInternal.createTypeCode(
        _d_IncarnationNumber)
    omniORB.registerType(IncarnationNumber._NP_RepositoryId,
                         _d_IncarnationNumber, _tc_IncarnationNumber)

    # struct TypeStruct
    _0_CosTradingRepos.ServiceTypeRepository.TypeStruct = omniORB.newEmptyClass(
    )

    class TypeStruct(omniORB.StructBase):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/TypeStruct:1.0"

        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.TypeStruct"

        def __init__(self, if_name, props, super_types, masked, incarnation):
            self.if_name = if_name
            self.props = props
            self.super_types = super_types
            self.masked = masked
            self.incarnation = incarnation

    _d_TypeStruct = _0_CosTradingRepos.ServiceTypeRepository._d_TypeStruct = (
        omniORB.tcInternal.tv_struct, TypeStruct, TypeStruct._NP_RepositoryId,
        "TypeStruct", "if_name", omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/Identifier:1.0"],
        "props", omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStructSeq:1.0"],
        "super_types", omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ServiceTypeNameSeq:1.0"],
        "masked", omniORB.tcInternal.tv_boolean, "incarnation",
        omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/IncarnationNumber:1.0"]
    )
    _tc_TypeStruct = omniORB.tcInternal.createTypeCode(_d_TypeStruct)
    omniORB.registerType(TypeStruct._NP_RepositoryId, _d_TypeStruct,
                         _tc_TypeStruct)

    # enum ListOption
    all = omniORB.EnumItem("all", 0)
    since = omniORB.EnumItem("since", 1)
    ListOption = omniORB.Enum(
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ListOption:1.0", (
            all,
            since,
        ))

    _d_ListOption = (omniORB.tcInternal.tv_enum, ListOption._NP_RepositoryId,
                     "ListOption", ListOption._items)
    _tc_ListOption = omniORB.tcInternal.createTypeCode(_d_ListOption)
    omniORB.registerType(ListOption._NP_RepositoryId, _d_ListOption,
                         _tc_ListOption)

    # union SpecifiedServiceTypes
    _0_CosTradingRepos.ServiceTypeRepository.SpecifiedServiceTypes = omniORB.newEmptyClass(
    )

    class SpecifiedServiceTypes(omniORB.Union):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/SpecifiedServiceTypes:1.0"
        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.SpecifiedServiceTypes"

    SpecifiedServiceTypes._m_to_d = {"incarnation": since}
    SpecifiedServiceTypes._d_to_m = {since: "incarnation"}
    SpecifiedServiceTypes._def_m = None
    SpecifiedServiceTypes._def_d = None

    _m_SpecifiedServiceTypes = ((since, "incarnation", omniORB.typeMapping[
        "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/IncarnationNumber:1.0"]
                                 ), )
    _d_SpecifiedServiceTypes = _0_CosTradingRepos.ServiceTypeRepository._d_SpecifiedServiceTypes = (
        omniORB.tcInternal.tv_union, SpecifiedServiceTypes,
        SpecifiedServiceTypes._NP_RepositoryId, "SpecifiedServiceTypes",
        omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ListOption:1.0"],
        -1, _m_SpecifiedServiceTypes, None, {
            since: _m_SpecifiedServiceTypes[0]
        })
    _tc_SpecifiedServiceTypes = omniORB.tcInternal.createTypeCode(
        _d_SpecifiedServiceTypes)
    omniORB.registerType(SpecifiedServiceTypes._NP_RepositoryId,
                         _d_SpecifiedServiceTypes, _tc_SpecifiedServiceTypes)

    # exception ServiceTypeExists
    _0_CosTradingRepos.ServiceTypeRepository.ServiceTypeExists = omniORB.newEmptyClass(
    )

    class ServiceTypeExists(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ServiceTypeExists:1.0"

        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.ServiceTypeExists"

        def __init__(self, name):
            CORBA.UserException.__init__(self, name)
            self.name = name

    _d_ServiceTypeExists = (
        omniORB.tcInternal.tv_except, ServiceTypeExists,
        ServiceTypeExists._NP_RepositoryId, "ServiceTypeExists", "name",
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"])
    _tc_ServiceTypeExists = omniORB.tcInternal.createTypeCode(
        _d_ServiceTypeExists)
    omniORB.registerType(ServiceTypeExists._NP_RepositoryId,
                         _d_ServiceTypeExists, _tc_ServiceTypeExists)

    # exception InterfaceTypeMismatch
    _0_CosTradingRepos.ServiceTypeRepository.InterfaceTypeMismatch = omniORB.newEmptyClass(
    )

    class InterfaceTypeMismatch(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/InterfaceTypeMismatch:1.0"

        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.InterfaceTypeMismatch"

        def __init__(self, base_service, base_if, derived_service, derived_if):
            CORBA.UserException.__init__(self, base_service, base_if,
                                         derived_service, derived_if)
            self.base_service = base_service
            self.base_if = base_if
            self.derived_service = derived_service
            self.derived_if = derived_if

    _d_InterfaceTypeMismatch = (
        omniORB.tcInternal.tv_except, InterfaceTypeMismatch,
        InterfaceTypeMismatch._NP_RepositoryId, "InterfaceTypeMismatch",
        "base_service",
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"],
        "base_if", omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/Identifier:1.0"],
        "derived_service",
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"],
        "derived_if", omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/Identifier:1.0"]
    )
    _tc_InterfaceTypeMismatch = omniORB.tcInternal.createTypeCode(
        _d_InterfaceTypeMismatch)
    omniORB.registerType(InterfaceTypeMismatch._NP_RepositoryId,
                         _d_InterfaceTypeMismatch, _tc_InterfaceTypeMismatch)

    # exception HasSubTypes
    _0_CosTradingRepos.ServiceTypeRepository.HasSubTypes = omniORB.newEmptyClass(
    )

    class HasSubTypes(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/HasSubTypes:1.0"

        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.HasSubTypes"

        def __init__(self, the_type, sub_type):
            CORBA.UserException.__init__(self, the_type, sub_type)
            self.the_type = the_type
            self.sub_type = sub_type

    _d_HasSubTypes = (
        omniORB.tcInternal.tv_except, HasSubTypes,
        HasSubTypes._NP_RepositoryId, "HasSubTypes", "the_type",
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"],
        "sub_type",
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"])
    _tc_HasSubTypes = omniORB.tcInternal.createTypeCode(_d_HasSubTypes)
    omniORB.registerType(HasSubTypes._NP_RepositoryId, _d_HasSubTypes,
                         _tc_HasSubTypes)

    # exception AlreadyMasked
    _0_CosTradingRepos.ServiceTypeRepository.AlreadyMasked = omniORB.newEmptyClass(
    )

    class AlreadyMasked(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/AlreadyMasked:1.0"

        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.AlreadyMasked"

        def __init__(self, name):
            CORBA.UserException.__init__(self, name)
            self.name = name

    _d_AlreadyMasked = (
        omniORB.tcInternal.tv_except, AlreadyMasked,
        AlreadyMasked._NP_RepositoryId, "AlreadyMasked", "name",
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"])
    _tc_AlreadyMasked = omniORB.tcInternal.createTypeCode(_d_AlreadyMasked)
    omniORB.registerType(AlreadyMasked._NP_RepositoryId, _d_AlreadyMasked,
                         _tc_AlreadyMasked)

    # exception NotMasked
    _0_CosTradingRepos.ServiceTypeRepository.NotMasked = omniORB.newEmptyClass(
    )

    class NotMasked(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/NotMasked:1.0"

        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.NotMasked"

        def __init__(self, name):
            CORBA.UserException.__init__(self, name)
            self.name = name

    _d_NotMasked = (
        omniORB.tcInternal.tv_except, NotMasked, NotMasked._NP_RepositoryId,
        "NotMasked", "name",
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"])
    _tc_NotMasked = omniORB.tcInternal.createTypeCode(_d_NotMasked)
    omniORB.registerType(NotMasked._NP_RepositoryId, _d_NotMasked,
                         _tc_NotMasked)

    # exception ValueTypeRedefinition
    _0_CosTradingRepos.ServiceTypeRepository.ValueTypeRedefinition = omniORB.newEmptyClass(
    )

    class ValueTypeRedefinition(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ValueTypeRedefinition:1.0"

        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.ValueTypeRedefinition"

        def __init__(self, type_1, definition_1, type_2, definition_2):
            CORBA.UserException.__init__(self, type_1, definition_1, type_2,
                                         definition_2)
            self.type_1 = type_1
            self.definition_1 = definition_1
            self.type_2 = type_2
            self.definition_2 = definition_2

    _d_ValueTypeRedefinition = (
        omniORB.tcInternal.tv_except, ValueTypeRedefinition,
        ValueTypeRedefinition._NP_RepositoryId, "ValueTypeRedefinition",
        "type_1",
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"],
        "definition_1", omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStruct:1.0"],
        "type_2",
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"],
        "definition_2", omniORB.typeMapping[
            "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/PropStruct:1.0"]
    )
    _tc_ValueTypeRedefinition = omniORB.tcInternal.createTypeCode(
        _d_ValueTypeRedefinition)
    omniORB.registerType(ValueTypeRedefinition._NP_RepositoryId,
                         _d_ValueTypeRedefinition, _tc_ValueTypeRedefinition)

    # exception DuplicateServiceTypeName
    _0_CosTradingRepos.ServiceTypeRepository.DuplicateServiceTypeName = omniORB.newEmptyClass(
    )

    class DuplicateServiceTypeName(CORBA.UserException):
        _NP_RepositoryId = "IDL:omg.org/CosTradingRepos/ServiceTypeRepository/DuplicateServiceTypeName:1.0"

        _NP_ClassName = "CosTradingRepos.ServiceTypeRepository.DuplicateServiceTypeName"

        def __init__(self, name):
            CORBA.UserException.__init__(self, name)
            self.name = name

    _d_DuplicateServiceTypeName = (
        omniORB.tcInternal.tv_except, DuplicateServiceTypeName,
        DuplicateServiceTypeName._NP_RepositoryId, "DuplicateServiceTypeName",
        "name",
        omniORB.typeMapping["IDL:omg.org/CosTrading/ServiceTypeName:1.0"])
    _tc_DuplicateServiceTypeName = omniORB.tcInternal.createTypeCode(
        _d_DuplicateServiceTypeName)
    omniORB.registerType(DuplicateServiceTypeName._NP_RepositoryId,
                         _d_DuplicateServiceTypeName,
                         _tc_DuplicateServiceTypeName)
Exemplo n.º 30
0
_0_CosNaming._ad_Name = (
    omniORB.tcInternal.tv_alias, Name._NP_RepositoryId, "Name",
    (omniORB.tcInternal.tv_sequence,
     omniORB.typeMapping["IDL:omg.org/CosNaming/NameComponent:1.0"], 0))
_0_CosNaming._tc_Name = omniORB.tcInternal.createTypeCode(
    _0_CosNaming._ad_Name)
omniORB.registerType(Name._NP_RepositoryId, _0_CosNaming._ad_Name,
                     _0_CosNaming._tc_Name)
del Name

# enum BindingType
_0_CosNaming.nobject = omniORB.EnumItem("nobject", 0)
_0_CosNaming.ncontext = omniORB.EnumItem("ncontext", 1)
_0_CosNaming.BindingType = omniORB.Enum(
    "IDL:omg.org/CosNaming/BindingType:1.0", (
        _0_CosNaming.nobject,
        _0_CosNaming.ncontext,
    ))

_0_CosNaming._d_BindingType = (omniORB.tcInternal.tv_enum,
                               _0_CosNaming.BindingType._NP_RepositoryId,
                               "BindingType", _0_CosNaming.BindingType._items)
_0_CosNaming._tc_BindingType = omniORB.tcInternal.createTypeCode(
    _0_CosNaming._d_BindingType)
omniORB.registerType(_0_CosNaming.BindingType._NP_RepositoryId,
                     _0_CosNaming._d_BindingType, _0_CosNaming._tc_BindingType)

# struct Binding
_0_CosNaming.Binding = omniORB.newEmptyClass()