switch to new MPL based Fraunhofer FOKUS Public License
[senf.git] / senf / Scheduler / ReadHelper.cci
1 // $Id$
2 //
3 // Copyright (C) 2006 Stefan Bund <g0dil@berlios.de>
4 //
5 // The contents of this file are subject to the Fraunhofer FOKUS Public License
6 // Version 1.0 (the "License"); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at 
8 // http://senf.berlios.de/license.html
9 //
10 // The Fraunhofer FOKUS Public License Version 1.0 is based on, 
11 // but modifies the Mozilla Public License Version 1.1.
12 // See the full license text for the amendments.
13 //
14 // Software distributed under the License is distributed on an "AS IS" basis, 
15 // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 
16 // for the specific language governing rights and limitations under the License.
17 //
18 // The Original Code is Fraunhofer FOKUS code.
19 //
20 // The Initial Developer of the Original Code is Fraunhofer-Gesellschaft e.V. 
21 // (registered association), Hansastraße 27 c, 80686 Munich, Germany.
22 // All Rights Reserved.
23 //
24 // Contributor(s):
25
26 // Copyright (C) 2006
27 /** \file
28     \brief ReadHelper inline non-template implementation */
29
30 // Custom includes
31
32 #define prefix_ inline
33 //-/////////////////////////////////////////////////////////////////////////////////////////////////
34
35 prefix_ senf::ReadUntil::ReadUntil(std::string const & target_)
36     : target(target_)
37 {}
38
39 prefix_ std::string::size_type senf::ReadUntil::operator()(std::string const & data)
40 {
41     return data.find(target);
42 }
43
44 //-/////////////////////////////////////////////////////////////////////////////////////////////////
45 #undef prefix_
46
47 \f
48 // Local Variables:
49 // mode: c++
50 // fill-column: 100
51 // c-file-style: "senf"
52 // indent-tabs-mode: nil
53 // ispell-local-dictionary: "american"
54 // compile-command: "scons -u test"
55 // comment-column: 40
56 // End: