An object of this class serves as a surrogate for implementing the observer pattern (http://www.oodesign.com/observer-pattern.html) for IVideoSource implementors that do not inherently support it due to implementation details related to used external libraries.
More...
#include <broadcastdaemon.h>
|
void | run (float sleep_duration_ms) |
| This method is passed to broadcaster thread. More...
|
|
An object of this class serves as a surrogate for implementing the observer pattern (http://www.oodesign.com/observer-pattern.html) for IVideoSource implementors that do not inherently support it due to implementation details related to used external libraries.
This class is intended to be used as a visitor (http://www.oodesign.com/visitor-pattern.html) to an IVideoSource object for augmenting that object's functionality.
- Attention
- In Python: This class is not available yet.
§ BroadcastDaemon()
gg::BroadcastDaemon::BroadcastDaemon |
( |
IVideoSource * |
source | ) |
|
Link given video source with this object (see class description)
- Parameters
-
source | The caller is responsible for ensuring the life span of the passed source outlasts this daemon |
- Exceptions
-
§ ~BroadcastDaemon()
gg::BroadcastDaemon::~BroadcastDaemon |
( |
| ) |
|
|
virtual |
§ run()
void gg::BroadcastDaemon::run |
( |
float |
sleep_duration_ms | ) |
|
|
protected |
This method is passed to broadcaster thread.
- Parameters
-
§ start()
void gg::BroadcastDaemon::start |
( |
float |
frame_rate | ) |
|
Start broadcasting at specified frame rate.
- Parameters
-
frame_rate | in frames per second |
- Exceptions
-
VideoSourceError | if broadcast already running, or if invalid frame rate value passed |
§ stop()
void gg::BroadcastDaemon::stop |
( |
| ) |
|
§ _lock
std::mutex gg::BroadcastDaemon::_lock |
|
protected |
§ _running
bool gg::BroadcastDaemon::_running |
|
protected |
Flag indicating status to actual daemon thread.
§ _source
- See also
- the public constructor
§ _thread
std::thread gg::BroadcastDaemon::_thread |
|
protected |
The documentation for this class was generated from the following files: