e5ca3d6c28b575761fba8d8c56ee8b6e1a6f0e62
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 implemented loveletter module

Stefan Schuermans authored 12 years ago

12) #include "Loveletter.h"
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

15) #include "ModuleMgr_impl.h"
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

31)   Directory cfg(dirConfig);
32) 
33)   Mgrs mgrs;
34) 
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

35) #define MODULEMGR(TYPE, CLASS) \
36)   ModuleMgr<TYPE> CLASS(#CLASS, mgrs, cfg.getSubdir(#CLASS))
37) 
38)   MODULEMGR(Canvas,       canvases);
39)   MODULEMGR(FlexiPix,     flexipixes);
Stefan Schuermans implemented loveletter module

Stefan Schuermans authored 12 years ago

40)   MODULEMGR(Loveletter,   loveletters);
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

41)   MODULEMGR(OpPrinter,    opprinters);
42)   MODULEMGR(Output,       outputs);
43)   MODULEMGR(Player,       players);
44)   MODULEMGR(Printer,      printers);
45)   MODULEMGR(Priority,     priorities);
46)   MODULEMGR(Resizer,      resizers);
47)   MODULEMGR(Scaler,       scalers);
48)   MODULEMGR(Udp4Phone,    udp4phones);
49)   MODULEMGR(Udp4Receiver, udp4receivers);
50)   MODULEMGR(Udp4Sender,   udp4senders);
51) 
52) #undef MODULEMGR
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

53) 
54)   mgrs.m_callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

55) }
56) 
57) int main(int argc, const char *argv[])
58) {
59)   const char * dirConfig;
60) 
61)   if (argc < 2) {
Stefan Schuermans added flexipix output suppo...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

65)     return 2;
66)   }
67)   dirConfig = argv[1];
68) 
69)   run(dirConfig);