comparison src/load-path.h @ 5864:e884ab4f29ee

[project @ 2006-06-22 00:57:27 by jwe]
author jwe
date Thu, 22 Jun 2006 00:57:28 +0000
parents 07dd13bfc0ba
children b305874f50ef
comparison
equal deleted inserted replaced
5863:4c16f3104aa5 5864:e884ab4f29ee
102 { 102 {
103 return instance_ok () ? 103 return instance_ok () ?
104 instance->do_find_fcn (fcn, OCT_FILE) : std::string (); 104 instance->do_find_fcn (fcn, OCT_FILE) : std::string ();
105 } 105 }
106 106
107 static std::string find_mex_file (const std::string& fcn)
108 {
109 return instance_ok () ?
110 instance->do_find_fcn (fcn, MEX_FILE) : std::string ();
111 }
112
107 static std::string find_file (const std::string& file) 113 static std::string find_file (const std::string& file)
108 { 114 {
109 return instance_ok () 115 return instance_ok ()
110 ? instance->do_find_file (file) : std::string (); 116 ? instance->do_find_file (file) : std::string ();
111 } 117 }
168 174
169 private: 175 private:
170 176
171 static const int M_FILE = 1; 177 static const int M_FILE = 1;
172 static const int OCT_FILE = 2; 178 static const int OCT_FILE = 2;
179 static const int MEX_FILE = 4;
173 180
174 class dir_info 181 class dir_info
175 { 182 {
176 public: 183 public:
177 184
300 bool do_remove (const std::string& dir); 307 bool do_remove (const std::string& dir);
301 308
302 void do_update (void) const; 309 void do_update (void) const;
303 310
304 std::string do_find_fcn (const std::string& fcn, 311 std::string do_find_fcn (const std::string& fcn,
305 int type = M_FILE | OCT_FILE) const; 312 int type = M_FILE | OCT_FILE | MEX_FILE) const;
306 313
307 std::string do_find_file (const std::string& file) const; 314 std::string do_find_file (const std::string& file) const;
308 315
309 std::string do_find_first_of (const string_vector& files) const; 316 std::string do_find_first_of (const string_vector& files) const;
310 317