a665cf4da0d0674b121ed89e1135a9d3f06699cf
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

1) #include <iostream>
2) #include <string>
3) 
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

12) 
13) using namespace Blinker;
14) 
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

19)   CallMgr callMgr;
20)   StreamMgr streamMgr;
21) 
Stefan Schuermans first version of canvas mod...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

24)   ModuleMgr<Player> playerMgr(callMgr, streamMgr,
25)                               dirCfg.getSubdir("players"));
26)   ModuleMgr<Printer> printerMgr(callMgr, streamMgr,
27)                                 dirCfg.getSubdir("printers"));
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

30) 
31)   callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

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