XRootD
Loading...
Searching...
No Matches
XrdCl::DirectoryList::ListEntry Class Reference

Directory entry. More...

#include <XrdClXRootDResponses.hh>

+ Collaboration diagram for XrdCl::DirectoryList::ListEntry:

Public Member Functions

 ListEntry (const std::string &hostAddress, const std::string &name, StatInfo *statInfo=0)
 Constructor.
 
 ~ListEntry ()
 Destructor.
 
const std::string & GetHostAddress () const
 Get host address.
 
const std::string & GetName () const
 Get file name.
 
StatInfoGetStatInfo ()
 Get the stat info object.
 
const StatInfoGetStatInfo () const
 Get the stat info object.
 
void SetStatInfo (StatInfo *info)
 Set the stat info object (and transfer the ownership)
 

Detailed Description

Directory entry.

Definition at line 657 of file XrdClXRootDResponses.hh.

Constructor & Destructor Documentation

◆ ListEntry()

XrdCl::DirectoryList::ListEntry::ListEntry ( const std::string & hostAddress,
const std::string & name,
StatInfo * statInfo = 0 )
inline

Constructor.

Definition at line 663 of file XrdClXRootDResponses.hh.

665 :
666 pHostAddress( hostAddress ),
667 pName( SanitizeName( name ) ),
668 pStatInfo( statInfo )
669 {}

◆ ~ListEntry()

XrdCl::DirectoryList::ListEntry::~ListEntry ( )
inline

Destructor.

Definition at line 674 of file XrdClXRootDResponses.hh.

675 {
676 delete pStatInfo;
677 }

Member Function Documentation

◆ GetHostAddress()

const std::string & XrdCl::DirectoryList::ListEntry::GetHostAddress ( ) const
inline

Get host address.

Definition at line 682 of file XrdClXRootDResponses.hh.

683 {
684 return pHostAddress;
685 }

◆ GetName()

const std::string & XrdCl::DirectoryList::ListEntry::GetName ( ) const
inline

Get file name.

Definition at line 690 of file XrdClXRootDResponses.hh.

691 {
692 return pName;
693 }

Referenced by XrdCl::FileSystem::DirList(), IndexRemote(), and XrdPosixDir::nextEntry().

+ Here is the caller graph for this function:

◆ GetStatInfo() [1/2]

StatInfo * XrdCl::DirectoryList::ListEntry::GetStatInfo ( )
inline

Get the stat info object.

Definition at line 698 of file XrdClXRootDResponses.hh.

699 {
700 return pStatInfo;
701 }

Referenced by XrdCl::FileSystem::DirList(), XrdPosixMap::Entry2Buf(), and IndexRemote().

+ Here is the caller graph for this function:

◆ GetStatInfo() [2/2]

const StatInfo * XrdCl::DirectoryList::ListEntry::GetStatInfo ( ) const
inline

Get the stat info object.

Definition at line 706 of file XrdClXRootDResponses.hh.

707 {
708 return pStatInfo;
709 }

◆ SetStatInfo()

void XrdCl::DirectoryList::ListEntry::SetStatInfo ( StatInfo * info)
inline

Set the stat info object (and transfer the ownership)

Definition at line 714 of file XrdClXRootDResponses.hh.

715 {
716 pStatInfo = info;
717 }

Referenced by XrdCl::DirectoryList::ParseServerResponse().

+ Here is the caller graph for this function:

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