WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
cs::VideoListener Class Reference

An event listener. More...

#include <cscore_oo.h>

Public Member Functions

 VideoListener (std::function< void(const VideoEvent &event)> callback, int eventMask, bool immediateNotify)
 Create an event listener. More...
 
 VideoListener (const VideoListener &)=delete
 
VideoListeneroperator= (const VideoListener &)=delete
 
 VideoListener (VideoListener &&other) noexcept
 
VideoListeneroperator= (VideoListener &&other) noexcept
 

Friends

void swap (VideoListener &first, VideoListener &second) noexcept
 

Detailed Description

An event listener.

This calls back to a desigated callback function when an event matching the specified mask is generated by the library.

Constructor & Destructor Documentation

cs::VideoListener::VideoListener ( std::function< void(const VideoEvent &event)>  callback,
int  eventMask,
bool  immediateNotify 
)
inline

Create an event listener.

Parameters
callbackCallback function
eventMaskBitmask of VideoEvent::Kind values
immediateNotifyWhether callback should be immediately called with a representative set of events for the current library state.

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