Directory list. More...
#include <XrdClXRootDResponses.hh>
Classes | |
class | ListEntry |
Directory entry. More... | |
Public Types | |
typedef std::vector< ListEntry * > | DirList |
Directory listing. | |
typedef DirList::iterator | Iterator |
Directory listing iterator. | |
typedef DirList::const_iterator | ConstIterator |
Directory listing const 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. | |
uint32_t | GetSize () const |
Get the size of the listing. | |
const std::string & | GetParentName () const |
Get parent directory name. | |
void | SetParentName (const std::string &parent) |
Set name of the parent directory. | |
bool | ParseServerResponse (const std::string &hostId, const char *data) |
Parse server response and fill up the object. | |
Private Attributes | |
DirList | pDirList |
std::string | pParent |
Directory list.
typedef DirList::const_iterator XrdCl::DirectoryList::ConstIterator |
Directory listing const iterator.
typedef std::vector<ListEntry*> XrdCl::DirectoryList::DirList |
Directory listing.
typedef DirList::iterator XrdCl::DirectoryList::Iterator |
Directory listing iterator.
XrdCl::DirectoryList::DirectoryList | ( | ) |
Constructor.
XrdCl::DirectoryList::~DirectoryList | ( | ) |
Destructor.
void XrdCl::DirectoryList::Add | ( | ListEntry * | entry | ) | [inline] |
Add an entry to the list - takes ownership.
References pDirList.
ListEntry* XrdCl::DirectoryList::At | ( | uint32_t | index | ) | [inline] |
Get an entry at given index.
References pDirList.
ConstIterator XrdCl::DirectoryList::Begin | ( | ) | const [inline] |
Get the begin iterator.
References pDirList.
ConstIterator XrdCl::DirectoryList::End | ( | ) | const [inline] |
Get the end iterator.
References pDirList.
const std::string& XrdCl::DirectoryList::GetParentName | ( | ) | const [inline] |
Get parent directory name.
References pParent.
uint32_t XrdCl::DirectoryList::GetSize | ( | ) | const [inline] |
Get the size of the listing.
References pDirList.
bool XrdCl::DirectoryList::ParseServerResponse | ( | const std::string & | hostId, | |
const char * | data | |||
) |
Parse server response and fill up the object.
void XrdCl::DirectoryList::SetParentName | ( | const std::string & | parent | ) | [inline] |
Set name of the parent directory.
References pParent.
DirList XrdCl::DirectoryList::pDirList [private] |
std::string XrdCl::DirectoryList::pParent [private] |
Referenced by GetParentName(), and SetParentName().