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

#include "dir-ops.h"

Public Member Functions

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

Static Public Member Functions

static unsigned int max_name_length ()
 

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 ( )
inline

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

Member Function Documentation

◆ close()

bool dir_entry::close ( )

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

References octave_closedir_wrapper().

Referenced by get_dirlist(), and open().

◆ error()

std::string dir_entry::error ( ) 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 ( )
static

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

References octave_name_max_wrapper().

◆ ok()

bool dir_entry::ok ( ) const
inline

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

Referenced by read().

◆ open()

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

◆ 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 ( )

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

References octave_readdir_wrapper(), ok(), u8_from_wstring(), and u8_to_wstring().

Referenced by get_dirlist().


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