![]() |
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 StatInfo &info) | |
Copy constructor. More... | |
StatInfo (const std::string &id, uint64_t size, uint32_t flags, uint64_t modTime) | |
Constructor. More... | |
~StatInfo () | |
Destructor. More... | |
bool | ExtendedFormat () const |
Has extended stat information. More... | |
uint64_t | GetAccessTime () const |
Get change time (in seconds since epoch) More... | |
std::string | GetAccessTimeAsString () const |
Get change time. More... | |
uint64_t | GetChangeTime () const |
Get change time (in seconds since epoch) More... | |
std::string | GetChangeTimeAsString () const |
Get change time. More... | |
const std::string & | GetChecksum () const |
Get checksum. More... | |
uint32_t | GetFlags () const |
Get flags. More... | |
const std::string & | GetGroup () const |
Get group. More... | |
const std::string & | GetId () const |
Get id. More... | |
const std::string | GetModeAsOctString () const |
Get mode. More... | |
const std::string & | GetModeAsString () const |
Get mode. More... | |
uint64_t | GetModTime () const |
Get modification time (in seconds since epoch) More... | |
std::string | GetModTimeAsString () const |
Get modification time. More... | |
const std::string & | GetOwner () const |
Get owner. More... | |
uint64_t | GetSize () const |
Get size (in bytes) More... | |
bool | HasChecksum () const |
Has checksum. More... | |
bool | ParseServerResponse (const char *data) |
Parse server response and fill up the object. More... | |
void | SetFlags (uint32_t flags) |
Set flags. More... | |
void | SetSize (uint64_t size) |
Set size. More... | |
bool | TestFlags (uint32_t flags) const |
Test flags. More... | |
Object stat info.
Definition at line 400 of file XrdClXRootDResponses.hh.
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. |
Definition at line 406 of file XrdClXRootDResponses.hh.
XrdCl::StatInfo::StatInfo | ( | ) |
Constructor.
Definition at line 226 of file XrdClXRootDResponses.cc.
XrdCl::StatInfo::StatInfo | ( | const std::string & | id, |
uint64_t | size, | ||
uint32_t | flags, | ||
uint64_t | modTime | ||
) |
Constructor.
Definition at line 233 of file XrdClXRootDResponses.cc.
XrdCl::StatInfo::StatInfo | ( | const StatInfo & | info | ) |
Copy constructor.
Definition at line 246 of file XrdClXRootDResponses.cc.
|
default |
Destructor.
bool XrdCl::StatInfo::ExtendedFormat | ( | ) | const |
Has extended stat information.
Parse server response and fill up the object.
Definition at line 417 of file XrdClXRootDResponses.cc.
Referenced by DoStat(), PrintDirListStatInfo(), XrdPosixAdmin::Stat(), and XrdPosixFile::Stat().
uint64_t XrdCl::StatInfo::GetAccessTime | ( | ) | const |
Get change time (in seconds since epoch)
Definition at line 346 of file XrdClXRootDResponses.cc.
Referenced by XrdCl::StatAction::Serialize(), XrdPosixAdmin::Stat(), and XrdPosixFile::Stat().
std::string XrdCl::StatInfo::GetAccessTimeAsString | ( | ) | const |
Get change time.
Definition at line 354 of file XrdClXRootDResponses.cc.
Referenced by DoStat().
uint64_t XrdCl::StatInfo::GetChangeTime | ( | ) | const |
Get change time (in seconds since epoch)
Definition at line 330 of file XrdClXRootDResponses.cc.
Referenced by XrdCl::StatAction::Serialize(), XrdPosixAdmin::Stat(), and XrdPosixFile::Stat().
std::string XrdCl::StatInfo::GetChangeTimeAsString | ( | ) | const |
Get change time.
Definition at line 338 of file XrdClXRootDResponses.cc.
Referenced by DoStat().
const std::string & XrdCl::StatInfo::GetChecksum | ( | ) | const |
Get checksum.
Definition at line 409 of file XrdClXRootDResponses.cc.
Referenced by DoLS(), PrintDirListStatInfo(), and XrdCl::StatAction::Serialize().
uint32_t XrdCl::StatInfo::GetFlags | ( | ) | const |
Get flags.
Definition at line 290 of file XrdClXRootDResponses.cc.
Referenced by DoStat(), XrdCl::StatAction::Serialize(), XrdPosixAdmin::Stat(), and XrdPosixFile::Stat().
const std::string & XrdCl::StatInfo::GetGroup | ( | ) | const |
Get group.
Definition at line 401 of file XrdClXRootDResponses.cc.
Referenced by DoLS(), DoStat(), PrintDirListStatInfo(), and XrdCl::StatAction::Serialize().
const std::string & XrdCl::StatInfo::GetId | ( | ) | const |
Get id.
Definition at line 266 of file XrdClXRootDResponses.cc.
Referenced by DoStat(), XrdPosixAdmin::Stat(), and XrdPosixFile::Stat().
const std::string XrdCl::StatInfo::GetModeAsOctString | ( | ) | const |
Get mode.
Definition at line 370 of file XrdClXRootDResponses.cc.
References Xrd::oct.
Referenced by PrintDirListStatInfo(), and XrdCl::StatAction::Serialize().
const std::string & XrdCl::StatInfo::GetModeAsString | ( | ) | const |
Get mode.
Definition at line 362 of file XrdClXRootDResponses.cc.
Referenced by DoStat().
uint64_t XrdCl::StatInfo::GetModTime | ( | ) | const |
Get modification time (in seconds since epoch)
Definition at line 314 of file XrdClXRootDResponses.cc.
Referenced by XrdCl::StatAction::Serialize(), XrdPosixAdmin::Stat(), and XrdPosixFile::Stat().
std::string XrdCl::StatInfo::GetModTimeAsString | ( | ) | const |
Get modification time.
Definition at line 322 of file XrdClXRootDResponses.cc.
Referenced by DoStat(), and PrintDirListStatInfo().
const std::string & XrdCl::StatInfo::GetOwner | ( | ) | const |
Get owner.
Definition at line 393 of file XrdClXRootDResponses.cc.
Referenced by DoLS(), DoStat(), PrintDirListStatInfo(), and XrdCl::StatAction::Serialize().
uint64_t XrdCl::StatInfo::GetSize | ( | ) | const |
Get size (in bytes)
Definition at line 274 of file XrdClXRootDResponses.cc.
Referenced by XrdCl::AssureFile(), DoLS(), DoStat(), DoTail(), XrdCl::FileStateHandler::OnOpen(), PrintDirListStatInfo(), XrdCl::StatAction::Serialize(), XrdPosixAdmin::Stat(), and XrdPosixFile::Stat().
bool XrdCl::StatInfo::HasChecksum | ( | ) | const |
Has checksum.
Definition at line 425 of file XrdClXRootDResponses.cc.
Referenced by PrintDirListStatInfo().
bool XrdCl::StatInfo::ParseServerResponse | ( | const char * | data | ) |
Parse server response and fill up the object.
Definition at line 258 of file XrdClXRootDResponses.cc.
Referenced by XrdCl::DirectoryList::ParseServerResponse(), and XrdCl::LocalFileHandler::Stat().
void XrdCl::StatInfo::SetFlags | ( | uint32_t | flags | ) |
Set flags.
Definition at line 298 of file XrdClXRootDResponses.cc.
void XrdCl::StatInfo::SetSize | ( | uint64_t | size | ) |
Set size.
Definition at line 282 of file XrdClXRootDResponses.cc.
bool XrdCl::StatInfo::TestFlags | ( | uint32_t | flags | ) | const |
Test flags.
Definition at line 306 of file XrdClXRootDResponses.cc.
Referenced by DoCD(), DoLS(), DoStat(), XrdCl::ZipListHandler::HandleResponse(), IndexRemote(), main(), PrintDirListStatInfo(), and ProcessStatQuery().