Back to index

salome-kernel  6.5.0
libNOTIFICATION.py
Go to the documentation of this file.
00001 # This file was automatically generated by SWIG (http://www.swig.org).
00002 # Version 1.3.40
00003 #
00004 # Do not make changes to this file unless you know what you are doing--modify
00005 # the SWIG interface file instead.
00006 # This file is compatible with both classic and new-style classes.
00007 
00008 from sys import version_info
00009 if version_info >= (2,6,0):
00010     def swig_import_helper():
00011         from os.path import dirname
00012         import imp
00013         fp = None
00014         try:
00015             fp, pathname, description = imp.find_module('_libNOTIFICATION', [dirname(__file__)])
00016         except ImportError:
00017             import _libNOTIFICATION
00018             return _libNOTIFICATION
00019         if fp is not None:
00020             try:
00021                 _mod = imp.load_module('_libNOTIFICATION', fp, pathname, description)
00022             finally:
00023                 fp.close()
00024             return _mod
00025     _libNOTIFICATION = swig_import_helper()
00026     del swig_import_helper
00027 else:
00028     import _libNOTIFICATION
00029 del version_info
00030 try:
00031     _swig_property = property
00032 except NameError:
00033     pass # Python < 2.2 doesn't have 'property'.
00034 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
00035     if (name == "thisown"): return self.this.own(value)
00036     if (name == "this"):
00037         if type(value).__name__ == 'SwigPyObject':
00038             self.__dict__[name] = value
00039             return
00040     method = class_type.__swig_setmethods__.get(name,None)
00041     if method: return method(self,value)
00042     if (not static) or hasattr(self,name):
00043         self.__dict__[name] = value
00044     else:
00045         raise AttributeError("You cannot add attributes to %s" % self)
00046 
00047 def _swig_setattr(self,class_type,name,value):
00048     return _swig_setattr_nondynamic(self,class_type,name,value,0)
00049 
00050 def _swig_getattr(self,class_type,name):
00051     if (name == "thisown"): return self.this.own()
00052     method = class_type.__swig_getmethods__.get(name,None)
00053     if method: return method(self)
00054     raise AttributeError(name)
00055 
00056 def _swig_repr(self):
00057     try: strthis = "proxy of " + self.this.__repr__()
00058     except: strthis = ""
00059     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00060 
00061 try:
00062     _object = object
00063     _newclass = 1
00064 except AttributeError:
00065     class _object : pass
00066     _newclass = 0
00067 
00068 
00069 NOTIF_WARNING = _libNOTIFICATION.NOTIF_WARNING
00070 NOTIF_STEP = _libNOTIFICATION.NOTIF_STEP
00071 NOTIF_TRACE = _libNOTIFICATION.NOTIF_TRACE
00072 NOTIF_VERBOSE = _libNOTIFICATION.NOTIF_VERBOSE
00073 NOTIFICATION_ChannelName = _libNOTIFICATION.NOTIFICATION_ChannelName
00074 
00075 def NOTIFICATION_date():
00076   """NOTIFICATION_date() -> char"""
00077   return _libNOTIFICATION.NOTIFICATION_date()
00078 
00079 def NOTIFICATION_channel():
00080   """NOTIFICATION_channel() -> CosNA_EventChannel_ptr"""
00081   return _libNOTIFICATION.NOTIFICATION_channel()
00082 class NOTIFICATION_Supplier_Swig(_object):
00083     """Proxy of C++ NOTIFICATION_Supplier_Swig class"""
00084     __swig_setmethods__ = {}
00085     __setattr__ = lambda self, name, value: _swig_setattr(self, NOTIFICATION_Supplier_Swig, name, value)
00086     __swig_getmethods__ = {}
00087     __getattr__ = lambda self, name: _swig_getattr(self, NOTIFICATION_Supplier_Swig, name)
00088     __repr__ = _swig_repr
00089     def __init__(self, *args): 
00090         """__init__(self, char instanceName, bool notif) -> NOTIFICATION_Supplier_Swig"""
00091         this = _libNOTIFICATION.new_NOTIFICATION_Supplier_Swig(*args)
00092         try: self.this.append(this)
00093         except: self.this = this
00094     __swig_destroy__ = _libNOTIFICATION.delete_NOTIFICATION_Supplier_Swig
00095     __del__ = lambda self : None;
00096     def Send(self, *args):
00097         """Send(self, char graph, char node, char type, char message)"""
00098         return _libNOTIFICATION.NOTIFICATION_Supplier_Swig_Send(self, *args)
00099 
00100 NOTIFICATION_Supplier_Swig_swigregister = _libNOTIFICATION.NOTIFICATION_Supplier_Swig_swigregister
00101 NOTIFICATION_Supplier_Swig_swigregister(NOTIFICATION_Supplier_Swig)
00102 
00103 class NOTIFICATION_Consumer_Swig(_object):
00104     """Proxy of C++ NOTIFICATION_Consumer_Swig class"""
00105     __swig_setmethods__ = {}
00106     __setattr__ = lambda self, name, value: _swig_setattr(self, NOTIFICATION_Consumer_Swig, name, value)
00107     __swig_getmethods__ = {}
00108     __getattr__ = lambda self, name: _swig_getattr(self, NOTIFICATION_Consumer_Swig, name)
00109     __repr__ = _swig_repr
00110     def __init__(self): 
00111         """__init__(self) -> NOTIFICATION_Consumer_Swig"""
00112         this = _libNOTIFICATION.new_NOTIFICATION_Consumer_Swig()
00113         try: self.this.append(this)
00114         except: self.this = this
00115     __swig_destroy__ = _libNOTIFICATION.delete_NOTIFICATION_Consumer_Swig
00116     __del__ = lambda self : None;
00117     def Receive(self, *args):
00118         """
00119         Receive(self, char graph, char node, char type, char message, char sender, 
00120             long counter, char date, long stamp) -> bool
00121         """
00122         return _libNOTIFICATION.NOTIFICATION_Consumer_Swig_Receive(self, *args)
00123 
00124 NOTIFICATION_Consumer_Swig_swigregister = _libNOTIFICATION.NOTIFICATION_Consumer_Swig_swigregister
00125 NOTIFICATION_Consumer_Swig_swigregister(NOTIFICATION_Consumer_Swig)
00126 
00127 
00128