//=========================================================================== // GoTools Core - SINTEF Geometry Tools Core library, version 2.0.1 // // Copyright (C) 2000-2007, 2010 SINTEF ICT, Applied Mathematics, Norway. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation version 2 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., // 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. // // Contact information: E-mail: tor.dokken@sintef.no // SINTEF ICT, Department of Applied Mathematics, // P.O. Box 124 Blindern, // 0314 Oslo, Norway. // // Other licenses are also available for this software, notably licenses // for: // - Building commercial software. // - Building software whose source code you wish to keep private. //=========================================================================== 00015 #ifndef _SISL_FILE_IO_H 00016 #define _SISL_FILE_IO_H 00017 00018 00019 #include <boost/smart_ptr.hpp> 00020 #include <vector> 00021 00022 #include <fstream> 00023 00024 #ifdef __BORLANDC__ 00025 #include <cstdio> 00026 #define STD_FILE std::FILE 00027 #else 00028 #define STD_FILE FILE 00029 #endif 00030 00031 struct SISLObject; 00032 00033 void read_non_comment(STD_FILE* fp, char* string); 00034 00035 void file_to_obj(STD_FILE* fp, SISLObject** wo, int* jstat); 00036 00037 void curve_to_file(STD_FILE *f, struct SISLCurve *c1); 00038 00039 void surface_to_file(STD_FILE *f, struct SISLSurf *surf); 00040 00041 int get_next_surface(STD_FILE *fp, SISLSurf **qc); 00042 00043 int get_sisl_surfaces(STD_FILE* fp, 00044 std::vector<boost::shared_ptr<SISLSurf> >& sisl_sfs); 00045 00046 00047 #endif // _SISL_FILE_IO_H 00048