![]() |
XRootD
|
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. | |
~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 649 of file XrdClXRootDResponses.hh.
typedef DirList::const_iterator XrdCl::DirectoryList::ConstIterator |
Directory listing const iterator.
Definition at line 756 of file XrdClXRootDResponses.hh.
typedef std::vector<ListEntry*> XrdCl::DirectoryList::DirList |
Directory listing.
Definition at line 746 of file XrdClXRootDResponses.hh.
typedef DirList::iterator XrdCl::DirectoryList::Iterator |
Directory listing iterator.
Definition at line 751 of file XrdClXRootDResponses.hh.
XrdCl::DirectoryList::DirectoryList | ( | ) |
XrdCl::DirectoryList::~DirectoryList | ( | ) |
Destructor.
Definition at line 515 of file XrdClXRootDResponses.cc.
|
inline |
Add an entry to the list - takes ownership.
Definition at line 761 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList(), XrdCl::ZipArchive::List(), and ParseServerResponse().
|
inline |
Get an entry at given index.
Definition at line 769 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList(), and XrdPosixDir::nextEntry().
|
inline |
Get the begin iterator.
Definition at line 777 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList(), DoLS(), and IndexRemote().
|
inline |
Get the begin iterator.
Definition at line 785 of file XrdClXRootDResponses.hh.
|
inline |
Get the end iterator.
Definition at line 793 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList(), DoLS(), and IndexRemote().
|
inline |
Get the end iterator.
Definition at line 801 of file XrdClXRootDResponses.hh.
|
inline |
Get parent directory name.
Definition at line 817 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList(), and DoLS().
|
inline |
Get the size of the listing.
Definition at line 809 of file XrdClXRootDResponses.hh.
Referenced by XrdCl::FileSystem::DirList(), and XrdPosixDir::Open().
|
static |
Returns true if data contain stat info.
Definition at line 588 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 524 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 542 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 825 of file XrdClXRootDResponses.hh.
References parent().
Referenced by XrdCl::FileSystem::DirList(), and XrdCl::ZipArchive::List().