OpenStructure
Loading...
Searching...
No Matches
load_map.hh
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// This file is part of the OpenStructure project <www.openstructure.org>
3//
4// Copyright (C) 2008-2020 by the OpenStructure authors
5// Copyright (C) 2003-2010 by the IPLT authors
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License as published by the Free
9// Software Foundation; either version 3.0 of the License, or (at your option)
10// any later version.
11// This library is distributed in the hope that it will be useful, but WITHOUT
12// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14// details.
15//
16// You should have received a copy of the GNU Lesser General Public License
17// along with this library; if not, write to the Free Software Foundation, Inc.,
18// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19//------------------------------------------------------------------------------
20#ifndef OST_IO_LOAD_MAP_HH
21#define OST_IO_LOAD_MAP_HH
22
24#include <ost/img/map.hh>
27
28namespace ost {
29
30namespace io {
38DLLEXPORT_OST_IO img::ImageHandle LoadImage(const boost::filesystem::path& loc);
39
44DLLEXPORT_OST_IO img::ImageHandle LoadImage(const boost::filesystem::path& loc, const ImageFormatBase& formatstruct);
45
51DLLEXPORT_OST_IO void SaveImage(const img::ImageHandle& image, const boost::filesystem::path& loc);
56DLLEXPORT_OST_IO void SaveImage(const img::ImageHandle& image, const boost::filesystem::path& loc, const ImageFormatBase& formatstruct);
57
59DLLEXPORT_OST_IO img::MapHandle LoadMap(const boost::filesystem::path& loc);
61DLLEXPORT_OST_IO img::MapHandle LoadMap(const boost::filesystem::path& loc, const ImageFormatBase& formatstruct);
63DLLEXPORT_OST_IO void SaveMap(const img::ImageHandle& image, const boost::filesystem::path& loc);
65DLLEXPORT_OST_IO void SaveMap(const img::ImageHandle& image, const boost::filesystem::path& loc, const ImageFormatBase& formatstruct);
66}} // ns
67
68#endif
#define DLLEXPORT_OST_IO
ImageHandle MapHandle
Definition map.hh:26
SaveMap
Alias for the equivalent SaveImage function.
Definition __init__.py:297
DLLEXPORT_OST_IO void SaveImage(const img::ImageHandle &image, const boost::filesystem::path &loc)
Function that saves an image to a file.
DLLEXPORT_OST_IO img::ImageHandle LoadImage(const boost::filesystem::path &loc)
Function that loads an image from a file.
LoadMap
Alias for the equivalent LoadImage function.
Definition __init__.py:296
Definition base.dox:1