b6b2996b76e1b0f0e403b4be40430a445bc0873c
Stefan Schuermans implemented stream receiver

Stefan Schuermans authored 12 years ago

1) /* Blinker
Stefan Schuermans update copyright years

Stefan Schuermans authored 10 years ago

2)    Copyright 2011-2014 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans implemented stream receiver

Stefan Schuermans authored 12 years ago

3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
4)    a blinkenarea.org project */
5) 
6) #ifndef BLINKER_RECEIVER_H
Stefan Schuermans typo

Stefan Schuermans authored 12 years ago

7) #define BLINKER_RECEIVER_H
Stefan Schuermans implemented stream receiver

Stefan Schuermans authored 12 years ago

8) 
9) #include <string>
10) 
11) #include <BlinkenLib/BlinkenProto.h>
12) #include <BlinkenLib/BlinkenFrame.h>
13) 
14) #include "Directory.h"
15) #include "File.h"
16) #include "IoCallee.h"
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

17) #include "Mgrs.h"
Stefan Schuermans implemented stream receiver

Stefan Schuermans authored 12 years ago

18) #include "Module.h"
19) #include "OutStreamFile.h"
20) #include "Protocol.h"
21) #include "ProtocolFile.h"
22) #include "SettingFile.h"
23) #include "Time.h"
24) #include "TimeCallee.h"
25) 
26) namespace Blinker {
27) 
28) /// stream receiver
29) template<typename ADDR, typename SOCK>
30) class Receiver: public IoCallee, public Module, public TimeCallee
31) {
32) protected:
33)   /// type for address setting file
34)   typedef SettingFile<ADDR> AddrFile;
35) 
36) public:
37)   /**
38)    * @brief constructor
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

39)    * @param[in] name module name
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

40)    * @param[in] mgrs managers
Stefan Schuermans implemented stream receiver

Stefan Schuermans authored 12 years ago

41)    * @param[in] dirBase base directory
42)    */
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

43)   Receiver(const std::string &name, Mgrs &mgrs, const Directory &dirBase);