GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "file-ops.h"
Public Types | |
typedef std::string(* | tilde_expansion_hook )(const std::string &) |
Static Public Member Functions | |
static std::string | concat (const std::string &, const std::string &) |
static char | dev_sep_char (void) |
static char | dir_sep_char (void) |
static std::string | dir_sep_chars (void) |
static std::string | dir_sep_str (void) |
static std::string | dirname (const std::string &path) |
static bool | is_dev_sep (char c) |
static bool | is_dir_sep (char c) |
static std::string | native_separator_path (const std::string &path) |
static std::string | tail (const std::string &path) |
static std::string | tilde_expand (const std::string &) |
static string_vector | tilde_expand (const string_vector &) |
Static Public Attributes | |
static string_vector | tilde_additional_prefixes |
static string_vector | tilde_additional_suffixes |
static tilde_expansion_hook | tilde_expansion_failure_hook = 0 |
static tilde_expansion_hook | tilde_expansion_preexpansion_hook = 0 |
Protected Member Functions | |
file_ops (char dev_sep_char_arg=0, char dir_sep_char_arg=0, const std::string &dir_sep_str_arg=std::string("/"), const std::string &dir_sep_chars_arg=std::string("/")) | |
Private Member Functions | |
file_ops (const file_ops &) | |
file_ops & | operator= (const file_ops &) |
Static Private Member Functions | |
static void | cleanup_instance (void) |
static bool | instance_ok (void) |
Private Attributes | |
char | m_dev_sep_char |
char | m_dir_sep_char |
std::string | m_dir_sep_chars |
std::string | m_dir_sep_str |
Static Private Attributes | |
static file_ops * | instance = 0 |
Definition at line 38 of file file-ops.h.
typedef std::string(* octave::sys::file_ops::tilde_expansion_hook)(const std::string &) |
Definition at line 58 of file file-ops.h.
|
inlineprotected |
Definition at line 48 of file file-ops.h.
|
private |
|
inlinestaticprivate |
Definition at line 132 of file file-ops.h.
|
static |
Definition at line 375 of file file-ops.cc.
References dir_sep_char, and file.
Referenced by load_path::loader::add_to_fcn_map(), load_path::loader::add_to_method_map(), file_editor_tab::bp_info::bp_info(), default_history_file(), load_path::loader::display(), load_path::do_find_all_first_of(), load_path::do_find_file(), load_path::do_find_first_of(), execute_pkg_add_or_del(), load_path::loader::find_fcn(), load_path::loader::find_method(), load_path::loader::find_private_fcn(), genpath(), load_path::dir_info::get_file_list(), load_path::dir_info::get_method_file_map(), load_path::loader::move_method_map(), load_path::loader::remove_method_map(), and octave::xzip().
|
inlinestatic |
Definition at line 68 of file file-ops.h.
|
inlinestatic |
Definition at line 75 of file file-ops.h.
Referenced by get_user_code(), subst_octave_home(), and octave::sys::tempnam().
|
inlinestatic |
Definition at line 85 of file file-ops.h.
Referenced by file_editor_tab::bp_info::bp_info(), octave::sys::env::do_base_pathname(), load_path::do_find_all_first_of(), load_path::do_find_dir(), load_path::do_find_file(), load_path::do_find_first_of(), load_path::do_find_matching_dirs(), octave::sys::env::do_make_absolute(), octave::sys::env::do_set_program_name(), Fdrawnow(), symbol_table::fcn_info::fcn_info_rep::find_autoload(), find_file_to_load(), octave::base_parser::frob_function(), symbol_table::fcn_info::fcn_info_rep::load_private_function(), looks_like_struct(), octave::base_parser::make_classdef(), read_mat5_binary_element(), and octave_fcn_handle::set_fcn().
|
inlinestatic |
Definition at line 80 of file file-ops.h.
Referenced by default_qt_settings_file(), load_path::do_find_dir(), load_path::do_find_matching_dirs(), octave::sys::env::do_get_home_directory(), octave::sys::env::do_make_absolute(), F__ftp_mget__(), symbol_table::find_function(), find_private_file(), symbol_table::find_submethod(), get_help_from_file(), initial_class_path(), initial_java_dir(), initialize_jvm(), load_fcn_from_file(), octave::base_url_transfer::mget_directory(), octave::base_url_transfer::mput_directory(), octave::sys::recursive_rmdir(), and set_built_in_docstrings_file().
|
inlinestatic |
Definition at line 105 of file file-ops.h.
|
staticprivate |
Definition at line 61 of file file-ops.cc.
References singleton_cleanup_list::add(), retval, and string.
|
static |
Definition at line 286 of file file-ops.cc.
|
inlinestatic |
Definition at line 90 of file file-ops.h.
Referenced by octave::sys::env::do_absolute_pathname(), octave::sys::env::do_chdir(), load_path::do_find_dir(), load_path::do_find_matching_dirs(), octave::sys::env::do_make_absolute(), octave::sys::env::do_polite_directory_format(), octave::sys::env::do_rooted_relative_pathname(), octave::sys::isolate_tilde_prefix(), octave::sys::env::pathname_backup(), strip_trailing_separators(), octave::sys::tilde_expand_word(), octave::sys::tilde_find_suffix(), and octave::sys::file_stat::update_internal().
|
static |
Definition at line 385 of file file-ops.cc.
References dir_sep_char, octave_value::length(), retval, and string.
Referenced by G__fltk_uigetfile__().
|
inlinestatic |
Definition at line 113 of file file-ops.h.
|
static |
Definition at line 301 of file file-ops.cc.
References result, start, string, octave::sys::tilde_expand_word(), octave::sys::tilde_find_prefix(), and octave::sys::tilde_find_suffix().
Referenced by octave::sys::chdir(), load_path::do_add(), load_path::do_remove(), F__ftp_mput__(), load_path::find_dir_info(), Freaddir(), initial_class_path(), octave_change_to_directory(), octave::sys::dir_entry::open(), read_classpath_txt(), octave::command_editor::read_init_file(), octave::command_history::set_file(), octave::sys::file_stat::update_internal(), and octave::xzip().
|
static |
Definition at line 360 of file file-ops.cc.
References Array< T >::numel(), string_vector::resize(), and retval.
|
staticprivate |
Definition at line 130 of file file-ops.h.
|
private |
Definition at line 142 of file file-ops.h.
|
private |
Definition at line 144 of file file-ops.h.
|
private |
Definition at line 146 of file file-ops.h.
|
private |
Definition at line 145 of file file-ops.h.
|
static |
Definition at line 64 of file file-ops.h.
Referenced by octave::sys::tilde_find_prefix().
|
static |
Definition at line 66 of file file-ops.h.
Referenced by octave::sys::tilde_find_suffix().
|
static |
Definition at line 62 of file file-ops.h.
Referenced by octave::sys::tilde_expand_word().
|
static |
Definition at line 60 of file file-ops.h.
Referenced by octave::sys::tilde_expand_word().