![]() |
![]() |
![]() |
![]() |
||||
![]() |
![]() |
![]() |
![]() |
||||
|
#include <recls/cpp/fileentry.hpp>
example_cpp_1.cpp, example_cpp_2.cpp, and example_cpp_3.cpp.
State | |
operator boolean_type () const | |
Indicates the state of the instance, i.e. whether it is contains a valid recls_info_t or not. | |
bool | operator! () const |
Returns the logical inverse of the state of the instance, i.e. whether it is contains a valid recls_info_t or not. | |
Construction | |
FileEntry () | |
Default constructor. | |
FileEntry (FileEntry const &rhs) | |
Copy constructor. | |
~FileEntry () | |
Destructor. | |
FileEntry & | operator= (FileEntry const &rhs) |
Copy assignment operator. | |
Public Member Functions | |
Attributes | |
char_type const * | c_str () const |
Returns a pointer to the full path of the file entry, or the empty string. | |
size_t | length () const |
The length of the full path of the file entry. | |
string_t | GetPath () const |
Returns the full path of the file entry. | |
string_t | GetSearchDirectory () const |
Returns the directory (and drive) searched resulting in the file entry. | |
string_t | GetSearchRelativePath () const |
Returns the path of the file entry relative to the search directory. | |
string_t | GetDirectory () const |
Returns the directory of the file entry. | |
string_t | GetDirectoryPath () const |
Returns the directory (+ drive) of the file entry. | |
string_t | GetUNCDrive () const |
Returns the UNC drive component, if any, of the file entry's path. | |
DirectoryParts | GetDirectoryParts () const |
Returns the directory parts of the file entry. | |
string_t | GetFile () const |
Returns the file (filename + extension) of the file entry. | |
string_t | GetShortFile () const |
Returns the short form of the file (filename + extension) of the file entry. | |
string_t | GetFileName () const |
Returns the filename of the file entry. | |
string_t | GetFileExt () const |
Returns the file extension of the file entry. | |
recls_time_t | GetCreationTime () const |
Returns the creation time of the file entry. | |
recls_time_t | GetModificationTime () const |
Returns the modification time of the file entry. | |
recls_time_t | GetLastAccessTime () const |
Returns the last access time of the file entry. | |
recls_time_t | GetLastStatusChangeTime () const |
Returns the last statuc change time of the file entry. | |
recls_filesize_t | GetSize () const |
Returns the size of the file entry. | |
recls_bool_t | IsReadOnly () const |
Indicates whether the file entry is read-only. | |
recls_bool_t | IsDirectory () const |
Indicates whether the file entry is a directory. | |
recls_bool_t | IsLink () const |
Indicates whether the file entry is a link. | |
recls_bool_t | IsUNC () const |
Indicates whether the file entry's path is UNC. | |
recls_bool_t | Exists () const |
Indicates whether the file entry exists. |
FileEntry | ( | ) |
Default constructor.
~FileEntry | ( | ) |
Destructor.
operator boolean_type | ( | ) | const [inline] |
Indicates the state of the instance, i.e. whether it is contains a valid recls_info_t or not.
bool operator! | ( | ) | const |
Returns the logical inverse of the state of the instance, i.e. whether it is contains a valid recls_info_t or not.
char_type const* c_str | ( | ) | const |
Returns a pointer to the full path of the file entry, or the empty string.
size_t length | ( | ) | const |
The length of the full path of the file entry.
string_t GetPath | ( | ) | const |
string_t GetSearchDirectory | ( | ) | const |
Returns the directory (and drive) searched resulting in the file entry.
string_t GetSearchRelativePath | ( | ) | const |
string_t GetDirectory | ( | ) | const |
string_t GetDirectoryPath | ( | ) | const |
string_t GetUNCDrive | ( | ) | const |
Returns the UNC drive component, if any, of the file entry's path.
DirectoryParts GetDirectoryParts | ( | ) | const |
Returns the directory parts of the file entry.
string_t GetFile | ( | ) | const |
string_t GetShortFile | ( | ) | const |
Returns the short form of the file (filename + extension) of the file entry.
string_t GetFileName | ( | ) | const |
string_t GetFileExt | ( | ) | const |
recls_time_t GetCreationTime | ( | ) | const |
Returns the creation time of the file entry.
recls_time_t GetModificationTime | ( | ) | const |
Returns the modification time of the file entry.
recls_time_t GetLastAccessTime | ( | ) | const |
Returns the last access time of the file entry.
recls_time_t GetLastStatusChangeTime | ( | ) | const |
Returns the last statuc change time of the file entry.
recls_filesize_t GetSize | ( | ) | const |
recls_bool_t IsReadOnly | ( | ) | const |
recls_bool_t IsDirectory | ( | ) | const |
recls_bool_t IsLink | ( | ) | const |
recls_bool_t IsUNC | ( | ) | const |
Indicates whether the file entry's path is UNC.
recls_bool_t Exists | ( | ) | const |
Indicates whether the file entry exists.
|
recls Library documentation © Synesis Software Pty Ltd, 2001-2006 |