3213fe4bbfb47860a9fe6abb535fdd4d782e426d
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 implement operator connecti...

Stefan Schuermans authored 12 years ago

15) #include "OpPrinter.h"
Stefan Schuermans implemented output module t...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

30)   Directory cfg(dirConfig);
31) 
32)   Mgrs mgrs;
33) 
34)   ModuleMgr<Canvas>       canvases(mgrs,      cfg.getSubdir("canvases"));
35)   ModuleMgr<FlexiPix>     flexipixes(mgrs,    cfg.getSubdir("flexipixes"));
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

36)   ModuleMgr<OpPrinter>    opprinters(mgrs,    cfg.getSubdir("opprinters"));
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

37)   ModuleMgr<Output>       outputs(mgrs,       cfg.getSubdir("outputs"));
38)   ModuleMgr<Player>       players(mgrs,       cfg.getSubdir("players"));
39)   ModuleMgr<Printer>      printers(mgrs,      cfg.getSubdir("printers"));
40)   ModuleMgr<Priority>     priorities(mgrs,    cfg.getSubdir("priorities"));
41)   ModuleMgr<Resizer>      resizers(mgrs,      cfg.getSubdir("resizers"));
42)   ModuleMgr<Scaler>       scalers(mgrs,       cfg.getSubdir("scalers"));
Stefan Schuermans begin of phone connector

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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