summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-06 19:05:01 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-06 19:05:01 +0100
commit0414d5788090bb6df728d370079e44e95b4ffd20 (patch)
tree4294702d0e38b87f9fa3396a2edd2e2a522c520f /src/ConfigParser.h
parent43635f1d8a96c9711d7004d9bf6114eedb8e6ccd (diff)
downloaddabmux-0414d5788090bb6df728d370079e44e95b4ffd20.tar.gz
dabmux-0414d5788090bb6df728d370079e44e95b4ffd20.tar.bz2
dabmux-0414d5788090bb6df728d370079e44e95b4ffd20.zip
Publish ptree on port 8001
Diffstat (limited to 'src/ConfigParser.h')
-rw-r--r--src/ConfigParser.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/ConfigParser.h b/src/ConfigParser.h
new file mode 100644
index 0000000..16d2146
--- /dev/null
+++ b/src/ConfigParser.h
@@ -0,0 +1,58 @@
+/*
+ Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+ 2011, 2012 Her Majesty the Queen in Right of Canada (Communications
+ Research Center Canada)
+
+ Copyright (C) 2014
+ Matthias P. Braendli, matthias.braendli@mpb.li
+
+ The Configuration parser sets up the ensemble according
+ to the configuration given in a boost property tree, which
+ is directly derived from a config file.
+
+ The format of the configuration is given in doc/example.mux
+ */
+/*
+ This file is part of ODR-DabMux.
+
+ ODR-DabMux is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ ODR-DabMux is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with ODR-DabMux. If not, see <http://www.gnu.org/licenses/>.
+*/
+#ifndef __CONFIG_PARSER_H_
+#define __CONFIG_PARSER_H_
+
+#include <vector>
+#include <string>
+#include "MuxElements.h"
+#include "DabMux.h"
+#include <boost/property_tree/ptree.hpp>
+
+void parse_ptree(boost::property_tree::ptree& pt,
+ std::vector<dabOutput*> &outputs,
+ dabEnsemble* ensemble,
+ bool* enableTist,
+ unsigned* FICL,
+ bool* factumAnalyzer,
+ unsigned long* limit,
+ BaseRemoteController** rc,
+ int* statsServerPort,
+ edi_configuration_t* edi);
+
+void setup_subchannel_from_ptree(dabSubchannel* subchan,
+ boost::property_tree::ptree &pt,
+ dabEnsemble* ensemble,
+ std::string subchanuid,
+ BaseRemoteController* rc);
+
+#endif
+