17ffa4adfb680f086463f65b7b4fb74de8d85808
[senf.git] / senf / Scheduler / ReadHelper.cci
1 // $Id$
2 //
3 // Copyright (C) 2006 Stefan Bund <g0dil@berlios.de>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the
17 // Free Software Foundation, Inc.,
18 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19 // Copyright (C) 2006
20
21 /** \file
22     \brief ReadHelper inline non-template implementation */
23
24 // Custom includes
25
26 #define prefix_ inline
27 ///////////////////////////////cci.p///////////////////////////////////////
28
29 prefix_ senf::ReadUntil::ReadUntil(std::string const & target_)
30     : target(target_)
31 {}
32
33 prefix_ std::string::size_type senf::ReadUntil::operator()(std::string const & data)
34 {
35     return data.find(target);
36 }
37
38 ///////////////////////////////cci.e///////////////////////////////////////
39 #undef prefix_
40
41 \f
42 // Local Variables:
43 // mode: c++
44 // fill-column: 100
45 // c-file-style: "senf"
46 // indent-tabs-mode: nil
47 // ispell-local-dictionary: "american"
48 // compile-command: "scons -u test"
49 // comment-column: 40
50 // End: