46a7c7ba02631f6f352022587483cfd78c0fc1f5
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 of canvas mod...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

10) #include "Directory.h"
Stefan Schuermans added flexipix output suppo...

Stefan Schuermans authored 12 years ago

11) #include "FlexiPix.h"
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

12) #include "Mgrs.h"
Stefan Schuermans implemented module manager...

Stefan Schuermans authored 13 years ago

13) #include "ModuleMgr.h"
Stefan Schuermans split ModuleMgr.h into decl...

Stefan Schuermans authored 12 years ago

14) #include "ModuleMgr_impl.h"
Stefan Schuermans implemented output module t...

Stefan Schuermans authored 12 years ago

15) #include "Output.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

17) #include "Printer.h"
Stefan Schuermans implemented priority based...

Stefan Schuermans authored 12 years ago

18) #include "Priority.h"
Stefan Schuermans implemented resizer module

Stefan Schuermans authored 12 years ago

19) #include "Resizer.h"
Stefan Schuermans implemented scaler module

Stefan Schuermans authored 12 years ago

20) #include "Scaler.h"
Stefan Schuermans begin of phone connector

Stefan Schuermans authored 12 years ago

21) #include "Udp4Phone.h"
Stefan Schuermans implemented stream receiver

Stefan Schuermans authored 12 years ago

22) #include "Udp4Receiver.h"
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

24) 
25) using namespace Blinker;
26) 
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

28) {
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

29)   Directory cfg(dirConfig);
30) 
31)   Mgrs mgrs;
32) 
33)   ModuleMgr<Canvas>       canvases(mgrs,      cfg.getSubdir("canvases"));
34)   ModuleMgr<FlexiPix>     flexipixes(mgrs,    cfg.getSubdir("flexipixes"));
35)   ModuleMgr<Output>       outputs(mgrs,       cfg.getSubdir("outputs"));
36)   ModuleMgr<Player>       players(mgrs,       cfg.getSubdir("players"));
37)   ModuleMgr<Printer>      printers(mgrs,      cfg.getSubdir("printers"));
38)   ModuleMgr<Priority>     priorities(mgrs,    cfg.getSubdir("priorities"));
39)   ModuleMgr<Resizer>      resizers(mgrs,      cfg.getSubdir("resizers"));
40)   ModuleMgr<Scaler>       scalers(mgrs,       cfg.getSubdir("scalers"));
Stefan Schuermans begin of phone connector

Stefan Schuermans authored 12 years ago

41)   ModuleMgr<Udp4Phone>    udp4Phone(mgrs,     cfg.getSubdir("udp4phones"));
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

42)   ModuleMgr<Udp4Receiver> udp4Receivers(mgrs, cfg.getSubdir("udp4receivers"));
43)   ModuleMgr<Udp4Sender>   udp4Senders(mgrs,   cfg.getSubdir("udp4senders"));
44) 
45)   mgrs.m_callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

46) }
47) 
48) int main(int argc, const char *argv[])
49) {
50)   const char * dirConfig;
51) 
52)   if (argc < 2) {
Stefan Schuermans added flexipix output suppo...

Stefan Schuermans authored 12 years ago

53)     std::cerr << "Blinker" << std::endl
54)               << "configuration:"BLINKER_CONFIG << std::endl
55)               << "usage: " << argv[0] << " config-directory" << std::endl;
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

56)     return 2;
57)   }
58)   dirConfig = argv[1];
59) 
60)   run(dirConfig);