b6b2996b76e1b0f0e403b4be40430a445bc0873c
Stefan Schuermans added missing file header

Stefan Schuermans authored 12 years ago

1) /* Blinker
Stefan Schuermans update copyright years

Stefan Schuermans authored 10 years ago

2)    Copyright 2011-2014 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans added missing file header

Stefan Schuermans authored 12 years ago

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 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 12 years ago

26) #include "Udp4Sender.h"
Stefan Schuermans IPv6 support

Stefan Schuermans authored 10 years ago

27) #include "Udp6Phone.h"
28) #include "Udp6Receiver.h"
29) #include "Udp6Sender.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

30) 
31) using namespace Blinker;
32) 
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

35)   Directory cfg(dirConfig);
36) 
37)   Mgrs mgrs;
38) 
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

47)   MODULEMGR(Output,       outputs);
48)   MODULEMGR(Player,       players);
49)   MODULEMGR(Printer,      printers);
50)   MODULEMGR(Priority,     priorities);
51)   MODULEMGR(Resizer,      resizers);
52)   MODULEMGR(Scaler,       scalers);
53)   MODULEMGR(Udp4Phone,    udp4phones);
54)   MODULEMGR(Udp4Receiver, udp4receivers);
55)   MODULEMGR(Udp4Sender,   udp4senders);
Stefan Schuermans IPv6 support

Stefan Schuermans authored 10 years ago

56)   MODULEMGR(Udp6Phone,    udp6phones);
57)   MODULEMGR(Udp6Receiver, udp6receivers);
58)   MODULEMGR(Udp6Sender,   udp6senders);
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

59) 
60) #undef MODULEMGR
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

61) 
62)   mgrs.m_callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 12 years ago

63) }
64) 
65) int main(int argc, const char *argv[])
66) {
67)   const char * dirConfig;
68) 
69)   if (argc < 2) {
Stefan Schuermans added flexipix output suppo...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

73)     return 2;
74)   }
75)   dirConfig = argv[1];
76) 
77)   run(dirConfig);