The Assimilation Project  based on Assimilation version 1.1.7.1474836767
cma.assimglib.IOWatch Class Reference
Inheritance diagram for cma.assimglib.IOWatch:
Collaboration diagram for cma.assimglib.IOWatch:

Public Member Functions

def __init__ (self, fileno, conditions, callback, otherobj=None)
 
def __del__ (self)
 

Data Fields

 callback
 
 sourceid
 

Static Public Attributes

list save_callbacks = []
 

Detailed Description

Definition at line 82 of file assimglib.py.

Constructor & Destructor Documentation

def cma.assimglib.IOWatch.__init__ (   self,
  fileno,
  conditions,
  callback,
  otherobj = None 
)
fileno is the UNIX file descriptor
Conditions is a bitwise-OR of at least one of {IO_IN, IO_PRI, IO_ERR, IO_OUT, IO_HUP}
The callback function receives three parameters:
source
calledcondition
otherobj (as passed to io_add_watch)
    and returns a bool - True if we should keep watching this file descriptor, False if not.

Return: int (source id of our watch condition - suitable to passing to source_remove)

Note that you must keep a reference around to the return result or the callback may crash
if the elements of this object get garbage collected.

Definition at line 85 of file assimglib.py.

def cma.assimglib.IOWatch.__del__ (   self)

Definition at line 107 of file assimglib.py.

References cma.assimglib.IOWatch.sourceid.

Field Documentation

cma.assimglib.IOWatch.callback

Definition at line 100 of file assimglib.py.

list cma.assimglib.IOWatch.save_callbacks = []
static

Definition at line 84 of file assimglib.py.

cma.assimglib.IOWatch.sourceid

The documentation for this class was generated from the following file: