libt3widget
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules
List of all members | Public Member Functions | Public Attributes
t3_widget::file_name_list_t::file_name_entry_t Class Reference

Class representing a single file. More...

Public Member Functions

 file_name_entry_t (void)
 Make a new file_name_entry_t. More...
 
 file_name_entry_t (const char *_name, const std::string &_utf8_name, bool _is_dir)
 Make a new file_name_entry_t. More...
 
 file_name_entry_t (const file_name_entry_t &other)
 Construct a copy of an existing file_name_entry_t. More...
 

Public Attributes

std::string file_name_entry_t::* display_name
 Pointer to member to the name to use for dispay purposes. More...
 
bool is_dir
 Boolean indicating whether this name represents a directory. More...
 
std::string name
 The name of the file as written on disk. More...
 
std::string utf8_name
 The name of the file converted to UTF-8 (or empty if the same as name). More...
 

Detailed Description

Class representing a single file.

Constructor & Destructor Documentation

t3_widget::file_name_list_t::file_name_entry_t::file_name_entry_t ( void  )

Make a new file_name_entry_t.

Implemented specifically to allow use in std::vector<file_name_entry_t>.

t3_widget::file_name_list_t::file_name_entry_t::file_name_entry_t ( const char *  _name,
const std::string &  _utf8_name,
bool  _is_dir 
)

Make a new file_name_entry_t.

t3_widget::file_name_list_t::file_name_entry_t::file_name_entry_t ( const file_name_entry_t other)

Construct a copy of an existing file_name_entry_t.

Member Data Documentation

std::string file_name_entry_t::* t3_widget::file_name_list_t::file_name_entry_t::display_name

Pointer to member to the name to use for dispay purposes.

bool t3_widget::file_name_list_t::file_name_entry_t::is_dir

Boolean indicating whether this name represents a directory.

std::string t3_widget::file_name_list_t::file_name_entry_t::name

The name of the file as written on disk.

std::string t3_widget::file_name_list_t::file_name_entry_t::utf8_name

The name of the file converted to UTF-8 (or empty if the same as name).