GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
file_ops Struct Reference

#include "file-ops.h"

Collaboration diagram for file_ops:
Collaboration graph
[legend]

Public Types

typedef std::string(* tilde_expansion_hook )(const std::string &)

Public Member Functions

 file_ops (char dir_sep_char_arg=0, const std::string &dir_sep_str_arg=std::string("/"), const std::string &dir_sep_chars_arg=std::string("/"))

Static Public Member Functions

static std::string concat (const std::string &, const std::string &)
static char dir_sep_char (void)
static std::string dir_sep_chars (void)
static std::string dir_sep_str (void)
static bool is_dir_sep (char c)
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 = default_prefixes
static string_vector tilde_additional_suffixes = default_suffixes
static tilde_expansion_hook tilde_expansion_failure_hook = 0
static tilde_expansion_hook tilde_expansion_preexpansion_hook = 0

Private Member Functions

 file_ops (const file_ops &)
file_opsoperator= (const file_ops &)

Static Private Member Functions

static void cleanup_instance (void)
static bool instance_ok (void)

Private Attributes

char xdir_sep_char
std::string xdir_sep_chars
std::string xdir_sep_str

Static Private Attributes

static file_opsinstance = 0

Detailed Description

Definition at line 32 of file file-ops.h.

Member Typedef Documentation

typedef std::string(* file_ops::tilde_expansion_hook)(const std::string &)

Definition at line 48 of file file-ops.h.

Constructor & Destructor Documentation

file_ops::file_ops ( char  dir_sep_char_arg = 0,
const std::string &  dir_sep_str_arg = std::string ("/"),
const std::string &  dir_sep_chars_arg = std::string ("/") 
)
inline

Definition at line 42 of file file-ops.h.

Referenced by instance_ok().

file_ops::file_ops ( const file_ops )
private

Member Function Documentation

static void file_ops::cleanup_instance ( void  )
inlinestaticprivate

Definition at line 102 of file file-ops.h.

Referenced by instance_ok().

std::string file_ops::concat ( const std::string &  dir,
const std::string &  file 
)
static
static char file_ops::dir_sep_char ( void  )
inlinestatic

Definition at line 58 of file file-ops.h.

Referenced by concat(), and subst_octave_home().

static std::string file_ops::dir_sep_chars ( void  )
inlinestatic
static std::string file_ops::dir_sep_str ( void  )
inlinestatic
bool file_ops::instance_ok ( void  )
staticprivate

Definition at line 56 of file file-ops.cc.

References singleton_cleanup_list::add(), cleanup_instance(), file_ops(), and instance.

static bool file_ops::is_dir_sep ( char  c)
inlinestatic
file_ops& file_ops::operator= ( const file_ops )
private
static std::string file_ops::tail ( const std::string &  path)
inlinestatic

Definition at line 86 of file file-ops.h.

std::string file_ops::tilde_expand ( const std::string &  name)
static
string_vector file_ops::tilde_expand ( const string_vector names)
static

Definition at line 341 of file file-ops.cc.

References Array< T >::length(), string_vector::resize(), and tilde_expand().

Member Data Documentation

file_ops * file_ops::instance = 0
staticprivate

Definition at line 100 of file file-ops.h.

Referenced by instance_ok().

string_vector file_ops::tilde_additional_prefixes = default_prefixes
static

Definition at line 54 of file file-ops.h.

Referenced by tilde_find_prefix().

string_vector file_ops::tilde_additional_suffixes = default_suffixes
static

Definition at line 56 of file file-ops.h.

Referenced by tilde_find_suffix().

file_ops::tilde_expansion_hook file_ops::tilde_expansion_failure_hook = 0
static

Definition at line 52 of file file-ops.h.

Referenced by tilde_expand_word().

file_ops::tilde_expansion_hook file_ops::tilde_expansion_preexpansion_hook = 0
static

Definition at line 50 of file file-ops.h.

Referenced by tilde_expand_word().

char file_ops::xdir_sep_char
private

Definition at line 112 of file file-ops.h.

std::string file_ops::xdir_sep_chars
private

Definition at line 114 of file file-ops.h.

std::string file_ops::xdir_sep_str
private

Definition at line 113 of file file-ops.h.


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