d30fc7d4badb29dc7fc6833557fca8761964c8a4
Stefan Schuermans added missing file header

Stefan Schuermans authored 12 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 added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

6) #include <iostream>
7) #include <string>
8) 
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

9) #include "CallMgr.h"
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

10) #include "Canvas.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

11) #include "Directory.h"
Stefan Schuermans implemented module manager...

Stefan Schuermans authored 13 years ago

12) #include "ModuleMgr.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

13) #include "Player.h"
Stefan Schuermans implemented stream printer...

Stefan Schuermans authored 13 years ago

14) #include "Printer.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

15) #include "StreamMgr.h"
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

16) #include "Udp4Sender.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

17) 
18) using namespace Blinker;
19) 
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

20) void run(const std::string &dirConfig)
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

21) {
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

22)   Directory dirCfg(dirConfig);
Stefan Schuermans implemented module manager...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

24)   CallMgr callMgr;
25)   StreamMgr streamMgr;
26) 
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

27)   ModuleMgr<Canvas> canvasMgr(callMgr, streamMgr,
28)                               dirCfg.getSubdir("canvases"));
Stefan Schuermans implemented module manager...

Stefan Schuermans authored 13 years ago

29)   ModuleMgr<Player> playerMgr(callMgr, streamMgr,
30)                               dirCfg.getSubdir("players"));
31)   ModuleMgr<Printer> printerMgr(callMgr, streamMgr,
32)                                 dirCfg.getSubdir("printers"));
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

33)   ModuleMgr<Udp4Sender> udp4Mgr(callMgr, streamMgr,
34)                                 dirCfg.getSubdir("udp4senders"));
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

35) 
36)   callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

37) }
38) 
39) int main(int argc, const char *argv[])
40) {
41)   const char * dirConfig;
42) 
43)   if (argc < 2) {
44)     std::cerr << "usage: " << argv[0] << " config-directory" << std::endl;
45)     return 2;
46)   }
47)   dirConfig = argv[1];
48) 
49)   run(dirConfig);