1a209d467a4bce9c08e380b6847f228d624aa951
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 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 implement frame rate limiter

Stefan Schuermans authored 10 years ago

22) #include "RateLimiter.h"
Stefan Schuermans implemented resizer module

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 10 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 12 years ago

48)   MODULEMGR(Output,       outputs);
49)   MODULEMGR(Player,       players);
50)   MODULEMGR(Printer,      printers);
51)   MODULEMGR(Priority,     priorities);
52)   MODULEMGR(Resizer,      resizers);
Stefan Schuermans implement frame rate limiter

Stefan Schuermans authored 10 years ago

53)   MODULEMGR(RateLimiter,  ratelimiters);
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

54)   MODULEMGR(Scaler,       scalers);
55)   MODULEMGR(Udp4Phone,    udp4phones);
56)   MODULEMGR(Udp4Receiver, udp4receivers);
57)   MODULEMGR(Udp4Sender,   udp4senders);
Stefan Schuermans IPv6 support

Stefan Schuermans authored 10 years ago

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

Stefan Schuermans authored 12 years ago

61) 
62) #undef MODULEMGR
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

63) 
64)   mgrs.m_callMgr.run();
Stefan Schuermans added MCUF sender modules t...

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 13 years ago

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