Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
fishnet::GeoPackage Class Reference

GeoPackage handle. More...

#include <GeoPackage.hpp>

Inheritance diagram for fishnet::GeoPackage:
Collaboration diagram for fishnet::GeoPackage:

Public Member Functions

 GeoPackage (std::filesystem::path path)
 
bool remove () const noexcept override
 Removes the file from the filesystem.
 
constexpr GISFileType type () const noexcept override
 Returns the type of GISFile.
 
GeoPackage & move (std::filesystem::path const &path)
 
GeoPackage copy (std::filesystem::path const &path) const
 
std::string toString () const noexcept
 
- Public Member Functions inherited from fishnet::AbstractVectorFile
 AbstractVectorFile (const std::filesystem::path &pathToFile)
 
 AbstractVectorFile (const std::string &pathName)
 
virtual ~AbstractVectorFile ()=default
 
AbstractVectorFile & move (const std::filesystem::path &newPath)
 
AbstractVectorFile copy (const std::filesystem::path &newPath) const
 
std::string toString () const noexcept
 
- Public Member Functions inherited from fishnet::AbstractGISFile
const std::filesystem::path & getPath () const noexcept
 
 operator bool () const noexcept
 
bool exists () const noexcept
 Tests if the GISFile exists on the filesystem.
 
bool supports (const std::filesystem::path &path) const noexcept
 Checks if the supplied path is supported by the concrete GISFile implementation.
 
void changeFilename (const std::string &filename) noexcept
 Modifies the path of the GISFile by changing the filename (extension is preserved).
 
void appendToFilename (const std::string &suffix) noexcept
 Appends a suffix to the filename / stem of the GISFile (extension is preserved).
 
virtual ~AbstractGISFile ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from fishnet::AbstractGISFile
void supportsOrThrow (const std::filesystem::path &path) const
 
- Protected Attributes inherited from fishnet::AbstractGISFile
std::filesystem::path pathToFile
 

Detailed Description

GeoPackage handle.

Constructor & Destructor Documentation

◆ GeoPackage()

fishnet::GeoPackage::GeoPackage ( std::filesystem::path  path)
inlineexplicit

Member Function Documentation

◆ copy()

GeoPackage GeoPackage::copy ( std::filesystem::path const &  path) const

◆ move()

GeoPackage & GeoPackage::move ( std::filesystem::path const &  path)

◆ remove()

bool GeoPackage::remove ( ) const
overridevirtualnoexcept

Removes the file from the filesystem.

Returns
true success
false error

Reimplemented from fishnet::AbstractVectorFile.

◆ toString()

std::string GeoPackage::toString ( ) const
noexcept

◆ type()

constexpr GISFileType fishnet::GeoPackage::type ( ) const
inlineconstexproverridevirtualnoexcept

Returns the type of GISFile.

Returns
constexpr GISFileType

Reimplemented from fishnet::AbstractVectorFile.


The documentation for this class was generated from the following files: