GNU Octave  6.2.0
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 dir_entry &d)
 
 dir_entry (const std::string &n="")
 
 ~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 39 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 51 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 58 of file dir-ops.h.

◆ ~dir_entry()

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

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

Member Function Documentation

◆ close()

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

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

References dir, octave_closedir_wrapper(), and retval.

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

◆ error()

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

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

Referenced by octave::sys::get_dirlist().

◆ max_name_length()

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

Definition at line 108 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 82 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 84 of file dir-ops.h.

◆ operator=()

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

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

References d, and name.

◆ read()

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

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

References dir, octave_readdir_wrapper(), ok(), and retval.

Referenced by octave::sys::get_dirlist().

Member Data Documentation

◆ dir

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

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

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

◆ errmsg

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

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

Referenced by open().

◆ fail

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

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

◆ name

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

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

Referenced by open().


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