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. | |
StatInfo (const std::string &id, uint64_t size, uint32_t flags, uint64_t modTime) | |
Constructor. | |
StatInfo (const StatInfo &info) | |
Copy constructor. | |
~StatInfo () | |
Destructor. | |
const std::string & | GetId () const |
Get id. | |
uint64_t | GetSize () const |
Get size (in bytes) | |
void | SetSize (uint64_t size) |
Set size. | |
uint32_t | GetFlags () const |
Get flags. | |
void | SetFlags (uint32_t flags) |
Set 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. | |
uint64_t | GetChangeTime () const |
Get change time (in seconds since epoch) | |
std::string | GetChangeTimeAsString () const |
Get change time. | |
uint64_t | GetAccessTime () const |
Get change time (in seconds since epoch) | |
std::string | GetAccessTimeAsString () const |
Get change time. | |
const std::string & | GetModeAsString () const |
Get mode. | |
const std::string | GetModeAsOctString () const |
Get mode. | |
const std::string & | GetOwner () const |
Get owner. | |
const std::string & | GetGroup () const |
Get group. | |
const std::string & | GetChecksum () const |
Get checksum. | |
bool | ParseServerResponse (const char *data) |
Parse server response and fill up the object. | |
bool | ExtendedFormat () const |
Has extended stat information. | |
bool | HasChecksum () const |
Has checksum. | |
Static Private Member Functions | |
static std::string | TimeToString (uint64_t time) |
static void | OctToString (uint8_t oct, std::string &str) |
Private Attributes | |
std::unique_ptr< StatInfoImpl > | pImpl |
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.
XrdCl::StatInfo::StatInfo | ( | const StatInfo & | info | ) |
Copy constructor.
XrdCl::StatInfo::~StatInfo | ( | ) |
Destructor.
bool XrdCl::StatInfo::ExtendedFormat | ( | ) | const |
Has extended stat information.
uint64_t XrdCl::StatInfo::GetAccessTime | ( | ) | const |
Get change time (in seconds since epoch)
Referenced by XrdCl::StatAction::Serialize().
std::string XrdCl::StatInfo::GetAccessTimeAsString | ( | ) | const |
Get change time.
uint64_t XrdCl::StatInfo::GetChangeTime | ( | ) | const |
Get change time (in seconds since epoch)
Referenced by XrdCl::StatAction::Serialize().
std::string XrdCl::StatInfo::GetChangeTimeAsString | ( | ) | const |
Get change time.
const std::string & XrdCl::StatInfo::GetChecksum | ( | ) | const |
Get checksum.
Referenced by XrdCl::StatAction::Serialize().
uint32_t XrdCl::StatInfo::GetFlags | ( | ) | const |
Get flags.
Referenced by XrdCl::ZipArchive::make_stat(), and XrdCl::StatAction::Serialize().
const std::string & XrdCl::StatInfo::GetGroup | ( | ) | const |
Get group.
Referenced by XrdCl::StatAction::Serialize().
const std::string & XrdCl::StatInfo::GetId | ( | ) | const |
Get id.
const std::string XrdCl::StatInfo::GetModeAsOctString | ( | ) | const |
Get mode.
Referenced by XrdCl::StatAction::Serialize().
const std::string & XrdCl::StatInfo::GetModeAsString | ( | ) | const |
Get mode.
uint64_t XrdCl::StatInfo::GetModTime | ( | ) | const |
Get modification time (in seconds since epoch)
Referenced by XrdCl::StatAction::Serialize().
std::string XrdCl::StatInfo::GetModTimeAsString | ( | ) | const |
Get modification time.
const std::string & XrdCl::StatInfo::GetOwner | ( | ) | const |
Get owner.
Referenced by XrdCl::StatAction::Serialize().
uint64_t XrdCl::StatInfo::GetSize | ( | ) | const |
Get size (in bytes)
Referenced by XrdCl::StatAction::Serialize().
bool XrdCl::StatInfo::HasChecksum | ( | ) | const |
Has checksum.
|
inlinestaticprivate |
bool XrdCl::StatInfo::ParseServerResponse | ( | const char * | data | ) |
Parse server response and fill up the object.
void XrdCl::StatInfo::SetFlags | ( | uint32_t | flags | ) |
Set flags.
Referenced by XrdCl::ZipArchive::make_stat().
void XrdCl::StatInfo::SetSize | ( | uint64_t | size | ) |
Set size.
Referenced by XrdCl::ZipArchive::make_stat(), and XrdCl::EcHandler::StatRsp().
bool XrdCl::StatInfo::TestFlags | ( | uint32_t | flags | ) | const |
Test flags.
|
inlinestaticprivate |
|
private |