You.i Engine
YiClosedCaptionsDispatcher.h
Go to the documentation of this file.
1 #ifndef _YI_CLOSED_CAPTIONS_DISPATCHER_H_
2 #define _YI_CLOSED_CAPTIONS_DISPATCHER_H_
3 
5 #include "utility/YiColor.h"
6 #include "utility/YiString.h"
7 
8 class CYISceneManager;
9 class CYISceneNode;
10 
28 {
29 public:
31 
37  void Register(IYIClosedCaptionsRenderer *pRenderer);
38 
42  void Unregister(IYIClosedCaptionsRenderer *pRenderer);
43 
44  // IYIClosedCaptionsRenderer methods
45  virtual void Clear() override;
46  virtual void Begin() override;
47  virtual void End() override;
48  virtual void AddCue(const IYIClosedCaptionsRenderer::Cue &cue) override;
49  virtual void RemoveCues(const CYIString &cueText) override;
50  virtual void OnVideoTimeUpdated(uint64_t videoTimeMs) override;
51 
52 private:
53  std::vector<IYIClosedCaptionsRenderer *> m_renderers;
54 };
55 
60 #endif
An interface that describes a class that can render closed captions.
Definition: YiClosedCaptionsRenderer.h:16
virtual void AddCue(const IYIClosedCaptionsRenderer::Cue &cue) override
Scene trees composed of CYISceneNode objects are registered with the scene manager in order for them ...
Definition: YiSceneManager.h:69
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
virtual void Begin() override
A scene node is the base type for all nodes which are used by the scene manager; it is an integral pa...
Definition: YiSceneNode.h:99
virtual void RemoveCues(const CYIString &cueText) override
virtual void Clear() override
Dispatches closed captioning cues to registered captions renderers.
Definition: YiClosedCaptionsDispatcher.h:27
void Unregister(IYIClosedCaptionsRenderer *pRenderer)
Definition: YiClosedCaptionsRenderer.h:91
virtual void OnVideoTimeUpdated(uint64_t videoTimeMs) override
virtual void End() override
void Register(IYIClosedCaptionsRenderer *pRenderer)