home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / fnb101.zip / Lib / site-packages / Fnorb / orb / GIOP.py < prev    next >
Text File  |  1999-06-28  |  12KB  |  189 lines

  1. """ Module: IDL:omg.org/GIOP:1.0
  2.  
  3. Automagically generated by:-
  4.  
  5. The ORB called Fnorb v1.0.Threads.R.Us
  6.  
  7. """
  8.  
  9. _FNORB_ID = "IDL:omg.org/GIOP:1.0"
  10.  
  11. # Fnorb modules.
  12. import CORBA
  13. import TypeManager
  14. import Util
  15.  
  16. class Version:
  17.     """ Struct: IDL:omg.org/GIOP/Version:1.0 """
  18.  
  19.     _FNORB_ID = "IDL:omg.org/GIOP/Version:1.0"
  20.  
  21.     def __init__(self, _major, _minor):
  22.         """ Constructor. """
  23.  
  24.         self.major = _major
  25.         self.minor = _minor
  26.         return
  27.  
  28.     def __getinitargs__(self):
  29.         """ Return the constructor arguments for unpickling. """
  30.  
  31.         return (self.major, self.minor)
  32.  
  33. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/Version:1.0", "000000000000000F00000058000000000000001D49444C3A6F6D672E6F72672F47494F502F56657273696F6E3A312E30000000000000000856657273696F6E0000000002000000066D616A6F720000000000000A000000066D696E6F720000000000000A", Version)
  34.  
  35. # Enum: IDL:omg.org/GIOP/MsgType:1.0
  36. Request = Util.EnumMember("Request", 0)
  37. Reply = Util.EnumMember("Reply", 1)
  38. CancelRequest = Util.EnumMember("CancelRequest", 2)
  39. LocateRequest = Util.EnumMember("LocateRequest", 3)
  40. LocateReply = Util.EnumMember("LocateReply", 4)
  41. CloseConnection = Util.EnumMember("CloseConnection", 5)
  42. MessageError = Util.EnumMember("MessageError", 6)
  43. MsgType = Util.Enum("IDL:omg.org/GIOP/MsgType:1.0", [Request, Reply, CancelRequest, LocateRequest, LocateReply, CloseConnection, MessageError])
  44.  
  45. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/MsgType:1.0", "0000000000000011000000AD000000000000001D49444C3A6F6D672E6F72672F47494F502F4D7367547970653A312E3000000000000000084D7367547970650000000007000000085265717565737400000000065265706C790000000000000E43616E63656C526571756573740000000000000E4C6F63617465526571756573740000000000000C4C6F636174655265706C790000000010436C6F7365436F6E6E656374696F6E000000000D4D6573736167654572726F7200", MsgType)
  46.  
  47. class MessageHeader:
  48.     """ Struct: IDL:omg.org/GIOP/MessageHeader:1.0 """
  49.  
  50.     _FNORB_ID = "IDL:omg.org/GIOP/MessageHeader:1.0"
  51.  
  52.     def __init__(self, _magic, _GIOP_version, _byte_order, _message_type, _message_size):
  53.         """ Constructor. """
  54.  
  55.         self.magic = _magic
  56.         self.GIOP_version = _GIOP_version
  57.         self.byte_order = _byte_order
  58.         self.message_type = _message_type
  59.         self.message_size = _message_size
  60.         return
  61.  
  62.     def __getinitargs__(self):
  63.         """ Return the constructor arguments for unpickling. """
  64.  
  65.         return (self.magic, self.GIOP_version, self.byte_order, self.message_type, self.message_size)
  66.  
  67. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/MessageHeader:1.0", "000000000000000F0000011C000000000000002349444C3A6F6D672E6F72672F47494F502F4D6573736167654865616465723A312E3000000000000E4D65737361676548656164657200000000000005000000066D61676963000000000000140000000C0000000000000009000000040000000D47494F505F76657273696F6E000000000000000F00000058000000000000001D49444C3A6F6D672E6F72672F47494F502F56657273696F6E3A312E30000000000000000856657273696F6E0000000002000000066D616A6F720000000000000A000000066D696E6F720000000000000A0000000B627974655F6F726465720000000000080000000D6D6573736167655F74797065000000000000000A0000000D6D6573736167655F73697A650000000000000005", MessageHeader)
  68.  
  69. # Alias: IDL:omg.org/GIOP/Principal:1.0
  70. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/Principal:1.0", "00000000000000130000000C000000000000000A00000000", None)
  71.  
  72. class RequestHeader:
  73.     """ Struct: IDL:omg.org/GIOP/RequestHeader:1.0 """
  74.  
  75.     _FNORB_ID = "IDL:omg.org/GIOP/RequestHeader:1.0"
  76.  
  77.     def __init__(self, _service_context, _request_id, _response_expected, _object_key, _operation, _requesting_principal):
  78.         """ Constructor. """
  79.  
  80.         self.service_context = _service_context
  81.         self.request_id = _request_id
  82.         self.response_expected = _response_expected
  83.         self.object_key = _object_key
  84.         self.operation = _operation
  85.         self.requesting_principal = _requesting_principal
  86.         return
  87.  
  88.     def __getinitargs__(self):
  89.         """ Return the constructor arguments for unpickling. """
  90.  
  91.         return (self.service_context, self.request_id, self.response_expected, self.object_key, self.operation, self.requesting_principal)
  92.  
  93. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/RequestHeader:1.0", "000000000000000F0000020C000000000000002349444C3A6F6D672E6F72672F47494F502F526571756573744865616465723A312E3000000000000E526571756573744865616465720000000000000600000010736572766963655F636F6E74657874000000001500000120000000000000002749444C3A6F6D672E6F72672F494F502F53657276696365436F6E746578744C6973743A312E3000000000001353657276696365436F6E746578744C697374000000000013000000D0000000000000000F000000C0000000000000002349444C3A6F6D672E6F72672F494F502F53657276696365436F6E746578743A312E3000000000000F53657276696365436F6E746578740000000000020000000B636F6E746578745F69640000000000150000003C000000000000001E49444C3A6F6D672E6F72672F494F502F5365727669636549643A312E300000000000000A536572766963654964000000000000050000000D636F6E746578745F6461746100000000000000130000000C000000000000000A00000000000000000000000B726571756573745F696400000000000500000012726573706F6E73655F6578706563746564000000000000080000000B6F626A6563745F6B65790000000000130000000C000000000000000A000000000000000A6F7065726174696F6E00000000000012000000000000001572657175657374696E675F7072696E636970616C000000000000000D", RequestHeader)
  94.  
  95. # Enum: IDL:omg.org/GIOP/ReplyStatusType:1.0
  96. NO_EXCEPTION = Util.EnumMember("NO_EXCEPTION", 0)
  97. USER_EXCEPTION = Util.EnumMember("USER_EXCEPTION", 1)
  98. SYSTEM_EXCEPTION = Util.EnumMember("SYSTEM_EXCEPTION", 2)
  99. LOCATION_FORWARD = Util.EnumMember("LOCATION_FORWARD", 3)
  100. ReplyStatusType = Util.Enum("IDL:omg.org/GIOP/ReplyStatusType:1.0", [NO_EXCEPTION, USER_EXCEPTION, SYSTEM_EXCEPTION, LOCATION_FORWARD])
  101.  
  102. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/ReplyStatusType:1.0", "00000000000000110000009D000000000000002549444C3A6F6D672E6F72672F47494F502F5265706C79537461747573547970653A312E3000000000000000105265706C795374617475735479706500000000040000000D4E4F5F455843455054494F4E000000000000000F555345525F455843455054494F4E00000000001153595354454D5F455843455054494F4E00000000000000114C4F434154494F4E5F464F525741524400", ReplyStatusType)
  103.  
  104. class ReplyHeader:
  105.     """ Struct: IDL:omg.org/GIOP/ReplyHeader:1.0 """
  106.  
  107.     _FNORB_ID = "IDL:omg.org/GIOP/ReplyHeader:1.0"
  108.  
  109.     def __init__(self, _service_context, _request_id, _reply_status):
  110.         """ Constructor. """
  111.  
  112.         self.service_context = _service_context
  113.         self.request_id = _request_id
  114.         self.reply_status = _reply_status
  115.         return
  116.  
  117.     def __getinitargs__(self):
  118.         """ Return the constructor arguments for unpickling. """
  119.  
  120.         return (self.service_context, self.request_id, self.reply_status)
  121.  
  122. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/ReplyHeader:1.0", "000000000000000F00000249000000000000002149444C3A6F6D672E6F72672F47494F502F5265706C794865616465723A312E30000000000000000C5265706C79486561646572000000000300000010736572766963655F636F6E74657874000000001500000120000000000000002749444C3A6F6D672E6F72672F494F502F53657276696365436F6E746578744C6973743A312E3000000000001353657276696365436F6E746578744C697374000000000013000000D0000000000000000F000000C0000000000000002349444C3A6F6D672E6F72672F494F502F53657276696365436F6E746578743A312E3000000000000F53657276696365436F6E746578740000000000020000000B636F6E746578745F69640000000000150000003C000000000000001E49444C3A6F6D672E6F72672F494F502F5365727669636549643A312E300000000000000A536572766963654964000000000000050000000D636F6E746578745F6461746100000000000000130000000C000000000000000A00000000000000000000000B726571756573745F69640000000000050000000D7265706C795F73746174757300000000000000110000009D000000000000002549444C3A6F6D672E6F72672F47494F502F5265706C79537461747573547970653A312E3000000000000000105265706C795374617475735479706500000000040000000D4E4F5F455843455054494F4E000000000000000F555345525F455843455054494F4E00000000001153595354454D5F455843455054494F4E00000000000000114C4F434154494F4E5F464F525741524400", ReplyHeader)
  123.  
  124. class CancelRequestHeader:
  125.     """ Struct: IDL:omg.org/GIOP/CancelRequestHeader:1.0 """
  126.  
  127.     _FNORB_ID = "IDL:omg.org/GIOP/CancelRequestHeader:1.0"
  128.  
  129.     def __init__(self, _request_id):
  130.         """ Constructor. """
  131.  
  132.         self.request_id = _request_id
  133.         return
  134.  
  135.     def __getinitargs__(self):
  136.         """ Return the constructor arguments for unpickling. """
  137.  
  138.         return (self.request_id,)
  139.  
  140. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/CancelRequestHeader:1.0", "000000000000000F00000064000000000000002949444C3A6F6D672E6F72672F47494F502F43616E63656C526571756573744865616465723A312E30000000000000001443616E63656C5265717565737448656164657200000000010000000B726571756573745F6964000000000005", CancelRequestHeader)
  141.  
  142. class LocateRequestHeader:
  143.     """ Struct: IDL:omg.org/GIOP/LocateRequestHeader:1.0 """
  144.  
  145.     _FNORB_ID = "IDL:omg.org/GIOP/LocateRequestHeader:1.0"
  146.  
  147.     def __init__(self, _request_id, _object_key):
  148.         """ Constructor. """
  149.  
  150.         self.request_id = _request_id
  151.         self.object_key = _object_key
  152.         return
  153.  
  154.     def __getinitargs__(self):
  155.         """ Return the constructor arguments for unpickling. """
  156.  
  157.         return (self.request_id, self.object_key)
  158.  
  159. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/LocateRequestHeader:1.0", "000000000000000F00000088000000000000002949444C3A6F6D672E6F72672F47494F502F4C6F63617465526571756573744865616465723A312E3000000000000000144C6F636174655265717565737448656164657200000000020000000B726571756573745F69640000000000050000000B6F626A6563745F6B65790000000000130000000C000000000000000A00000000", LocateRequestHeader)
  160.  
  161. # Enum: IDL:omg.org/GIOP/LocateStatusType:1.0
  162. UNKNOWN_OBJECT = Util.EnumMember("UNKNOWN_OBJECT", 0)
  163. OBJECT_HERE = Util.EnumMember("OBJECT_HERE", 1)
  164. OBJECT_FORWARD = Util.EnumMember("OBJECT_FORWARD", 2)
  165. LocateStatusType = Util.Enum("IDL:omg.org/GIOP/LocateStatusType:1.0", [UNKNOWN_OBJECT, OBJECT_HERE, OBJECT_FORWARD])
  166.  
  167. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/LocateStatusType:1.0", "000000000000001100000083000000000000002649444C3A6F6D672E6F72672F47494F502F4C6F63617465537461747573547970653A312E30000000000000114C6F636174655374617475735479706500000000000000030000000F554E4B4E4F574E5F4F424A45435400000000000C4F424A4543545F48455245000000000F4F424A4543545F464F525741524400", LocateStatusType)
  168.  
  169. class LocateReplyHeader:
  170.     """ Struct: IDL:omg.org/GIOP/LocateReplyHeader:1.0 """
  171.  
  172.     _FNORB_ID = "IDL:omg.org/GIOP/LocateReplyHeader:1.0"
  173.  
  174.     def __init__(self, _request_id, _locate_status):
  175.         """ Constructor. """
  176.  
  177.         self.request_id = _request_id
  178.         self.locate_status = _locate_status
  179.         return
  180.  
  181.     def __getinitargs__(self):
  182.         """ Return the constructor arguments for unpickling. """
  183.  
  184.         return (self.request_id, self.locate_status)
  185.  
  186. TypeManager.TypeManager_init().add_type("IDL:omg.org/GIOP/LocateReplyHeader:1.0", "000000000000000F000000FF000000000000002749444C3A6F6D672E6F72672F47494F502F4C6F636174655265706C794865616465723A312E300000000000124C6F636174655265706C79486561646572000000000000020000000B726571756573745F69640000000000050000000E6C6F636174655F7374617475730000000000001100000083000000000000002649444C3A6F6D672E6F72672F47494F502F4C6F63617465537461747573547970653A312E30000000000000114C6F636174655374617475735479706500000000000000030000000F554E4B4E4F574E5F4F424A45435400000000000C4F424A4543545F48455245000000000F4F424A4543545F464F525741524400", LocateReplyHeader)
  187.  
  188. #############################################################################
  189.