Implementation of the file_list_t interface.
More...
Public Member Functions |
virtual const std::string * | get_fs_name (size_t idx) const |
| Get the file-system name for a particular idx .
|
virtual bool | is_dir (size_t idx) const |
| Retrieve whether the file at index idx in the list is a directory.
|
int | load_directory (std::string *dir_name) |
| Load the contents of dir_name into this list.
|
file_name_list_t & | operator= (const file_name_list_t &other) |
| Compare this list with other .
|
virtual const std::string * | operator[] (size_t idx) const |
| Retrieve element idx .
|
virtual size_t | size (void) const |
| Retrieve the size of the list.
|
Protected Attributes |
std::vector< file_name_entry_t > | files |
| Vector holding a list of all the files in a directory.
|
Detailed Description
Implementation of the file_list_t interface.
Member Function Documentation
const string * t3_widget::file_name_list_t::get_fs_name |
( |
size_t |
idx | ) |
const |
|
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.
Implements t3_widget::file_list_t.
bool t3_widget::file_name_list_t::is_dir |
( |
size_t |
idx | ) |
const |
|
virtual |
int t3_widget::file_name_list_t::load_directory |
( |
std::string * |
dir_name | ) |
|
Load the contents of dir_name
into this list.
Compare this list with other
.
const string * t3_widget::file_name_list_t::operator[] |
( |
size_t |
idx | ) |
const |
|
virtual |
size_t t3_widget::file_name_list_t::size |
( |
void |
| ) |
const |
|
virtual |
Member Data Documentation
Vector holding a list of all the files in a directory.