00001 00002 00003 00015 00016 // Copyright (C) 1997-2010 by Pawel Pilarczyk. 00017 // 00018 // This file is part of the Homology Library. This library is free software; 00019 // you can redistribute it and/or modify it under the terms of the GNU 00020 // General Public License as published by the Free Software Foundation; 00021 // either version 2 of the License, or (at your option) any later version. 00022 // 00023 // This library is distributed in the hope that it will be useful, 00024 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00026 // GNU General Public License for more details. 00027 // 00028 // You should have received a copy of the GNU General Public License along 00029 // with this software; see the file "license.txt". If not, write to the 00030 // Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 00031 // MA 02111-1307, USA. 00032 00033 // Started on November 12, 2001. Last revision: August 16, 2007. 00034 00035 00036 #ifndef _CHOMP_CUBES_BITCODE_H_ 00037 #define _CHOMP_CUBES_BITCODE_H_ 00038 00039 #include "chomp/system/config.h" 00040 #include "chomp/system/textfile.h" 00041 #include "chomp/cubes/pointset.h" 00042 00043 #include <iostream> 00044 #include <fstream> 00045 #include <ctime> 00046 #include <cstdlib> 00047 00048 namespace chomp { 00049 namespace homology { 00050 00051 00052 // -------------------------------------------------- 00053 // --------------------- BITCODE -------------------- 00054 // -------------------------------------------------- 00055 00060 int readbitpoints (std::istream &in, pointset &p, int *bitcode_depth = NULL); 00061 00071 int writebitpoints (std::ostream &out, pointset &p, bool sorted = true, 00072 int fixed_depth = 0, coordinate *fixed_corner = NULL); 00073 00074 00075 } // namespace homology 00076 } // namespace chomp 00077 00078 #endif // _CHOMP_CUBES_BITCODE_H_ 00079 00081