politopix
5.0.0
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 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 General Public License for more details.
13
//
14
// You should have received a copy of the GNU 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
:
53
IO_Polytope
() {}
54
55
~IO_Polytope
() {}
56
58
static
polito_EXPORT
void
load
(
const
std::string& filename, boost::shared_ptr<PolyhedralCone_Rn> POLY);
59
61
static
polito_EXPORT
void
save
(
const
std::string& filename, boost::shared_ptr<PolyhedralCone_Rn> POLY);
62
63
};
64
65
#endif // IO_POLYTOPES
polito_EXPORT
#define polito_EXPORT
Definition:
polito_Export.h:15
PolyhedralCone_Rn.h
IO_Polytope::IO_Polytope
IO_Polytope()
Definition:
IO_Polytope.h:53
IO_Polytope::~IO_Polytope
~IO_Polytope()
Definition:
IO_Polytope.h:55
IO_Polytope::load
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
Polytope_Rn.h
IO_Polytope
Read/write polytopes. The way we store polytopes : 1st line : comments = "# Dimension NumberOfHal...
Definition:
IO_Polytope.h:50
IO_Polytope::save
static polito_EXPORT void save(const std::string &filename, boost::shared_ptr< PolyhedralCone_Rn > POLY)
Save the polytope to the main data format.
Definition:
IO_Polytope.cpp:132
polito_Export.h
trunk
IO_Polytope.h
Generated on Mon Jun 5 2023 15:39:31 for politopix by
1.8.17