Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | List of all members
fs::path Class Reference

Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path::string() method, which have unsafe and unpredictable behavior on Windows (see implementation note in PathToString for details) More...

#include <fs.h>

Inheritance diagram for fs::path:
[legend]
Collaboration diagram for fs::path:
[legend]

Public Member Functions

 path (std::filesystem::path path)
 
pathoperator= (std::filesystem::path path)
 
pathoperator/= (const std::filesystem::path &path)
 
 path (const char *c)
 
pathoperator= (const char *c)
 
pathoperator/= (const char *c)
 
pathappend (const char *c)
 
 path (std::string)=delete
 
pathoperator= (std::string)=delete
 
pathoperator/= (std::string)=delete
 
pathappend (std::string)=delete
 
std::string string () const =delete
 
std::string utf8string () const
 Return a UTF-8 representation of the path as a std::string, for compatibility with code using std::string. More...
 
pathmake_preferred ()
 
path filename () const
 

Detailed Description

Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path::string() method, which have unsafe and unpredictable behavior on Windows (see implementation note in PathToString for details)

Definition at line 32 of file fs.h.

Constructor & Destructor Documentation

◆ path() [1/3]

fs::path::path ( std::filesystem::path  path)
inline

Definition at line 38 of file fs.h.

Here is the caller graph for this function:

◆ path() [2/3]

fs::path::path ( const char *  c)
inline

Definition at line 43 of file fs.h.

◆ path() [3/3]

fs::path::path ( std::string  )
delete

Member Function Documentation

◆ append() [1/2]

path& fs::path::append ( const char *  c)
inline

Definition at line 46 of file fs.h.

◆ append() [2/2]

path& fs::path::append ( std::string  )
delete

◆ filename()

path fs::path::filename ( ) const
inline

Definition at line 72 of file fs.h.

Here is the caller graph for this function:

◆ make_preferred()

path& fs::path::make_preferred ( )
inline

Definition at line 71 of file fs.h.

Here is the caller graph for this function:

◆ operator/=() [1/3]

path& fs::path::operator/= ( const char *  c)
inline

Definition at line 45 of file fs.h.

◆ operator/=() [2/3]

path& fs::path::operator/= ( const std::filesystem::path &  path)
inline

Definition at line 40 of file fs.h.

◆ operator/=() [3/3]

path& fs::path::operator/= ( std::string  )
delete

◆ operator=() [1/3]

path& fs::path::operator= ( const char *  c)
inline

Definition at line 44 of file fs.h.

◆ operator=() [2/3]

path& fs::path::operator= ( std::filesystem::path  path)
inline

Definition at line 39 of file fs.h.

◆ operator=() [3/3]

path& fs::path::operator= ( std::string  )
delete

◆ string()

std::string fs::path::string ( ) const
delete

◆ utf8string()

std::string fs::path::utf8string ( ) const
inline

Return a UTF-8 representation of the path as a std::string, for compatibility with code using std::string.

For code using the newer std::u8string type, it is more efficient to call the inherited std::filesystem::path::u8string method instead.

Definition at line 63 of file fs.h.

Here is the caller graph for this function:

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