libpniio
container_io_config.hpp
Go to the documentation of this file.
1 //
2 // (c) Copyright 2015 DESY, Eugen Wintersberger <eugen.wintersberger@desy.de>
3 //
4 // This file is part of libpniio.
5 //
6 // libpniio is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // libpniio is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with libpniio. If not, see <http://www.gnu.org/licenses/>.
18 // ===========================================================================
19 //
20 // Created on: Apr 28, 2015
21 // Author: Eugen Wintersberger <eugen.wintersberger@desy.de>
22 //
23 //
24 #pragma once
25 
26 namespace pni{
27 namespace io{
28 
67  {
68  private:
70  char _start;
72  char _stop;
74  char _sep;
75  public:
83 
84  //-----------------------------------------------------------------
94  container_io_config(char seperator);
95 
96  //-----------------------------------------------------------------
106  container_io_config(char start,char stop);
107 
108  //-----------------------------------------------------------------
119  container_io_config(char start,char stop,char seperator);
120 
121  //-----------------------------------------------------------------
127  char separator() const;
128 
129  //-----------------------------------------------------------------
134  char start_symbol() const;
135 
136  //-----------------------------------------------------------------
141  char stop_symbol() const;
142  };
143 
144 //end of namespace
145 }
146 }
147 
container_io_config()
default constructor
Definition: container_io_config.cpp:32
char _sep
seperator symbol
Definition: container_io_config.hpp:74
container IO configuration
Definition: container_io_config.hpp:66
char _stop
stop symbol
Definition: container_io_config.hpp:72
Definition: cbf_reader.hpp:41
char separator() const
get separator symbol
Definition: container_io_config.cpp:60
char start_symbol() const
get start symbol
Definition: container_io_config.cpp:66
char stop_symbol() const
get stop symbol
Definition: container_io_config.cpp:72
char _start
start symbol
Definition: container_io_config.hpp:70