Dune Core Modules (2.4.2)

path.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_COMMON_PATH_HH
4#define DUNE_COMMON_PATH_HH
5
6#include <string>
7
8namespace Dune {
22
50 std::string concatPaths(const std::string& base, const std::string& p);
51
53
97 std::string processPath(const std::string& p);
98
100
108 bool pathIndicatesDirectory(const std::string& p);
109
111
150 std::string prettyPath(const std::string& p, bool isDirectory);
151
153
159 std::string prettyPath(const std::string& p);
160
162
178 std::string relativePath(const std::string& newbase, const std::string& p);
179
181}
182
183#endif // DUNE_COMMON_PATH_HH
std::string processPath(const std::string &p)
sanitize a path for further processing
Definition: path.cc:39
bool pathIndicatesDirectory(const std::string &p)
check whether the given path indicates that it is a directory
Definition: path.cc:113
std::string prettyPath(const std::string &p, bool isDirectory)
pretty print path
Definition: path.cc:124
std::string relativePath(const std::string &newbase, const std::string &p)
compute a relative path between two paths
Definition: path.cc:151
std::string concatPaths(const std::string &base, const std::string &p)
concatenate two paths
Definition: path.cc:30
Dune namespace.
Definition: alignment.hh:10
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)