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 676 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 682 of file XrdClXRootDResponses.hh.

684 :
685 pHostAddress( hostAddress ),
686 pName( SanitizeName( name ) ),
687 pStatInfo( statInfo )
688 {}

◆ ~ListEntry()

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

Destructor.

Definition at line 693 of file XrdClXRootDResponses.hh.

694 {
695 delete pStatInfo;
696 }

Member Function Documentation

◆ GetHostAddress()

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

Get host address.

Definition at line 701 of file XrdClXRootDResponses.hh.

702 {
703 return pHostAddress;
704 }

◆ GetName()

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

Get file name.

Definition at line 709 of file XrdClXRootDResponses.hh.

710 {
711 return pName;
712 }

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 717 of file XrdClXRootDResponses.hh.

718 {
719 return pStatInfo;
720 }

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 725 of file XrdClXRootDResponses.hh.

726 {
727 return pStatInfo;
728 }

◆ SetStatInfo()

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

Set the stat info object (and transfer the ownership).

Definition at line 733 of file XrdClXRootDResponses.hh.

734 {
735 pStatInfo = info;
736 }

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

Here is the caller graph for this function:

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