suplibxx  1.3.13
io.h
1 #ifndef SUPLIB_PP_IO_H
2 #define SUPLIB_PP_IO_H
3 
4 // --8<--8<--8<--8<--
5 //
6 // Copyright (C) 2006 Smithsonian Astrophysical Observatory
7 //
8 // This file is part of suplibxx
9 //
10 // suplibxx is free software; you can redistribute it and/or
11 // modify it under the terms of the GNU General Public License
12 // as published by the Free Software Foundation; either version 2
13 // of the License, or (at your option) any later version.
14 //
15 // suplibxx is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with this program; if not, write to the
22 // Free Software Foundation, Inc.
23 // 51 Franklin Street, Fifth Floor
24 // Boston, MA 02110-1301, USA
25 //
26 // -->8-->8-->8-->8--
27 
28 #include <fstream>
29 #include <iostream>
30 #include <string>
31 
32 namespace suplib {
33 
41 enum readopt {
42 
51  READ_PHYS = 0x00,
52 
60  READ_LOGICAL = 0x01,
61 
67  STRIP = 0x02,
68 
78  CLEAN = 0x04,
79 
90  RAW = 0x08
91 };
92 
93  std::istream& getrecord(
94  std::istream& is,
95  std::string& str,
96  int opt=READ_PHYS,
97  char delim='\n',
98  char continuation='\\'
99  );
100 
101 
102 } // ! namespace suplib
103 
104 #endif // ! SUPLIB_PP_IO_H
The suplib namespace encompasses all of the functions in the suplib++ library.
readopt
Control options for getrecord.
Definition: io.h:41
std::istream & getrecord(std::istream &is, std::string &str, int opt=READ_PHYS, char delim='\n', char continuation='\\')
Reads physical and logical lines.
Definition: getrecord.cc:53
Definition: io.h:90