politopix  4.1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IO_Polytope.h
Go to the documentation of this file.
1 // politopix allows to make computations on polytopes such as finding vertices, intersecting, Minkowski sums, ...
2 // Copyright (C) 2011-2015 : Delos Vincent
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
19 // I2M (UMR CNRS 5295 / University of Bordeaux)
20 
21 #ifndef IO_POLYTOPES
22 #define IO_POLYTOPES
23 
24 #include <stdexcept>
25 #include <exception>
26 #include <iostream>
27 #include <fstream>
28 #include <sstream>
29 #include <vector>
30 #include "polito_Export.h"
31 #include "Polytope_Rn.h"
32 #include "PolyhedralCone_Rn.h"
33 
50 class IO_Polytope {
51 
52  public:
54 
56 
58  static polito_EXPORT void load(const std::string& filename, boost::shared_ptr<PolyhedralCone_Rn> POLY)
59  throw (std::ios_base::failure,std::out_of_range);
60 
62  static polito_EXPORT void save(const std::string& filename, boost::shared_ptr<PolyhedralCone_Rn> POLY)
63  throw (std::ios_base::failure);
64 
65 };
66 
67 #endif // IO_POLYTOPES
static polito_EXPORT void load(const std::string &filename, boost::shared_ptr< PolyhedralCone_Rn > POLY)
Load the main data format to store polytopes.
Definition: IO_Polytope.cpp:26
static polito_EXPORT void save(const std::string &filename, boost::shared_ptr< PolyhedralCone_Rn > POLY)
Save the polytope to the main data format.
#define polito_EXPORT
Definition: polito_Export.h:15
Read/write polytopes. The way we store polytopes : 1st line : comments = "# Dimension NumberOfHal...
Definition: IO_Polytope.h:50