#include <directory.h>
Definition at line 91 of file directory.h.
◆ DirectoryListing()
dart::bin::DirectoryListing::DirectoryListing |
( |
Namespace * |
namespc, |
|
|
const char * |
dir_name, |
|
|
bool |
recursive, |
|
|
bool |
follow_links |
|
) |
| |
|
inline |
Definition at line 93 of file directory.h.
98 top_(nullptr),
99 error_(false),
102 if (!path_buffer_.
Add(dir_name)) {
103 error_ = true;
104 }
105 Push(
new DirectoryListingEntry(
nullptr));
106 }
void Push(DirectoryListingEntry *directory)
bool follow_links() const
Namespace * namespc() const
bool Add(const char *name)
◆ ~DirectoryListing()
virtual dart::bin::DirectoryListing::~DirectoryListing |
( |
| ) |
|
|
inlinevirtual |
◆ CurrentPath()
const char * dart::bin::DirectoryListing::CurrentPath |
( |
| ) |
|
|
inline |
Definition at line 141 of file directory.h.
const char * AsScopedString() const
◆ error()
bool dart::bin::DirectoryListing::error |
( |
| ) |
const |
|
inline |
◆ follow_links()
bool dart::bin::DirectoryListing::follow_links |
( |
| ) |
const |
|
inline |
Definition at line 139 of file directory.h.
139{ return follow_links_; }
◆ HandleDirectory()
virtual bool dart::bin::DirectoryListing::HandleDirectory |
( |
const char * |
dir_name | ) |
|
|
pure virtual |
◆ HandleDone()
virtual void dart::bin::DirectoryListing::HandleDone |
( |
| ) |
|
|
inlinevirtual |
◆ HandleError()
virtual bool dart::bin::DirectoryListing::HandleError |
( |
| ) |
|
|
pure virtual |
◆ HandleFile()
virtual bool dart::bin::DirectoryListing::HandleFile |
( |
const char * |
file_name | ) |
|
|
pure virtual |
◆ HandleLink()
virtual bool dart::bin::DirectoryListing::HandleLink |
( |
const char * |
link_name | ) |
|
|
pure virtual |
◆ IsEmpty()
bool dart::bin::DirectoryListing::IsEmpty |
( |
| ) |
const |
|
inline |
Definition at line 125 of file directory.h.
125{ return top_ == nullptr; }
◆ namespc()
Namespace * dart::bin::DirectoryListing::namespc |
( |
| ) |
const |
|
inline |
◆ path_buffer()
PathBuffer & dart::bin::DirectoryListing::path_buffer |
( |
| ) |
|
|
inline |
Definition at line 143 of file directory.h.
143{ return path_buffer_; }
◆ Pop()
void dart::bin::DirectoryListing::Pop |
( |
| ) |
|
|
inline |
Definition at line 118 of file directory.h.
118 {
120 DirectoryListingEntry* current = top_;
122 delete current;
123 }
DirectoryListingEntry * parent() const
◆ PopAll()
void dart::bin::DirectoryListing::PopAll |
( |
| ) |
|
|
inline |
◆ Push()
◆ recursive()
bool dart::bin::DirectoryListing::recursive |
( |
| ) |
const |
|
inline |
◆ top()
The documentation for this class was generated from the following file: