summaryrefslogtreecommitdiff
path: root/p2pvr/dvb/bindSiParserHandler.h
blob: d5fadf7ff66c96a280e77b04111ad5600fb9e544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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