BlinkenArea - GitList
Repositories
Blog
Wiki
Blinker
Code
Commits
Branches
Tags
Search
Tree:
906ae11
Branches
Tags
master
Blinker
src
noarch
main.cpp
added MCUF sender modules to main, config dir now specified on command line
Stefan Schuermans
commited
906ae11
at 2011-11-13 20:54:52
main.cpp
Blame
History
Raw
#include <iostream> #include <string> #include "CallMgr.h" #include "Directory.h" #include "ModuleMgr.h" #include "Player.h" #include "Printer.h" #include "StreamMgr.h" #include "Udp4Sender.h" using namespace Blinker; void run(const std::string &dirConfig) { Directory dirCfg(dirConfig); CallMgr callMgr; StreamMgr streamMgr; ModuleMgr<Player> playerMgr(callMgr, streamMgr, dirCfg.getSubdir("players")); ModuleMgr<Printer> printerMgr(callMgr, streamMgr, dirCfg.getSubdir("printers")); 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; }