Dune Core Modules (2.6.0)

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 
8 namespace Dune {
21 
49  std::string concatPaths(const std::string& base, const std::string& p);
50 
52 
96  std::string processPath(const std::string& p);
97 
99 
107  bool pathIndicatesDirectory(const std::string& p);
108 
110 
149  std::string prettyPath(const std::string& p, bool isDirectory);
150 
152 
158  std::string prettyPath(const std::string& p);
159 
161 
177  std::string relativePath(const std::string& newbase, const std::string& p);
178 
180 }
181 
182 #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: alignedallocator.hh:10
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 2, 22:35, 2024)