#include <entry.h>
Public Types | |
typedef unsigned int | mode_type |
type for the entry mode | |
typedef unsigned long | size_type |
type for the entry size | |
typedef std::time_t | time_type |
type for the entry times | |
enum | type { type_pipe, type_character, type_directory, type_block, type_regular, type_symlink, type_socket } |
all possible types that an entry might be More... | |
enum | mode_bits { mode_user_read = 0x000100, mode_user_write = 0x000080, mode_user_execute = 0x000040, mode_group_read = 0x000020, mode_group_write = 0x000010, mode_group_execute = 0x000008, mode_other_read = 0x000004, mode_other_write = 0x000002, mode_other_execute = 0x000001 } |
enum to hold the mode bits More... | |
Public Methods | |
entry (const char *name) | |
entry (const entry &other) | |
entry & | operator= (const entry &other) |
void | swap (entry &other) |
~entry (void) | |
const char * | get_name (void) const |
const char * | get_path (void) const |
type | get_type (void) const |
mode_type | get_mode (void) const |
time_type | get_mtime (void) const |
time_type | get_atime (void) const |
size_type | get_size (void) const |
bool | operator! (void) const |
|
|
all possible types that an entry might be
|
|
sord::entry class constructor. Given the name/path of a directory entry, the constructor will load information about that entry.
|
|
Copy information about an entry from an existing entry.
|
|
sord::entry class destructor
|
|
Get the time that the entry was last accessed.
|
|
Get the entry mode.
|
|
Get the time that the entry was last modified.
|
|
Get the name of this directory entry. The returned string contains only the name of the entry with no path information.
|
|
Get the path and name for this entry. The returned string contains the name of the entry with absolute or relative path information.
|
|
Get the size of the entry in bytes.
|
|
Get the entry type.
|
|
Check to see if the entry is valid.
|
|
Assignment operator. Reset this entries information to that of the other entry.
|
|
Swap this entry with another one.
|