Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes

file_ops Struct Reference

#include "file-ops.h"

Collaboration diagram for file_ops:
Collaboration graph
[legend]

List of all members.

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 string_vector tilde_expand (const string_vector &)
static std::string tilde_expand (const std::string &)

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   )  [inline, static, private]

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   )  [inline, static]

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   )  [inline, static]
static std::string file_ops::dir_sep_str ( void   )  [inline, static]
bool file_ops::instance_ok ( void   )  [static, private]

Definition at line 55 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  )  [inline, static]
file_ops& file_ops::operator= ( const file_ops  )  [private]
static std::string file_ops::tail ( const std::string &  path  )  [inline, static]

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

string_vector file_ops::tilde_expand ( const string_vector names  )  [static]

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

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

std::string file_ops::tilde_expand ( const std::string &  name  )  [static]

Member Data Documentation

file_ops * file_ops::instance = 0 [static, private]

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

Referenced by instance_ok().

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

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

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

Referenced by tilde_expand_word().

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

Referenced by tilde_expand_word().

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:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines