VCCC  2024.05
VisualCamp Common C++ library
directory Class Reference

#include <vccc/__directory/directory.h>

Public Types

using iterator = std::filesystem::directory_iterator
 
using recursive_iterator = std::filesystem::recursive_directory_iterator
 
using entry = std::filesystem::directory_entry
 
using path = std::filesystem::path
 
using options = std::filesystem::directory_options
 

Public Member Functions

 directory ()
 
 directory (const path &path_, bool recursive=false)
 
 directory (const path &path_, options options_, bool recursive=false)
 
 directory (const path &path_, std::error_code &ec, bool recursive=false)
 
 directory (const path &path_, options options_, std::error_code &ec, bool recursive=false)
 
template<typename DirectoryIterator , std::enable_if_t< std::is_same_v< DirectoryIterator, iterator >||std::is_same_v< DirectoryIterator, recursive_iterator >, int > = 0>
 directory (DirectoryIterator it)
 
template<typename DirectoryIterator , std::enable_if_t< std::is_same_v< std::decay_t< DirectoryIterator >, iterator >||std::is_same_v< std::decay_t< DirectoryIterator >, recursive_iterator >, int > = 0>
directoryoperator= (DirectoryIterator it)
 
template<typename F >
void for_each (F func) const
 
bool is_recursive () const
 

Member Typedef Documentation

◆ entry

using entry = std::filesystem::directory_entry

◆ iterator

using iterator = std::filesystem::directory_iterator

◆ options

using options = std::filesystem::directory_options

◆ path

using path = std::filesystem::path

◆ recursive_iterator

using recursive_iterator = std::filesystem::recursive_directory_iterator

Constructor & Destructor Documentation

◆ directory() [1/6]

directory ( )
inline

◆ directory() [2/6]

directory ( const path path_,
bool  recursive = false 
)
inlineexplicit

◆ directory() [3/6]

directory ( const path path_,
options  options_,
bool  recursive = false 
)
inline

◆ directory() [4/6]

directory ( const path path_,
std::error_code &  ec,
bool  recursive = false 
)
inline

◆ directory() [5/6]

directory ( const path path_,
options  options_,
std::error_code &  ec,
bool  recursive = false 
)
inline

◆ directory() [6/6]

directory ( DirectoryIterator  it)
inlineexplicit

Member Function Documentation

◆ for_each()

void for_each ( func) const
inline

◆ is_recursive()

bool is_recursive ( ) const
inline

◆ operator=()

directory& operator= ( DirectoryIterator  it)
inline

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