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

#include <simple_fs_types_nix.hpp>

Public Member Functions

 directory (file_system const *parent_system, native_string_view relative_path)
 
 directory (file_system const *parent_system, native_string_view relative_path)
 

Friends

directory get_root (file_system const &fs)
 
std::optional< fileopen_file (directory const &dir, native_string_view file_name)
 
std::vector< unopened_filelist_files (directory const &dir, native_char const *extension)
 
std::vector< directorylist_subdirectories (directory const &dir)
 
std::optional< fileopen_file (directory const &dir, native_string_view file_name)
 
std::optional< unopened_filepeek_file (directory const &dir, native_string_view file_name)
 
void write_file (directory const &dir, native_string_view file_name, char const *file_data, uint32_t file_size)
 
directory open_directory (directory const &dir, native_string_view directory_name)
 
native_string get_full_name (directory const &dir)
 
directory get_root (file_system const &fs)
 
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)
 
std::vector< unopened_filelist_files (directory const &dir, native_char const *extension)
 
std::vector< directorylist_subdirectories (directory const &dir)
 
std::optional< fileopen_file (directory const &dir, native_string_view file_name)
 
std::optional< unopened_filepeek_file (directory const &dir, native_string_view file_name)
 
void write_file (directory const &dir, native_string_view file_name, char const *file_data, uint32_t file_size)
 
directory open_directory (directory const &dir, native_string_view directory_name)
 
native_string get_full_name (directory const &f)
 

Detailed Description

Definition at line 34 of file simple_fs_types_nix.hpp.

Constructor & Destructor Documentation

◆ directory() [1/2]

simple_fs::directory::directory ( file_system const *  parent_system,
native_string_view  relative_path 
)
inline

Definition at line 39 of file simple_fs_types_nix.hpp.

◆ directory() [2/2]

simple_fs::directory::directory ( file_system const *  parent_system,
native_string_view  relative_path 
)
inline

Definition at line 48 of file simple_fs_types_win.hpp.

Friends And Related Function Documentation

◆ get_full_name [1/2]

native_string get_full_name ( directory const &  dir)
friend

Definition at line 415 of file simple_fs_nix.cpp.

◆ get_full_name [2/2]

native_string get_full_name ( directory const &  f)
friend

Definition at line 415 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.

◆ 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_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_directory [1/2]

directory open_directory ( directory const &  dir,
native_string_view  directory_name 
)
friend

Definition at line 336 of file simple_fs_nix.cpp.

◆ open_directory [2/2]

directory open_directory ( directory const &  dir,
native_string_view  directory_name 
)
friend

Definition at line 336 of file simple_fs_nix.cpp.

◆ open_file [1/4]

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/4]

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 [3/4]

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 [4/4]

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.

◆ write_file [1/2]

void write_file ( directory const &  dir,
native_string_view  file_name,
char const *  file_data,
uint32_t  file_size 
)
friend

Definition at line 419 of file simple_fs_nix.cpp.

◆ write_file [2/2]

void write_file ( directory const &  dir,
native_string_view  file_name,
char const *  file_data,
uint32_t  file_size 
)
friend

Definition at line 419 of file simple_fs_nix.cpp.


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