OpenCPN Partial API docs
ObservableListener Class Referencefinal

Keeps listening over it's lifespan, removes itself on destruction. More...

#include <observable.h>

Public Member Functions

 ObservableListener ()
 Default constructor, does not listen to anything.
 
 ObservableListener (const std::string &k, wxEvtHandler *l, wxEventType e)
 Construct a listening object.
 
 ObservableListener (const KeyProvider &kp, wxEvtHandler *l, wxEventType e)
 
 ObservableListener (ObservableListener &&other)
 A listener can only be transferred using std::move().
 
 ObservableListener (const ObservableListener &other)=delete
 
ObservableListeneroperator= (ObservableListener &)=delete
 
void Listen (const std::string &key, wxEvtHandler *listener, wxEventType evt)
 Set object to send wxEventType ev to listener on changes in key.
 
void Listen (const KeyProvider &kp, wxEvtHandler *l, wxEventType evt)
 

Detailed Description

Keeps listening over it's lifespan, removes itself on destruction.

Definition at line 133 of file observable.h.


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