libt3widget
List of all members | Public Member Functions
t3_widget::file_list_t Class Referenceabstract

Abstract base class for file lists. More...

Inheritance diagram for t3_widget::file_list_t:
t3_widget::string_list_base_t t3_widget::list_base_t t3_widget::filtered_list_internal_t< file_list_t > t3_widget::file_name_list_t t3_widget::filtered_list_t< file_list_t > t3_widget::filtered_file_list_t

Public Member Functions

virtual const std::string * get_fs_name (size_t idx) const =0
 Get the file-system name for a particular idx. More...
 
virtual bool is_dir (size_t idx) const =0
 Retrieve whether the file at index idx in the list is a directory. More...
 
- Public Member Functions inherited from t3_widget::list_base_t
virtual const std::string * operator[] (size_t idx) const =0
 Retrieve element idx. More...
 
virtual size_t size (void) const =0
 Retrieve the size of the list. More...
 

Detailed Description

Abstract base class for file lists.

Member Function Documentation

virtual const std::string* t3_widget::file_list_t::get_fs_name ( size_t  idx) const
pure virtual

Get the file-system name for a particular idx.

The file-system name is the name of the file as it is written in the file system. This is opposed to the name retrieved by operator[] which has been converted to UTF-8.

Implemented in t3_widget::filtered_file_list_t, and t3_widget::file_name_list_t.

virtual bool t3_widget::file_list_t::is_dir ( size_t  idx) const
pure virtual

Retrieve whether the file at index idx in the list is a directory.

Implemented in t3_widget::filtered_file_list_t, and t3_widget::file_name_list_t.