gstlal 1.13.0
Loading...
Searching...
No Matches
python.simplehandler.Handler Class Reference
Inheritance diagram for python.simplehandler.Handler:
Collaboration diagram for python.simplehandler.Handler:

Public Member Functions

 __init__ (self, mainloop, pipeline)
 quit (self, bus)
 do_on_message (self, bus, message)
 on_message (self, bus, message)

Public Attributes

 mainloop = mainloop
 pipeline = pipeline
 on_message_handler_id = bus.connect("message", self.on_message)

Detailed Description

A simple handler that prints pipeline error messages to stderr, and
stops the pipeline and terminates the mainloop at EOS.  Complex
applications will need to write their own pipeline handler, but for
most simple applications this will suffice, and it's easier than
copy-and-pasting this all over the place.

Definition at line 59 of file simplehandler.py.

Constructor & Destructor Documentation

◆ __init__()

python.simplehandler.Handler.__init__ ( self,
mainloop,
pipeline )

Definition at line 67 of file simplehandler.py.

Member Function Documentation

◆ do_on_message()

python.simplehandler.Handler.do_on_message ( self,
bus,
message )
Add extra message handling by overriding this in your
subclass.  If this method returns True, no further message
handling is performed.  If this method returns False,
message handling continues with default cases or EOS, INFO,
WARNING and ERROR messages.

Reimplemented in python.psd.PSDHandler, and python.stream.StreamHandler.

Definition at line 108 of file simplehandler.py.

◆ on_message()

python.simplehandler.Handler.on_message ( self,
bus,
message )

Definition at line 118 of file simplehandler.py.

◆ quit()

python.simplehandler.Handler.quit ( self,
bus )
Decouple this object from the Bus object to allow the Bus'
reference count to drop to 0, and .quit() the mainloop
object.  This method is invoked by the default EOS and
ERROR message handlers.

Definition at line 91 of file simplehandler.py.

Member Data Documentation

◆ mainloop

python.simplehandler.Handler.mainloop = mainloop

Definition at line 68 of file simplehandler.py.

◆ on_message_handler_id

python.simplehandler.Handler.on_message_handler_id = bus.connect("message", self.on_message)

Definition at line 73 of file simplehandler.py.

◆ pipeline

python.simplehandler.Handler.pipeline = pipeline

Definition at line 69 of file simplehandler.py.


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