e174b5f640671f22e89585bb5f5d99445539f35a
[senf.git] / Scheduler / ReadHelper.ih
1 // $Id$
2 //
3 // Copyright (C) 2006 
4
5 #ifndef IH_ReadHelper_
6 #define IH_ReadHelper_ 1
7
8 // Custom includes
9
10 ///////////////////////////////ih.p////////////////////////////////////////
11
12 namespace satcom {
13 namespace lib {
14
15     template <class Handle>
16     struct ReadHelper<Handle>::InternalPredicate
17     {
18         virtual ~InternalPredicate() {}
19         template <class Predicate>
20         struct Dispatcher
21             : public ReadHelper<Handle>::InternalPredicate
22         {
23             Dispatcher(Predicate p) : predicate(p) {}
24             virtual std::string::size_type operator()(std::string const & data);
25             Predicate predicate;
26         };
27
28         virtual std::string::size_type operator()(std::string const & data) = 0;
29     };
30
31 }}
32
33
34 ///////////////////////////////ih.e////////////////////////////////////////
35 #endif
36
37 \f
38 // Local Variables:
39 // mode: c++
40 // End: