diff options
author | randomdan <randomdan@localhost> | 2013-12-08 00:39:03 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-12-08 00:39:03 +0000 |
commit | a093bce049df33837892aef5a11ce573a53259b8 (patch) | |
tree | 29470e998a98789c9cdd398af85a29cbbc69ef99 /p2pvr/lib/bindSiParserHandler.h | |
parent | Set bigger internal buffers for demux (diff) | |
download | p2pvr-a093bce049df33837892aef5a11ce573a53259b8.tar.bz2 p2pvr-a093bce049df33837892aef5a11ce573a53259b8.tar.xz p2pvr-a093bce049df33837892aef5a11ce573a53259b8.zip |
Add some SI functions for getting service stuff
Add a templated SI parser to bounce table objects to a function
Allow SI parsers to say they want the next instance of an object too
Add ServiceStreamer to write a/v streams of a TS to a raw data client
Diffstat (limited to 'p2pvr/lib/bindSiParserHandler.h')
-rw-r--r-- | p2pvr/lib/bindSiParserHandler.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/p2pvr/lib/bindSiParserHandler.h b/p2pvr/lib/bindSiParserHandler.h new file mode 100644 index 0000000..a4813c2 --- /dev/null +++ b/p2pvr/lib/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 + |