xrootd
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
XrdCl::DirectoryList Class Reference

Directory list. More...

#include <XrdClXRootDResponses.hh>

Classes

class  ListEntry
 Directory entry. More...
 

Public Types

typedef std::vector< ListEntry * > DirList
 Directory listing. More...
 
typedef DirList::iterator Iterator
 Directory listing iterator. More...
 
typedef DirList::const_iterator ConstIterator
 Directory listing const iterator. More...
 

Public Member Functions

 DirectoryList ()
 Constructor. More...
 
 ~DirectoryList ()
 Destructor. More...
 
void Add (ListEntry *entry)
 Add an entry to the list - takes ownership. More...
 
ListEntryAt (uint32_t index)
 Get an entry at given index. More...
 
Iterator Begin ()
 Get the begin iterator. More...
 
ConstIterator Begin () const
 Get the begin iterator. More...
 
Iterator End ()
 Get the end iterator. More...
 
ConstIterator End () const
 Get the end iterator. More...
 
uint32_t GetSize () const
 Get the size of the listing. More...
 
const std::string & GetParentName () const
 Get parent directory name. More...
 
void SetParentName (const std::string &parent)
 Set name of the parent directory. More...
 
bool ParseServerResponse (const std::string &hostId, const char *data)
 Parse server response and fill up the object. More...
 

Private Attributes

DirList pDirList
 
std::string pParent
 

Detailed Description

Directory list.

Member Typedef Documentation

◆ ConstIterator

typedef DirList::const_iterator XrdCl::DirectoryList::ConstIterator

Directory listing const iterator.

◆ DirList

Directory listing.

◆ Iterator

typedef DirList::iterator XrdCl::DirectoryList::Iterator

Directory listing iterator.

Constructor & Destructor Documentation

◆ DirectoryList()

XrdCl::DirectoryList::DirectoryList ( )

Constructor.

◆ ~DirectoryList()

XrdCl::DirectoryList::~DirectoryList ( )

Destructor.

Member Function Documentation

◆ Add()

void XrdCl::DirectoryList::Add ( ListEntry entry)
inline

Add an entry to the list - takes ownership.

◆ At()

ListEntry* XrdCl::DirectoryList::At ( uint32_t  index)
inline

Get an entry at given index.

◆ Begin() [1/2]

Iterator XrdCl::DirectoryList::Begin ( )
inline

Get the begin iterator.

◆ Begin() [2/2]

ConstIterator XrdCl::DirectoryList::Begin ( ) const
inline

Get the begin iterator.

◆ End() [1/2]

Iterator XrdCl::DirectoryList::End ( )
inline

Get the end iterator.

◆ End() [2/2]

ConstIterator XrdCl::DirectoryList::End ( ) const
inline

Get the end iterator.

◆ GetParentName()

const std::string& XrdCl::DirectoryList::GetParentName ( ) const
inline

Get parent directory name.

◆ GetSize()

uint32_t XrdCl::DirectoryList::GetSize ( ) const
inline

Get the size of the listing.

◆ ParseServerResponse()

bool XrdCl::DirectoryList::ParseServerResponse ( const std::string &  hostId,
const char *  data 
)

Parse server response and fill up the object.

◆ SetParentName()

void XrdCl::DirectoryList::SetParentName ( const std::string &  parent)
inline

Set name of the parent directory.

References XrdCl::LocationInfo::ParseServerResponse().

Member Data Documentation

◆ pDirList

DirList XrdCl::DirectoryList::pDirList
private

◆ pParent

std::string XrdCl::DirectoryList::pParent
private

The documentation for this class was generated from the following file: