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...
 
StatInfo * GetStatInfo ()
 Get the stat info object. More...
 
const StatInfo * GetStatInfo () 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 677 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 683 of file XrdClXRootDResponses.hh.

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

◆ ~ListEntry()

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

Destructor.

Definition at line 694 of file XrdClXRootDResponses.hh.

695  {
696  delete pStatInfo;
697  }

Member Function Documentation

◆ GetHostAddress()

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

Get host address.

Definition at line 702 of file XrdClXRootDResponses.hh.

703  {
704  return pHostAddress;
705  }

◆ GetName()

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

Get file name.

Definition at line 710 of file XrdClXRootDResponses.hh.

711  {
712  return pName;
713  }

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

719  {
720  return pStatInfo;
721  }

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

727  {
728  return pStatInfo;
729  }

◆ SetStatInfo()

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

Set the stat info object (and transfer the ownership)

Definition at line 734 of file XrdClXRootDResponses.hh.

735  {
736  pStatInfo = info;
737  }

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

+ Here is the caller graph for this function:

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