e586dddd9e872df6c5da46ee31ee4334c0f3d55a
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

1) /* Blinker
2)    Copyright 2011 Stefan Schuermans <stefan@blinkenarea.org>
3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
4)    a blinkenarea.org project */
5) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

6) #ifndef BLINKER_STREAM_H
7) #define BLINKER_STREAM_H
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

8) 
9) #include <set>
Stefan Schuermans added stream name to stream...

Stefan Schuermans authored 12 years ago

10) #include <string>
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

11) 
12) #include <BlinkenLib/BlinkenFrame.h>
13) 
14) #include "StreamRecv.h"
15) 
16) namespace Blinker {
17) 
18) /// a video stream
Stefan Schuermans added stream name to stream...

Stefan Schuermans authored 12 years ago

19) class Stream
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

20) {
21) protected:
22)   /// set of receivers of this stream
23)   typedef std::set<StreamRecv *> Recvs;
24) 
25) public:
26)   /// constructor
27)   Stream();
28) 
Stefan Schuermans Stream does not have to use...

Stefan Schuermans authored 12 years ago

29)   /// destructor
30)   ~Stream();
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

31) 
32) public:
33)   /**
34)    * @brief attach a stream receiver
35)    * @param[in] recv stream receiver to attach
36)    */
37)   void attach(StreamRecv *recv);
38) 
39)   /**
40)    * @brief detach a stream receiver
41)    * @param[in] recv stream receiver to detach
42)    */
43)   void detach(StreamRecv *recv);
44) 
45)   /**
46)    * @brief set current frame
Stefan Schuermans merged frame processing wit...

Stefan Schuermans authored 12 years ago

47)    * @param[in] pFrame current frame (NULL for none)
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

48)    */
Stefan Schuermans Stream does not have to use...

Stefan Schuermans authored 12 years ago

49)   void setFrame(stBlinkenFrame *pFrame);
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

50) 
Stefan Schuermans add function to get current...

Stefan Schuermans authored 12 years ago

51)   /**
52)    * @brief get current frame
Stefan Schuermans simplified interface of get...

Stefan Schuermans authored 12 years ago

53)    * @return current frame (NULL for none)
Stefan Schuermans add function to get current...

Stefan Schuermans authored 12 years ago

54)    */
Stefan Schuermans simplified interface of get...

Stefan Schuermans authored 12 years ago

55)   stBlinkenFrame * getCurFrame() const;
Stefan Schuermans add function to get current...

Stefan Schuermans authored 12 years ago

56) 
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

57) protected:
Stefan Schuermans added stream name to stream...

Stefan Schuermans authored 12 years ago

58)   /// stream name
59)   std::string m_name;
Stefan Schuermans implemented stream printer...

Stefan Schuermans authored 13 years ago

60)   /// current frame (or NULL if no frame)
61)   stBlinkenFrame *m_pFrame;
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

62)   /// receivers of this stream
63)   Recvs m_recvs;
Stefan Schuermans added stream name to stream...

Stefan Schuermans authored 12 years ago

64) 
65) friend class StreamMgr;
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

66) }; // class Stream
67) 
68) } // namespace Blinker
69) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

70) #endif // #ifndef BLINKER_STREAM_H