23 #if ! defined (octave_pathsearch_h)
24 #define octave_pathsearch_h 1
26 #include "octave-config.h"
40 : m_orig_path (
s), m_default_path (
d), m_initialized (
false),
41 m_expanded_path (), m_path_elements ()
43 if (! m_orig_path.empty ())
48 : m_orig_path (dp.m_orig_path),
49 m_default_path (dp.m_default_path),
50 m_initialized (dp.m_initialized),
51 m_expanded_path (dp.m_expanded_path),
52 m_path_elements (dp.m_path_elements)
73 m_initialized =
false;
78 std::list<std::string> elements (
void);
80 std::list<std::string> all_directories (
void);
86 std::list<std::string> find_all (
const std::string&);
90 std::list<std::string>
91 find_all_first_of (
const std::list<std::string>& names);
95 m_initialized =
false;
101 return static_members::path_sep_char ();
106 static_members::path_sep_char (c);
111 return static_members::path_sep_str ();
149 return instance_ok () ? instance->xpath_sep_char : 0;
156 instance->xpath_sep_char =
c;
163 return instance_ok () ? instance->xpath_sep_str :
"";
172 static bool instance_ok (
void);
187 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS)
189 OCTAVE_DEPRECATED (
"use 'octave::directory_path' instead")
190 typedef
octave::directory_path dir_path;
Octave interface to the compression and uncompression libraries.
static bool is_path_sep(char c)
static std::string path_sep_str(void)
std::string m_expanded_path
static static_members * instance
static char path_sep_char(void)
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
void set(const std::string &s)
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
std::string xpath_sep_str
static void cleanup_instance(void)
std::string find(const std::string &nm)
static char path_sep_char(void)
std::string m_default_path
static std::list< std::string > find_first_of(const std::string &path, const std::list< std::string > &names, bool all)
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
directory_path(const std::string &s="", const std::string &d="")
static std::string path_sep_str(void)
std::list< std::string > m_path_elements
directory_path(const directory_path &dp)
static void path_sep_char(char c)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
static void path_sep_char(char c)