blob: a4813c2a5d6ff7fcb96ccddd78af9eae60652d81 (
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
|
#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
|