GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::sys::dir_entry Class Reference

#include "dir-ops.h"

Collaboration diagram for octave::sys::dir_entry:

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

◆ dir_entry() [1/2]

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

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

References name.

◆ dir_entry() [2/2]

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

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

◆ ~dir_entry()

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

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

Member Function Documentation

◆ close()

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

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

References dir, octave_closedir_wrapper(), and retval.

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

◆ error()

std::string octave::sys::dir_entry::error ( void  ) const
inline

◆ max_name_length()

unsigned int octave::sys::dir_entry::max_name_length ( void  )
static

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

References octave_name_max_wrapper().

Referenced by kpse_truncate_filename().

◆ ok()

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

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

Referenced by read().

◆ open()

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

◆ operator bool()

octave::sys::dir_entry::operator bool ( ) const
inline

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

◆ operator=()

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

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

References d, and name.

◆ read()

Member Data Documentation

◆ dir

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

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

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

◆ errmsg

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

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

Referenced by open().

◆ fail

bool octave::sys::dir_entry::fail
private

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

◆ name

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

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

Referenced by open().


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