gstlal  1.4.1
Public Member Functions | Public Attributes | List of all members
python.simplehandler.Handler Class Reference
Inheritance diagram for python.simplehandler.Handler:
[legend]
Collaboration diagram for python.simplehandler.Handler:
[legend]

Public Member Functions

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

Public Attributes

 mainloop
 
 pipeline
 
 on_message_handler_id
 

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.

Member Function Documentation

◆ do_on_message()

def 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.

Definition at line 103 of file simplehandler.py.

◆ quit()

def 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.


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