Project Alice
Loading...
Searching...
No Matches
simple_fs Namespace Reference

Namespaces

namespace  impl
 

Classes

class  directory
 
class  file
 
struct  file_contents
 
class  file_system
 
class  unopened_file
 

Functions

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< 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 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)
 
directory open_directory (directory const &dir, native_string_view directory_name)
 
native_string get_full_name (directory const &f)
 
void write_file (directory const &dir, native_string_view file_name, char const *file_data, uint32_t file_size)
 
std::optional< fileopen_file (unopened_file const &f)
 
native_string get_full_name (unopened_file const &f)
 
native_string get_file_name (unopened_file const &f)
 
file_contents view_contents (file const &f)
 
native_string get_full_name (file const &f)
 
directory get_or_create_save_game_directory ()
 
directory get_or_create_templates_directory ()
 
directory get_or_create_oos_directory ()
 
directory get_or_create_scenario_directory ()
 
directory get_or_create_settings_directory ()
 
directory get_or_create_data_dumps_directory ()
 
directory get_or_create_root_documents ()
 
native_string win1250_to_native (std::string_view data_in)
 
native_string utf8_to_native (std::string_view data_in)
 
std::string native_to_utf8 (native_string_view data_in)
 
std::string remove_double_backslashes (std::string_view data_in)
 
native_string correct_slashes (native_string_view path)
 
void make_directories (native_string const &path)
 
std::optional< native_stringget_path_to_file (directory const &dir, native_string_view file_name)
 

Function Documentation

◆ add_ignore_path()

void simple_fs::add_ignore_path ( file_system fs,
native_string_view  replaced_path 
)

Definition at line 387 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ add_relative_root()

void simple_fs::add_relative_root ( file_system fs,
native_string_view  root_path 
)

Definition at line 126 of file simple_fs_nix.cpp.

◆ add_root()

void simple_fs::add_root ( file_system fs,
native_string_view  root_path 
)

Definition at line 122 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ correct_slashes()

native_string simple_fs::correct_slashes ( native_string_view  path)

Definition at line 545 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ extract_state()

native_string simple_fs::extract_state ( file_system const &  fs)

Definition at line 155 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ get_file_name()

native_string simple_fs::get_file_name ( unopened_file const &  f)

Definition at line 407 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ get_full_name() [1/3]

native_string simple_fs::get_full_name ( directory const &  f)

Definition at line 415 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ get_full_name() [2/3]

native_string simple_fs::get_full_name ( file const &  f)

Definition at line 411 of file simple_fs_nix.cpp.

◆ get_full_name() [3/3]

native_string simple_fs::get_full_name ( unopened_file const &  f)

Definition at line 403 of file simple_fs_nix.cpp.

◆ get_or_create_data_dumps_directory()

directory simple_fs::get_or_create_data_dumps_directory ( )

Definition at line 496 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_or_create_oos_directory()

directory simple_fs::get_or_create_oos_directory ( )

Definition at line 489 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_or_create_root_documents()

directory simple_fs::get_or_create_root_documents ( )

Definition at line 475 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_or_create_save_game_directory()

directory simple_fs::get_or_create_save_game_directory ( )

Definition at line 468 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_or_create_scenario_directory()

directory simple_fs::get_or_create_scenario_directory ( )

Definition at line 503 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_or_create_settings_directory()

directory simple_fs::get_or_create_settings_directory ( )

Definition at line 461 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_or_create_templates_directory()

directory simple_fs::get_or_create_templates_directory ( )

Definition at line 482 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_path_to_file()

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

Definition at line 260 of file simple_fs_win.cpp.

◆ get_root()

directory simple_fs::get_root ( file_system const &  fs)

Definition at line 151 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ is_ignored_path()

bool simple_fs::is_ignored_path ( file_system const &  fs,
native_string_view  path 
)

Definition at line 395 of file simple_fs_nix.cpp.

◆ list_files()

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

Definition at line 202 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ list_roots()

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

Definition at line 391 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ list_subdirectories()

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

Definition at line 275 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ make_directories()

void simple_fs::make_directories ( native_string const &  path)

Definition at line 445 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ native_to_utf8()

std::string simple_fs::native_to_utf8 ( native_string_view  data_in)

Definition at line 526 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ open_directory()

directory simple_fs::open_directory ( directory const &  dir,
native_string_view  directory_name 
)

Definition at line 336 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ open_file() [1/2]

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

Definition at line 340 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ open_file() [2/2]

std::optional< file > simple_fs::open_file ( unopened_file const &  f)

Definition at line 109 of file simple_fs_nix.cpp.

◆ peek_file()

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

Definition at line 363 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ remove_double_backslashes()

std::string simple_fs::remove_double_backslashes ( std::string_view  data_in)

Definition at line 530 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

void simple_fs::reset ( file_system fs)

Definition at line 117 of file simple_fs_nix.cpp.

◆ restore_state()

void simple_fs::restore_state ( file_system fs,
native_string_view  data 
)

Definition at line 167 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ utf8_to_native()

native_string simple_fs::utf8_to_native ( std::string_view  data_in)

Definition at line 522 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ view_contents()

file_contents simple_fs::view_contents ( file const &  f)

Definition at line 441 of file simple_fs_nix.cpp.

Here is the caller graph for this function:

◆ win1250_to_native()

native_string simple_fs::win1250_to_native ( std::string_view  data_in)

Definition at line 510 of file simple_fs_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_file()

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

Definition at line 419 of file simple_fs_nix.cpp.

Here is the caller graph for this function: