io.h

00001 #ifndef SUPLIB_PP_IO_H
00002 #define SUPLIB_PP_IO_H
00003 
00004 // --8<--8<--8<--8<--
00005 //
00006 // Copyright (C) 2006 Smithsonian Astrophysical Observatory
00007 //
00008 // This file is part of suplibxx
00009 //
00010 // suplibxx is free software; you can redistribute it and/or
00011 // modify it under the terms of the GNU General Public License
00012 // as published by the Free Software Foundation; either version 2
00013 // of the License, or (at your option) any later version.
00014 //
00015 // suplibxx is distributed in the hope that it will be useful,
00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 // GNU General Public License for more details.
00019 //
00020 // You should have received a copy of the GNU General Public License
00021 // along with this program; if not, write to the 
00022 //       Free Software Foundation, Inc. 
00023 //       51 Franklin Street, Fifth Floor
00024 //       Boston, MA  02110-1301, USA
00025 //
00026 // -->8-->8-->8-->8--
00027 
00028 #ifdef sgi
00029 #include <stddef.h>
00030 #include <stdio.h>
00031 #else
00032 #include <cstddef>
00033 #include <cstdio>
00034 #endif
00035 #include <string>
00036 using namespace std;
00037 
00038 namespace suplib { 
00039 
00047 enum readopt {
00048 
00057   READ_PHYS    = 0x00,
00058 
00066   READ_LOGICAL = 0x01,
00067 
00073   STRIP        = 0x02,
00074 
00084   CLEAN        = 0x04,
00085 
00096   RAW          = 0x08
00097 };
00098 
00099 istream& getrecord(
00100   istream& is,
00101   string& str,
00102   int opt=READ_PHYS,
00103   char delim='\n',
00104   char continuation='\\'
00105   );
00106 
00107 
00108 } // ! namespace suplib
00109 
00110 #endif // ! SUPLIB_PP_IO_H

Generated on Thu Oct 2 20:49:06 2008 for suplibxx by  doxygen 1.5.6