OpenStructure
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 
23 #include <ost/io/module_config.hh>
24 #include <ost/img/map.hh>
27 
28 namespace ost {
29 
30 namespace io {
38 DLLEXPORT_OST_IO img::ImageHandle LoadImage(const boost::filesystem::path& loc);
39 
44 DLLEXPORT_OST_IO img::ImageHandle LoadImage(const boost::filesystem::path& loc, const ImageFormatBase& formatstruct);
45 
51 DLLEXPORT_OST_IO void SaveImage(const img::ImageHandle& image, const boost::filesystem::path& loc);
56 DLLEXPORT_OST_IO void SaveImage(const img::ImageHandle& image, const boost::filesystem::path& loc, const ImageFormatBase& formatstruct);
57 
59 DLLEXPORT_OST_IO img::MapHandle LoadMap(const boost::filesystem::path& loc);
61 DLLEXPORT_OST_IO img::MapHandle LoadMap(const boost::filesystem::path& loc, const ImageFormatBase& formatstruct);
63 DLLEXPORT_OST_IO void SaveMap(const img::ImageHandle& image, const boost::filesystem::path& loc);
65 DLLEXPORT_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
DLLEXPORT_OST_IO void SaveMap(const img::ImageHandle &image, const boost::filesystem::path &loc)
Alias for the equivalent SaveImage function.
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::MapHandle LoadMap(const boost::filesystem::path &loc)
Alias for the equivalent LoadImage function.
DLLEXPORT_OST_IO img::ImageHandle LoadImage(const boost::filesystem::path &loc)
Function that loads an image from a file.
Definition: base.dox:1