libpniio
get_sequence_rule.hpp
Go to the documentation of this file.
1 // (c) Copyright 2015 DESY, Eugen Wintersberger <eugen.wintersberger@desy.de>
2 //
3 // This file is part of libpniio.
4 //
5 // libpniio 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 // libpniio 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 libpniio. If not, see <http://www.gnu.org/licenses/>.
17 // ===========================================================================
18 //
19 // Created on: Feb 2, 2015
20 // Author: Eugen Wintersberger <eugen.wintersberger@desy.de>
21 //
22 //
23 #pragma once
24 
25 #include "sequence_rule.hpp"
26 #include "string_sequence_rule.hpp"
27 
28 
29 namespace pni{
30 namespace io{
31 
32 
44  template<
45  typename ITERT,
46  typename ST,
47  bool has_string = std::is_same<
48  typename ST::value_type,core::string>::value
49  >
51  {
53  };
54 
55 
56  //------------------------------------------------------------------------
66  template<
67  typename ITERT,
68  typename ST
69  >
70  struct get_sequence_rule<ITERT,ST,true>
71  {
73  };
74 
75 //end of namespace
76 }
77 }
container parser
Definition: string_sequence_rule.hpp:102
get rule for sequences
Definition: get_sequence_rule.hpp:50
container parser
Definition: sequence_rule.hpp:59
Definition: cbf_reader.hpp:41
sequence_rule< ITERT, ST > type
rule type
Definition: get_sequence_rule.hpp:52
string_sequence_rule< ITERT, ST > type
rule type
Definition: get_sequence_rule.hpp:72