Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
GeoPackage.hpp
Go to the documentation of this file.
1#pragma once
2#include "GISFile.hpp"
3
4namespace fishnet {
10public:
11 explicit GeoPackage(std::filesystem::path path):AbstractVectorFile(path){
12 if(not supports(path)){
13 throw std::invalid_argument("Not a GeoPackage file: "+ path.string());
14 }
15 }
16
17 bool remove() const noexcept override;
18
19 constexpr GISFileType type() const noexcept override {
21 }
22
23 GeoPackage & move(std::filesystem::path const & path);
24
25 GeoPackage copy(std::filesystem::path const & path) const;
26
27 std::string toString() const noexcept;
28};
29static_assert(GISFile<GeoPackage>);
30}
bool supports(const std::filesystem::path &path) const noexcept
Checks if the supplied path is supported by the concrete GISFile implementation.
Definition GISFile.hpp:90
Definition GISFile.hpp:131
GeoPackage handle.
Definition GeoPackage.hpp:9
GeoPackage & move(std::filesystem::path const &path)
Definition GeoPackage.cpp:11
std::string toString() const noexcept
Definition GeoPackage.cpp:24
bool remove() const noexcept override
Removes the file from the filesystem.
Definition GeoPackage.cpp:7
GeoPackage(std::filesystem::path path)
Definition GeoPackage.hpp:11
constexpr GISFileType type() const noexcept override
Returns the type of GISFile.
Definition GeoPackage.hpp:19
GeoPackage copy(std::filesystem::path const &path) const
Definition GeoPackage.cpp:18
Interface for GISFile types. Implementation have to inherit from AbstractGISFile and have to printabl...
Definition GISFile.hpp:175
Definition BFSClustering.hpp:5
GISFileType
Definition GISFile.hpp:11