XRootD
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. More...
 
 ~ListEntry ()
 Destructor. More...
 
const std::string & GetHostAddress () const
 Get host address. More...
 
const std::string & GetName () const
 Get file name. More...
 
StatInfoGetStatInfo ()
 Get the stat info object. More...
 
const StatInfoGetStatInfo () const
 Get the stat info object. More...
 
void SetStatInfo (StatInfo *info)
 Set the stat info object (and transfer the ownership) More...
 

Detailed Description

Directory entry.

Definition at line 656 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 662 of file XrdClXRootDResponses.hh.

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

◆ ~ListEntry()

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

Destructor.

Definition at line 673 of file XrdClXRootDResponses.hh.

674  {
675  delete pStatInfo;
676  }

Member Function Documentation

◆ GetHostAddress()

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

Get host address.

Definition at line 681 of file XrdClXRootDResponses.hh.

682  {
683  return pHostAddress;
684  }

◆ GetName()

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

Get file name.

Definition at line 689 of file XrdClXRootDResponses.hh.

690  {
691  return pName;
692  }

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

698  {
699  return pStatInfo;
700  }

Referenced by XrdCl::FileSystem::DirList(), 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 705 of file XrdClXRootDResponses.hh.

706  {
707  return pStatInfo;
708  }

◆ SetStatInfo()

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

Set the stat info object (and transfer the ownership)

Definition at line 713 of file XrdClXRootDResponses.hh.

714  {
715  pStatInfo = info;
716  }

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

+ Here is the caller graph for this function:

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