diff options
Diffstat (limited to 'p2pvr/dvb/bindSiParserHandler.h')
| -rw-r--r-- | p2pvr/dvb/bindSiParserHandler.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/p2pvr/dvb/bindSiParserHandler.h b/p2pvr/dvb/bindSiParserHandler.h new file mode 100644 index 0000000..a4813c2 --- /dev/null +++ b/p2pvr/dvb/bindSiParserHandler.h @@ -0,0 +1,25 @@ +#ifndef BINDSIPARSERHANDLER_H +#define BINDSIPARSERHANDLER_H + +#include <boost/function.hpp> + +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 + |
