MC_io_off.hpp

Go to the documentation of this file.
00001 
00002 /*
00003 **    Mesh Converter
00004 **    Copyright (C) 2009  Damien Rohmer
00005 **
00006 **    This program is free software: you can redistribute it and/or modify
00007 **    it under the terms of the GNU General Public License as published by
00008 **    the Free Software Foundation, either version 3 of the License, or
00009 **    (at your option) any later version.
00010 **
00011 **   This program is distributed in the hope that it will be useful,
00012 **    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 **    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 **    GNU General Public License for more details.
00015 **
00016 **    You should have received a copy of the GNU General Public License
00017 **    along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 
00020 #ifndef _MC_IO_OFF_HPP_
00021 #define _MC_IO_OFF_HPP_
00022 
00023 #include <iostream>
00024 #include <fstream>
00025 
00026 namespace mesh_conv
00027 {
00028 
00029     class MC_v3d_vector;
00030     class MC_connectivity_index;
00031     class MC_mesh_index_vector;
00032 
00034     class MC_io_off
00035     {
00036 
00037     public:
00038 
00041         static std::pair <MC_v3d_vector,MC_connectivity_index> read_off(std::istream& stream);
00044         static std::pair <MC_v3d_vector,MC_connectivity_index> read_off_file(const std::string& string_file);
00045 
00047         static std::ostream& write_off(std::ostream& stream,const MC_mesh_index_vector& to_write);
00049         static const MC_mesh_index_vector& write_off_file(const std::string& string_file,const MC_mesh_index_vector& to_write);
00050 
00051 
00052 
00053 
00054     private:
00055 
00056     };
00057 }
00058 
00059 #endif

Generated on Sun Apr 18 20:24:47 2010 by  doxygen 1.6.1