XrdCl::StatInfo Class Reference

Object stat info. More...

#include <XrdClXRootDResponses.hh>

List of all members.

Public Types

enum  Flags {
  XBitSet = kXR_xset, IsDir = kXR_isDir, Other = kXR_other, Offline = kXR_offline,
  POSCPending = kXR_poscpend, IsReadable = kXR_readable, IsWritable = kXR_writable, BackUpExists = kXR_bkpexist
}
 

Flags.

More...

Public Member Functions

 StatInfo ()
 Constructor.
 StatInfo (const std::string &id, uint64_t size, uint32_t flags, uint64_t modTime)
 Constructor.
const std::string GetId () const
 Get id.
uint64_t GetSize () const
 Get size (in bytes).
uint32_t GetFlags () const
 Get flags.
bool TestFlags (uint32_t flags) const
 Test flags.
uint64_t GetModTime () const
 Get modification time (in seconds since epoch).
std::string GetModTimeAsString () const
 Get modification time.
bool ParseServerResponse (const char *data)
 Parse server response and fill up the object.

Private Attributes

std::string pId
uint64_t pSize
uint32_t pFlags
uint64_t pModTime

Detailed Description

Object stat info.


Member Enumeration Documentation

Flags.

Enumerator:
XBitSet 

Executable/searchable bit set.

IsDir 

This is a directory.

Other 

Neither a file nor a directory.

Offline 

File is not online (ie. on disk).

POSCPending 

File opened with POST flag, not yet successfully closed

IsReadable 

Read access is allowed.

IsWritable 

Write access is allowed.

BackUpExists 

Back up copy exists.


Constructor & Destructor Documentation

XrdCl::StatInfo::StatInfo (  ) 

Constructor.

XrdCl::StatInfo::StatInfo ( const std::string &  id,
uint64_t  size,
uint32_t  flags,
uint64_t  modTime 
)

Constructor.


Member Function Documentation

uint32_t XrdCl::StatInfo::GetFlags (  )  const [inline]

Get flags.

References pFlags.

const std::string XrdCl::StatInfo::GetId (  )  const [inline]

Get id.

References pId.

uint64_t XrdCl::StatInfo::GetModTime (  )  const [inline]

Get modification time (in seconds since epoch).

References pModTime.

std::string XrdCl::StatInfo::GetModTimeAsString (  )  const [inline]

Get modification time.

References pModTime.

uint64_t XrdCl::StatInfo::GetSize (  )  const [inline]

Get size (in bytes).

References pSize.

bool XrdCl::StatInfo::ParseServerResponse ( const char *  data  ) 

Parse server response and fill up the object.

bool XrdCl::StatInfo::TestFlags ( uint32_t  flags  )  const [inline]

Test flags.

References pFlags.


Member Data Documentation

uint32_t XrdCl::StatInfo::pFlags [private]

Referenced by GetFlags(), and TestFlags().

std::string XrdCl::StatInfo::pId [private]

Referenced by GetId().

uint64_t XrdCl::StatInfo::pModTime [private]

Referenced by GetModTime(), and GetModTimeAsString().

uint64_t XrdCl::StatInfo::pSize [private]

Referenced by GetSize().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 4 Sep 2020 for xrootd by  doxygen 1.6.1