summaryrefslogtreecommitdiffstats
path: root/src/MuxElements.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/MuxElements.h')
-rw-r--r--src/MuxElements.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/MuxElements.h b/src/MuxElements.h
index 97b1390..44af574 100644
--- a/src/MuxElements.h
+++ b/src/MuxElements.h
@@ -32,6 +32,7 @@
#include <memory>
#include <string>
#include <functional>
+#include <exception>
#include <algorithm>
#include <stdint.h>
#include "dabOutput/dabOutput.h"
@@ -39,6 +40,19 @@
#include "RemoteControl.h"
#include "Eti.h"
+class MuxInitException : public std::exception
+{
+ public:
+ MuxInitException(const std::string m = "ODR-DabMux initialisation error")
+ throw()
+ : msg(m) {}
+ ~MuxInitException(void) throw() {}
+ const char* what() const throw() { return msg.c_str(); }
+ private:
+ std::string msg;
+};
+
+
enum class subchannel_type_t {
Audio = 0,
DataDmb = 1,