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

#include "dir-ops.h"

Collaboration diagram for 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 * m_dir
 
std::string m_errmsg
 
bool m_fail
 
std::string m_name
 

Detailed Description

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

Constructor & Destructor Documentation

◆ dir_entry() [1/2]

dir_entry::dir_entry ( const std::string &  n = "")
inline

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

◆ dir_entry() [2/2]

dir_entry::dir_entry ( const dir_entry d)
inline

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

◆ ~dir_entry()

dir_entry::~dir_entry ( void  )
inline

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

Member Function Documentation

◆ close()

bool dir_entry::close ( void  )

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

References m_dir, and octave_closedir_wrapper().

Referenced by get_dirlist(), and open().

◆ error()

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

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

Referenced by get_dirlist().

◆ max_name_length()

unsigned int dir_entry::max_name_length ( void  )
static

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

References octave_name_max_wrapper().

◆ ok()

bool dir_entry::ok ( void  ) const
inline

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

Referenced by read().

◆ open()

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

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

References close(), m_dir, m_errmsg, m_name, n, octave_opendir_wrapper(), and tilde_expand().

◆ operator bool()

dir_entry::operator bool ( ) const
inline

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

◆ operator=()

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

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

References d.

◆ read()

string_vector dir_entry::read ( void  )

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

References m_dir, octave_readdir_wrapper(), and ok().

Referenced by get_dirlist().

Member Data Documentation

◆ m_dir

void* dir_entry::m_dir
private

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

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

◆ m_errmsg

std::string dir_entry::m_errmsg
private

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

Referenced by open().

◆ m_fail

bool dir_entry::m_fail
private

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

◆ m_name

std::string dir_entry::m_name
private

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

Referenced by open().


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