Project Alice
Loading...
Searching...
No Matches
simple_fs.hpp File Reference
#include "native_types_nix.hpp"
#include <stdint.h>
#include <vector>
#include <optional>
#include <map>
#include "simple_fs_types_nix.hpp"
Include dependency graph for simple_fs.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  simple_fs::file_contents
 

Namespaces

namespace  simple_fs
 

Functions

void simple_fs::reset (file_system &fs)
 
void simple_fs::add_root (file_system &fs, native_string_view root_path)
 
void simple_fs::add_relative_root (file_system &fs, native_string_view root_path)
 
directory simple_fs::get_root (file_system const &fs)
 
native_string simple_fs::extract_state (file_system const &fs)
 
void simple_fs::restore_state (file_system &fs, native_string_view data)
 
std::vector< unopened_file > simple_fs::list_files (directory const &dir, native_char const *extension)
 
std::vector< directory > simple_fs::list_subdirectories (directory const &dir)
 
std::optional< file > simple_fs::open_file (directory const &dir, native_string_view file_name)
 
std::optional< unopened_file > simple_fs::peek_file (directory const &dir, native_string_view file_name)
 
void simple_fs::add_ignore_path (file_system &fs, native_string_view replaced_path)
 
std::vector< native_stringsimple_fs::list_roots (file_system const &fs)
 
bool simple_fs::is_ignored_path (file_system const &fs, native_string_view path)
 
directory simple_fs::open_directory (directory const &dir, native_string_view directory_name)
 
native_string simple_fs::get_full_name (directory const &f)
 
void simple_fs::write_file (directory const &dir, native_string_view file_name, char const *file_data, uint32_t file_size)
 
std::optional< file > simple_fs::open_file (unopened_file const &f)
 
native_string simple_fs::get_full_name (unopened_file const &f)
 
native_string simple_fs::get_file_name (unopened_file const &f)
 
file_contents simple_fs::view_contents (file const &f)
 
native_string simple_fs::get_full_name (file const &f)
 
directory simple_fs::get_or_create_save_game_directory ()
 
directory simple_fs::get_or_create_templates_directory ()
 
directory simple_fs::get_or_create_oos_directory ()
 
directory simple_fs::get_or_create_scenario_directory ()
 
directory simple_fs::get_or_create_settings_directory ()
 
directory simple_fs::get_or_create_data_dumps_directory ()
 
directory simple_fs::get_or_create_root_documents ()
 
native_string simple_fs::win1250_to_native (std::string_view data_in)
 
native_string simple_fs::utf8_to_native (std::string_view data_in)
 
std::string simple_fs::native_to_utf8 (native_string_view data_in)
 
std::string simple_fs::remove_double_backslashes (std::string_view data_in)
 
native_string simple_fs::correct_slashes (native_string_view path)