BlinkenArea - GitList
Repositories
Blog
Wiki
Blinker
Code
Commits
Branches
Tags
Search
Tree:
2587f12
Branches
Tags
master
Blinker
src
noarch
main.cpp
implemented output module to output stream to character device
Stefan Schuermans
commited
2587f12
at 2011-12-11 21:52:28
main.cpp
Blame
History
Raw
/* Blinker Copyright 2011 Stefan Schuermans <stefan@blinkenarea.org> Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html a blinkenarea.org project */ #include <iostream> #include <string> #include "CallMgr.h" #include "Canvas.h" #include "Directory.h" #include "ModuleMgr.h" #include "ModuleMgr_impl.h" #include "Output.h" #include "Player.h" #include "Printer.h" #include "Priority.h" #include "Resizer.h" #include "Scaler.h" #include "StreamMgr.h" #include "Udp4Sender.h" using namespace Blinker; void run(const std::string &dirConfig) { Directory dirCfg(dirConfig); CallMgr callMgr; StreamMgr streamMgr; ModuleMgr<Canvas> canvasMgr(callMgr, streamMgr, dirCfg.getSubdir("canvases")); ModuleMgr<Output> outputMgr(callMgr, streamMgr, dirCfg.getSubdir("outputs")); ModuleMgr<Player> playerMgr(callMgr, streamMgr, dirCfg.getSubdir("players")); ModuleMgr<Printer> printerMgr(callMgr, streamMgr, dirCfg.getSubdir("printers")); ModuleMgr<Priority> priorityMgr(callMgr, streamMgr, dirCfg.getSubdir("priorities")); ModuleMgr<Resizer> resizerMgr(callMgr, streamMgr, dirCfg.getSubdir("resizers")); ModuleMgr<Scaler> scalersMgr(callMgr, streamMgr, dirCfg.getSubdir("scalers")); ModuleMgr<Udp4Sender> udp4Mgr(callMgr, streamMgr, dirCfg.getSubdir("udp4senders")); callMgr.run(); } int main(int argc, const char *argv[]) { const char * dirConfig; if (argc < 2) { std::cerr << "usage: " << argv[0] << " config-directory" << std::endl; return 2; } dirConfig = argv[1]; run(dirConfig); return 0; }