summaryrefslogtreecommitdiff
path: root/p2pvr/lib/bindSiParserHandler.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-08-02 19:50:39 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-08-02 19:54:59 +0100
commita58cb9f959cea8f99b225b70476599e8da52ac08 (patch)
treef8448f9acfb6f9f39cc552337b052c0a9d5dd2e1 /p2pvr/lib/bindSiParserHandler.h
parentdebuginstall should target a subfolder of bin (diff)
downloadp2pvr-a58cb9f959cea8f99b225b70476599e8da52ac08.tar.bz2
p2pvr-a58cb9f959cea8f99b225b70476599e8da52ac08.tar.xz
p2pvr-a58cb9f959cea8f99b225b70476599e8da52ac08.zip
Tidy and shuffle some bits
Diffstat (limited to 'p2pvr/lib/bindSiParserHandler.h')
-rw-r--r--p2pvr/lib/bindSiParserHandler.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/p2pvr/lib/bindSiParserHandler.h b/p2pvr/lib/bindSiParserHandler.h
new file mode 100644
index 0000000..d5fadf7
--- /dev/null
+++ b/p2pvr/lib/bindSiParserHandler.h
@@ -0,0 +1,29 @@
+#ifndef BINDSIPARSERHANDLER_H
+#define BINDSIPARSERHANDLER_H
+
+#include <boost/function.hpp>
+
+namespace P2PVR {
+namespace DVBSI {
+template <typename SIObject, typename Base>
+class BindSiParserHandler : public Base {
+ public:
+ typedef boost::function<bool(SIObject)> Callback;
+ BindSiParserHandler(const Callback & cb) :
+ callBack(cb)
+ {
+ }
+
+ bool HandleTable(SIObject siObject)
+ {
+ return callBack(siObject);
+ }
+
+ private:
+ const Callback callBack;
+};
+}
+}
+
+#endif
+