GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
octave::sys::dir_entry Class Reference

#include "dir-ops.h"

Collaboration diagram for octave::sys::dir_entry:
Collaboration graph

Public Member Functions

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

Static Public Member Functions

static unsigned int max_name_length (void)

Private Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

octave::sys::dir_entry::dir_entry ( const std::string n = "")

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

References octave_value_list::empty(), and name.

octave::sys::dir_entry::dir_entry ( const dir_entry d)

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

octave::sys::dir_entry::~dir_entry ( void  )

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

Member Function Documentation

bool octave::sys::dir_entry::close ( void  )

Definition at line 90 of file

References dir, octave_closedir_wrapper(), and retval.

Referenced by open(), and octave::sys::recursive_rmdir().

std::string octave::sys::dir_entry::error ( void  ) const
unsigned int octave::sys::dir_entry::max_name_length ( void  )

Definition at line 105 of file

References octave_name_max_wrapper().

Referenced by kpse_truncate_filename().

bool octave::sys::dir_entry::ok ( void  ) const

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

Referenced by read().

bool octave::sys::dir_entry::open ( const std::string n = "")
octave::sys::dir_entry::operator bool ( ) const

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

dir_entry& octave::sys::dir_entry::operator= ( const dir_entry d)

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

References dir, errmsg, fail, name, and name.

string_vector octave::sys::dir_entry::read ( void  )

Member Data Documentation

void* octave::sys::dir_entry::dir

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

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

std::string octave::sys::dir_entry::errmsg

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

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

bool octave::sys::dir_entry::fail

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

Referenced by operator=().

std::string octave::sys::dir_entry::name

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

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

The documentation for this class was generated from the following files: