GIFT-Grab  1708
Copyright (c) 2015-7, University College London (UCL)
gg::IObserver Class Referenceabstract

Every observer interested in listening to IVideoSource data must implement this interface, which defines the observer (subscriber) part of the observer design pattern (aka subscriber-publisher). More...

#include <iobserver.h>

Inheritance diagram for gg::IObserver:
gg::IVideoTarget

Public Member Functions

virtual ~IObserver ()
 
virtual void update (VideoFrame &frame)=0
 

Detailed Description

Every observer interested in listening to IVideoSource data must implement this interface, which defines the observer (subscriber) part of the observer design pattern (aka subscriber-publisher).

Attention
In Python: an intermediate node in a video processing pipeline should extend the IObservableObserver class (not available in C++) instead of IObservable and IObserver. Below is the source code for a sample processing node in Python.
from pygiftgrab import IObservableObserver
class MyProcNode(IObservableObserver):
def __init__(self):
super(MyProcNode, self).__init__()
def update(self, frame):
# Implement gg::IObserver::update(frame)
pass

Constructor & Destructor Documentation

§ ~IObserver()

virtual gg::IObserver::~IObserver ( )
inlinevirtual

Member Function Documentation

§ update()

virtual void gg::IObserver::update ( VideoFrame frame)
pure virtual
Parameters
frame

Implemented in gg::IVideoTarget.


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