Project Alice
Loading...
Searching...
No Matches
simple_fs::file_system Class Reference

#include <simple_fs_types_nix.hpp>

Friends

std::optional< fileopen_file (directory const &dir, native_string_view file_name)
 
void reset (file_system &fs)
 
void add_root (file_system &fs, native_string_view root_path)
 
void add_relative_root (file_system &fs, native_string_view root_path)
 
directory get_root (file_system const &fs)
 
native_string extract_state (file_system const &fs)
 
void restore_state (file_system &fs, native_string_view data)
 
std::vector< directorylist_subdirectories (directory const &dir)
 
std::vector< unopened_filelist_files (directory const &dir, native_char const *extension)
 
std::optional< unopened_filepeek_file (directory const &dir, native_string_view file_name)
 
void add_ignore_path (file_system &fs, native_string_view replaced_path)
 
std::vector< native_stringlist_roots (file_system const &fs)
 
bool is_ignored_path (file_system const &fs, native_string_view path)
 
std::optional< native_stringget_path_to_file (directory const &dir, native_string_view file_name)
 
std::optional< fileopen_file (directory const &dir, native_string_view file_name)
 
void reset (file_system &fs)
 
void add_root (file_system &fs, native_string_view root_path)
 
void add_relative_root (file_system &fs, native_string_view root_path)
 
directory get_root (file_system const &fs)
 
native_string extract_state (file_system const &fs)
 
void restore_state (file_system &fs, native_string_view data)
 
std::vector< directorylist_subdirectories (directory const &dir)
 
std::vector< unopened_filelist_files (directory const &dir, native_char const *extension)
 
std::optional< unopened_filepeek_file (directory const &dir, native_string_view file_name)
 
void add_ignore_path (file_system &fs, native_string_view replaced_path)
 
std::vector< native_stringlist_roots (file_system const &fs)
 
bool is_ignored_path (file_system const &fs, native_string_view path)
 

Detailed Description

Definition at line 10 of file simple_fs_types_nix.hpp.

Friends And Related Function Documentation

◆ add_ignore_path [1/2]

void add_ignore_path ( file_system fs,
native_string_view  replaced_path 
)
friend

Definition at line 387 of file simple_fs_nix.cpp.

◆ add_ignore_path [2/2]

void add_ignore_path ( file_system fs,
native_string_view  replaced_path 
)
friend

Definition at line 387 of file simple_fs_nix.cpp.

◆ add_relative_root [1/2]

void add_relative_root ( file_system fs,
native_string_view  root_path 
)
friend

Definition at line 126 of file simple_fs_nix.cpp.

◆ add_relative_root [2/2]

void add_relative_root ( file_system fs,
native_string_view  root_path 
)
friend

Definition at line 126 of file simple_fs_nix.cpp.

◆ add_root [1/2]

void add_root ( file_system fs,
native_string_view  root_path 
)
friend

Definition at line 122 of file simple_fs_nix.cpp.

◆ add_root [2/2]

void add_root ( file_system fs,
native_string_view  root_path 
)
friend

Definition at line 122 of file simple_fs_nix.cpp.

◆ extract_state [1/2]

native_string extract_state ( file_system const &  fs)
friend

Definition at line 155 of file simple_fs_nix.cpp.

◆ extract_state [2/2]

native_string extract_state ( file_system const &  fs)
friend

Definition at line 155 of file simple_fs_nix.cpp.

◆ get_path_to_file

std::optional< native_string > get_path_to_file ( directory const &  dir,
native_string_view  file_name 
)
friend

Definition at line 260 of file simple_fs_win.cpp.

◆ get_root [1/2]

directory get_root ( file_system const &  fs)
friend

Definition at line 151 of file simple_fs_nix.cpp.

◆ get_root [2/2]

directory get_root ( file_system const &  fs)
friend

Definition at line 151 of file simple_fs_nix.cpp.

◆ is_ignored_path [1/2]

bool is_ignored_path ( file_system const &  fs,
native_string_view  path 
)
friend

Definition at line 395 of file simple_fs_nix.cpp.

◆ is_ignored_path [2/2]

bool is_ignored_path ( file_system const &  fs,
native_string_view  path 
)
friend

Definition at line 395 of file simple_fs_nix.cpp.

◆ list_files [1/2]

std::vector< unopened_file > list_files ( directory const &  dir,
native_char const *  extension 
)
friend

Definition at line 202 of file simple_fs_nix.cpp.

◆ list_files [2/2]

std::vector< unopened_file > list_files ( directory const &  dir,
native_char const *  extension 
)
friend

Definition at line 202 of file simple_fs_nix.cpp.

◆ list_roots [1/2]

std::vector< native_string > list_roots ( file_system const &  fs)
friend

Definition at line 391 of file simple_fs_nix.cpp.

◆ list_roots [2/2]

std::vector< native_string > list_roots ( file_system const &  fs)
friend

Definition at line 391 of file simple_fs_nix.cpp.

◆ list_subdirectories [1/2]

std::vector< directory > list_subdirectories ( directory const &  dir)
friend

Definition at line 275 of file simple_fs_nix.cpp.

◆ list_subdirectories [2/2]

std::vector< directory > list_subdirectories ( directory const &  dir)
friend

Definition at line 275 of file simple_fs_nix.cpp.

◆ open_file [1/2]

std::optional< file > open_file ( directory const &  dir,
native_string_view  file_name 
)
friend

Definition at line 340 of file simple_fs_nix.cpp.

◆ open_file [2/2]

std::optional< file > open_file ( directory const &  dir,
native_string_view  file_name 
)
friend

Definition at line 340 of file simple_fs_nix.cpp.

◆ peek_file [1/2]

std::optional< unopened_file > peek_file ( directory const &  dir,
native_string_view  file_name 
)
friend

Definition at line 363 of file simple_fs_nix.cpp.

◆ peek_file [2/2]

std::optional< unopened_file > peek_file ( directory const &  dir,
native_string_view  file_name 
)
friend

Definition at line 363 of file simple_fs_nix.cpp.

◆ reset [1/2]

void reset ( file_system fs)
friend

Definition at line 117 of file simple_fs_nix.cpp.

◆ reset [2/2]

void reset ( file_system fs)
friend

Definition at line 117 of file simple_fs_nix.cpp.

◆ restore_state [1/2]

void restore_state ( file_system fs,
native_string_view  data 
)
friend

Definition at line 167 of file simple_fs_nix.cpp.

◆ restore_state [2/2]

void restore_state ( file_system fs,
native_string_view  data 
)
friend

Definition at line 167 of file simple_fs_nix.cpp.


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