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

Path class wrapper to prepare application code for transition from boost::filesystem library to std::filesystem implementation. More...

#include <fs.h>

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

Public Member Functions

 path (boost::filesystem::path path)
 
pathoperator= (boost::filesystem::path path)
 
pathoperator/= (boost::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 u8string () const
 

Detailed Description

Path class wrapper to prepare application code for transition from boost::filesystem library to std::filesystem implementation.

The main purpose of the class is to define fs::path::u8string() and fs::u8path() functions not present in boost. It also blocks calls to the fs::path(std::string) implicit constructor and the fs::path::string() method, which worked well in the boost::filesystem implementation, but have unsafe and unpredictable behavior on Windows in the std::filesystem implementation (see implementation note in PathToString for details).

Definition at line 33 of file fs.h.

Constructor & Destructor Documentation

◆ path() [1/3]

fs::path::path ( boost::filesystem::path  path)
inline

Definition at line 39 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 44 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 47 of file fs.h.

◆ append() [2/2]

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

◆ operator/=() [1/3]

path& fs::path::operator/= ( boost::filesystem::path  path)
inline

Definition at line 41 of file fs.h.

◆ operator/=() [2/3]

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

Definition at line 46 of file fs.h.

◆ operator/=() [3/3]

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

◆ operator=() [1/3]

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

Definition at line 40 of file fs.h.

◆ operator=() [2/3]

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

Definition at line 45 of file fs.h.

◆ operator=() [3/3]

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

◆ string()

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

◆ u8string()

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

Definition at line 59 of file fs.h.

Here is the caller graph for this function:

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