Bitcoin Core 30.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

std::filesystem::path & std_path ()
 
const std::filesystem::path & std_path () const
 
 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
 
 operator string_type () 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...
 

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 33 of file fs.h.

Constructor & Destructor Documentation

◆ path() [1/3]

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

Definition at line 43 of file fs.h.

◆ path() [2/3]

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

Definition at line 48 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 51 of file fs.h.

◆ append() [2/2]

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

◆ operator string_type()

fs::path::operator string_type ( ) const
delete

◆ operator/=() [1/3]

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

Definition at line 50 of file fs.h.

◆ operator/=() [2/3]

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

Definition at line 45 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 49 of file fs.h.

◆ operator=() [2/3]

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

Definition at line 44 of file fs.h.

◆ operator=() [3/3]

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

◆ std_path() [1/2]

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

Definition at line 39 of file fs.h.

◆ std_path() [2/2]

const std::filesystem::path & fs::path::std_path ( ) const
inline

Definition at line 40 of file fs.h.

◆ 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 74 of file fs.h.


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