Public Member Functions | Private Attributes

dir_entry Class Reference

#include "dir-ops.h"

Collaboration diagram for dir_entry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 dir_entry (const std::string &n=std::string())
 dir_entry (const dir_entry &d)
 ~dir_entry (void)
void close (void)
std::string error (void) const
bool ok (void) const
bool open (const std::string &=std::string())
 operator bool () const
dir_entryoperator= (const dir_entry &d)
string_vector read (void)

Private Attributes

void * dir
std::string errmsg
bool fail
std::string name

Detailed Description

Definition at line 30 of file dir-ops.h.


Constructor & Destructor Documentation

dir_entry::dir_entry ( const std::string &  n = std::string ()  )  [inline]

Definition at line 36 of file dir-ops.h.

dir_entry::dir_entry ( const dir_entry d  )  [inline]

Definition at line 43 of file dir-ops.h.

dir_entry::~dir_entry ( void   )  [inline]

Definition at line 59 of file dir-ops.h.


Member Function Documentation

void dir_entry::close ( void   ) 

Definition at line 95 of file dir-ops.cc.

References dir.

Referenced by octave_recursive_rmdir(), and open().

std::string dir_entry::error ( void   )  const [inline]
bool dir_entry::ok ( void   )  const [inline]

Definition at line 67 of file dir-ops.h.

Referenced by read().

bool dir_entry::open ( const std::string &  n = std::string ()  ) 

Definition at line 43 of file dir-ops.cc.

References close(), dir, errmsg, fail, name, and file_ops::tilde_expand().

dir_entry::operator bool ( void   )  const [inline]

Definition at line 69 of file dir-ops.h.

dir_entry& dir_entry::operator= ( const dir_entry d  )  [inline]

Definition at line 46 of file dir-ops.h.

References dir, errmsg, fail, and name.

string_vector dir_entry::read ( void   ) 

Definition at line 70 of file dir-ops.cc.

References dir, dirent, and ok().

Referenced by DEFUN(), genpath(), get_fcn_files(), load_path::dir_info::get_file_list(), and octave_recursive_rmdir().


Member Data Documentation

void* dir_entry::dir [private]

Definition at line 81 of file dir-ops.h.

Referenced by close(), open(), operator=(), and read().

std::string dir_entry::errmsg [private]

Definition at line 87 of file dir-ops.h.

Referenced by open(), and operator=().

bool dir_entry::fail [private]

Definition at line 84 of file dir-ops.h.

Referenced by open(), and operator=().

std::string dir_entry::name [private]

Definition at line 76 of file dir-ops.h.

Referenced by open(), and operator=().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines