XRootD
XrdCl::OpenInfo Class Reference

Information returned by file open operation. More...

#include <XrdClXRootDResponses.hh>

+ Collaboration diagram for XrdCl::OpenInfo:

Public Member Functions

 OpenInfo (const uint8_t *fileHandle, uint64_t sessionId, StatInfo *statInfo=0)
 Constructor. More...
 
virtual ~OpenInfo ()
 Destructor. More...
 
void GetFileHandle (uint8_t *fileHandle) const
 Get the file handle (4bytes) More...
 
uint64_t GetSessionId () const
 
const StatInfoGetStatInfo () const
 Get the stat info. More...
 

Detailed Description

Information returned by file open operation.

Definition at line 881 of file XrdClXRootDResponses.hh.

Constructor & Destructor Documentation

◆ OpenInfo()

XrdCl::OpenInfo::OpenInfo ( const uint8_t *  fileHandle,
uint64_t  sessionId,
StatInfo statInfo = 0 
)
inline

Constructor.

Definition at line 887 of file XrdClXRootDResponses.hh.

889  :
890  pSessionId(sessionId), pStatInfo( statInfo )
891  {
892  memcpy( pFileHandle, fileHandle, 4 );
893  }

◆ ~OpenInfo()

virtual XrdCl::OpenInfo::~OpenInfo ( )
inlinevirtual

Destructor.

Definition at line 898 of file XrdClXRootDResponses.hh.

899  {
900  delete pStatInfo;
901  }

Member Function Documentation

◆ GetFileHandle()

void XrdCl::OpenInfo::GetFileHandle ( uint8_t *  fileHandle) const
inline

Get the file handle (4bytes)

Definition at line 906 of file XrdClXRootDResponses.hh.

907  {
908  memcpy( fileHandle, pFileHandle, 4 );
909  }

Referenced by XrdCl::FileStateHandler::OnOpen().

+ Here is the caller graph for this function:

◆ GetSessionId()

uint64_t XrdCl::OpenInfo::GetSessionId ( ) const
inline

Definition at line 922 of file XrdClXRootDResponses.hh.

923  {
924  return pSessionId;
925  }

Referenced by XrdCl::FileStateHandler::OnOpen().

+ Here is the caller graph for this function:

◆ GetStatInfo()

const StatInfo* XrdCl::OpenInfo::GetStatInfo ( ) const
inline

Get the stat info.

Definition at line 914 of file XrdClXRootDResponses.hh.

915  {
916  return pStatInfo;
917  }

Referenced by XrdCl::FileStateHandler::OnOpen().

+ Here is the caller graph for this function:

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