suplibxx  1.3.9
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 #ifdef sgi
29 #include <stddef.h>
30 #include <stdio.h>
31 #else
32 #include <cstddef>
33 #include <cstdio>
34 #endif
35 #include <string>
36 using namespace std;
37 
38 namespace suplib {
39 
47 enum readopt {
48 
57  READ_PHYS = 0x00,
58 
66  READ_LOGICAL = 0x01,
67 
73  STRIP = 0x02,
74 
84  CLEAN = 0x04,
85 
96  RAW = 0x08
97 };
98 
99 istream& getrecord(
100  istream& is,
101  string& str,
102  int opt=READ_PHYS,
103  char delim='\n',
104  char continuation='\\'
105  );
106 
107 
108 } // ! namespace suplib
109 
110 #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:47
istream & getrecord(istream &is, string &str, int opt=READ_PHYS, char delim='\n', char continuation='\\')
Reads physical and logical lines.
Definition: getrecord.cc:60
Definition: io.h:96