baf52dacd8003c3ac6d43bfef7073aae9e871e3b
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 12 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 implemented stream receiver

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

28)   Directory cfg(dirConfig);
29) 
30)   Mgrs mgrs;
31) 
32)   ModuleMgr<Canvas>       canvases(mgrs,      cfg.getSubdir("canvases"));
33)   ModuleMgr<FlexiPix>     flexipixes(mgrs,    cfg.getSubdir("flexipixes"));
34)   ModuleMgr<Output>       outputs(mgrs,       cfg.getSubdir("outputs"));
35)   ModuleMgr<Player>       players(mgrs,       cfg.getSubdir("players"));
36)   ModuleMgr<Printer>      printers(mgrs,      cfg.getSubdir("printers"));
37)   ModuleMgr<Priority>     priorities(mgrs,    cfg.getSubdir("priorities"));
38)   ModuleMgr<Resizer>      resizers(mgrs,      cfg.getSubdir("resizers"));
39)   ModuleMgr<Scaler>       scalers(mgrs,       cfg.getSubdir("scalers"));
40)   ModuleMgr<Udp4Receiver> udp4Receivers(mgrs, cfg.getSubdir("udp4receivers"));
41)   ModuleMgr<Udp4Sender>   udp4Senders(mgrs,   cfg.getSubdir("udp4senders"));
42) 
43)   mgrs.m_callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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