b245ecab57e79c620d66cf5ecdc59a2c47be929b
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 implemnted operator connect...

Stefan Schuermans authored 12 years ago

17) #include "OpSplitter.h"
Stefan Schuermans implemented output module t...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

42)   MODULEMGR(OpPrinter,    opprinters);
Stefan Schuermans implemnted operator connect...

Stefan Schuermans authored 12 years ago

43)   MODULEMGR(OpSplitter,   opsplitters);
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

55) 
56)   mgrs.m_callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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