23 #if !defined (octave_dir_ops_h)
24 #define octave_dir_ops_h 1
37 : name (n), dir (0), fail (false), errmsg ()
44 : name (d.name), dir (d.dir), fail (d.fail), errmsg (d.errmsg) { }
61 bool open (
const std::string& = std::string ());
67 bool ok (
void)
const {
return dir && ! fail; }
69 operator bool ()
const {
return ok (); }
71 std::string
error (
void)
const {
return ok () ? std::string () : errmsg; }