xrootd
|
Object stat info. More...
#include <XrdClXRootDResponses.hh>
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. More... | |
StatInfo (const std::string &id, uint64_t size, uint32_t flags, uint64_t modTime) | |
Constructor. More... | |
const std::string | GetId () const |
Get id. More... | |
uint64_t | GetSize () const |
Get size (in bytes) More... | |
uint32_t | GetFlags () const |
Get flags. More... | |
bool | TestFlags (uint32_t flags) const |
Test flags. More... | |
uint64_t | GetModTime () const |
Get modification time (in seconds since epoch) More... | |
std::string | GetModTimeAsString () const |
Get modification time. More... | |
bool | ParseServerResponse (const char *data) |
Parse server response and fill up the object. More... | |
Private Attributes | |
std::string | pId |
uint64_t | pSize |
uint32_t | pFlags |
uint64_t | pModTime |
Object stat info.
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. |
XrdCl::StatInfo::StatInfo | ( | ) |
Constructor.
XrdCl::StatInfo::StatInfo | ( | const std::string & | id, |
uint64_t | size, | ||
uint32_t | flags, | ||
uint64_t | modTime | ||
) |
Constructor.
|
inline |
Get flags.
References pFlags.
|
inline |
Get id.
References pId.
|
inline |
Get modification time (in seconds since epoch)
References pModTime.
|
inline |
Get modification time.
References pModTime.
|
inline |
Get size (in bytes)
References pSize.
bool XrdCl::StatInfo::ParseServerResponse | ( | const char * | data | ) |
Parse server response and fill up the object.
|
inline |
Test flags.
References pFlags.
|
private |
Referenced by GetFlags(), and TestFlags().
|
private |
Referenced by GetId().
|
private |
Referenced by GetModTime(), and GetModTimeAsString().
|
private |
Referenced by GetSize().