Directory list. More...
#include <XrdClXRootDResponses.hh>
Classes | |
| class | ListEntry |
| Directory entry. More... | |
Public Types | |
| typedef DirList::const_iterator | ConstIterator |
| Directory listing const iterator. | |
| typedef std::vector< ListEntry * > | DirList |
| Directory listing. | |
| typedef DirList::iterator | Iterator |
| Directory listing iterator. | |
Public Member Functions | |
| DirectoryList () | |
| Constructor. | |
| virtual | ~DirectoryList () |
| Destructor. | |
| void | Add (ListEntry *entry) |
| Add an entry to the list - takes ownership. | |
| ListEntry * | At (uint32_t index) |
| Get an entry at given index. | |
| Iterator | Begin () |
| Get the begin iterator. | |
| ConstIterator | Begin () const |
| Get the begin iterator. | |
| Iterator | End () |
| Get the end iterator. | |
| ConstIterator | End () const |
| Get the end iterator. | |
| const std::string & | GetParentName () const |
| Get parent directory name. | |
| uint32_t | GetSize () const |
| Get the size of the listing. | |
| bool | ParseServerResponse (const std::string &hostId, const char *data) |
| Parse server response and fill up the object. | |
| bool | ParseServerResponse (const std::string &hostId, const char *data, bool isDStat) |
| Parse chunked server response and fill up the object. | |
| void | SetParentName (const std::string &parent) |
| Set name of the parent directory. | |
Static Public Member Functions | |
| static bool | HasStatInfo (const char *data) |
| Returns true if data contain stat info. | |
Directory list.
Definition at line 669 of file XrdClXRootDResponses.hh.
| typedef DirList::const_iterator XrdCl::DirectoryList::ConstIterator |
Directory listing const iterator.
Definition at line 776 of file XrdClXRootDResponses.hh.
| typedef std::vector<ListEntry*> XrdCl::DirectoryList::DirList |
Directory listing.
Definition at line 766 of file XrdClXRootDResponses.hh.
| typedef DirList::iterator XrdCl::DirectoryList::Iterator |
Directory listing iterator.
Definition at line 771 of file XrdClXRootDResponses.hh.
| XrdCl::DirectoryList::DirectoryList | ( | ) |
|
virtual |
Destructor.
Definition at line 521 of file XrdClXRootDResponses.cc.
|
inline |
Add an entry to the list - takes ownership.
Definition at line 781 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList(), XrdCl::ZipArchive::List(), and ParseServerResponse().
|
inline |
Get an entry at given index.
Definition at line 789 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList().
|
inline |
Get the begin iterator.
Definition at line 797 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList(), DoLS(), and IndexRemote().
|
inline |
Get the begin iterator.
Definition at line 805 of file XrdClXRootDResponses.hh.
|
inline |
Get the end iterator.
Definition at line 813 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList(), DoLS(), and IndexRemote().
|
inline |
Get the end iterator.
Definition at line 821 of file XrdClXRootDResponses.hh.
|
inline |
Get parent directory name.
Definition at line 837 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList(), and DoLS().
|
inline |
Get the size of the listing.
Definition at line 829 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList().
|
static |
Returns true if data contain stat info.
Definition at line 594 of file XrdClXRootDResponses.cc.
Referenced by ParseServerResponse().
| bool XrdCl::DirectoryList::ParseServerResponse | ( | const std::string & | hostId, |
| const char * | data ) |
Parse server response and fill up the object.
Definition at line 530 of file XrdClXRootDResponses.cc.
References HasStatInfo(), and ParseServerResponse().
Referenced by ParseServerResponse().
| bool XrdCl::DirectoryList::ParseServerResponse | ( | const std::string & | hostId, |
| const char * | data, | ||
| bool | isDStat ) |
Parse chunked server response and fill up the object.
Definition at line 548 of file XrdClXRootDResponses.cc.
References Add(), XrdCl::StatInfo::ParseServerResponse(), XrdCl::DirectoryList::ListEntry::SetStatInfo(), and XrdCl::Utils::splitString().
|
inline |
Set name of the parent directory.
Definition at line 845 of file XrdClXRootDResponses.hh.
References parent().
Referenced by XrdCl::FileSystem::DirList(), and XrdCl::ZipArchive::List().