globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.

Allows listening to any Changeable. More...

#include <globjects/include/globjects/base/ChangeListener.h>

Inheritance diagram for globjects::ChangeListener:
globjects::AbstractStringSourceDecorator globjects::CompositeStringSource globjects::NamedString globjects::Program globjects::ProgramPipeline globjects::Shader globjects::StringTemplate

Public Member Functions

virtual ~ChangeListener ()
 
virtual void notifyChanged (const Changeable *sender)
 

Protected Member Functions

void addSubject (Changeable *subject)
 
virtual void removeSubject (Changeable *subject)
 

Protected Attributes

std::set< Changeable * > m_subjects
 

Friends

class Changeable
 

Detailed Description

Allows listening to any Changeable.

If a Changeable this ChangeListener is registered on signals a change, the notifyChanged() method is called. This class implements the observer pattern.

See also
Changeable

Constructor & Destructor Documentation

virtual globjects::ChangeListener::~ChangeListener ( )
virtual

Member Function Documentation

virtual void globjects::ChangeListener::notifyChanged ( const Changeable sender)
virtual
void globjects::ChangeListener::addSubject ( Changeable subject)
protected
virtual void globjects::ChangeListener::removeSubject ( Changeable subject)
protectedvirtual

Friends And Related Function Documentation

friend class Changeable
friend

Member Data Documentation

std::set<Changeable*> globjects::ChangeListener::m_subjects
protected

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