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 StatInfo &info) | |
| Copy constructor. | |
| StatInfo (const std::string &id, uint64_t size, uint32_t flags, uint64_t modTime) | |
| Constructor. | |
| virtual | ~StatInfo () |
| Destructor. | |
| bool | ExtendedFormat () const |
| Has extended stat information. | |
| uint64_t | GetAccessTime () const |
| Get change time (in seconds since epoch). | |
| std::string | GetAccessTimeAsString () const |
| Get change time. | |
| uint64_t | GetChangeTime () const |
| Get change time (in seconds since epoch). | |
| std::string | GetChangeTimeAsString () const |
| Get change time. | |
| const std::string & | GetChecksum () const |
| Get checksum. | |
| uint32_t | GetFlags () const |
| Get flags. | |
| const std::string & | GetGroup () const |
| Get group. | |
| const std::string & | GetId () const |
| Get id. | |
| const std::string | GetModeAsOctString () const |
| Get mode. | |
| const std::string & | GetModeAsString () const |
| Get mode. | |
| uint64_t | GetModTime () const |
| Get modification time (in seconds since epoch). | |
| std::string | GetModTimeAsString () const |
| Get modification time. | |
| const std::string & | GetOwner () const |
| Get owner. | |
| uint64_t | GetSize () const |
| Get size (in bytes). | |
| bool | HasChecksum () const |
| Has checksum. | |
| bool | ParseServerResponse (const char *data) |
| Parse server response and fill up the object. | |
| void | SetFlags (uint32_t flags) |
| Set flags. | |
| void | SetSize (uint64_t size) |
| Set size. | |
| bool | TestFlags (uint32_t flags) const |
| Test flags. | |
Object stat info.
Definition at line 414 of file XrdClXRootDResponses.hh.
| 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 420 of file XrdClXRootDResponses.hh.
| XrdCl::StatInfo::StatInfo | ( | ) |
Constructor.
Definition at line 226 of file XrdClXRootDResponses.cc.
Referenced by StatInfo(), and XrdClHttp::StatResponse::StatResponse().
| 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.
References StatInfo().
|
virtualdefault |
| bool XrdCl::StatInfo::ExtendedFormat | ( | ) | const |
Has extended stat information.
Parse server response and fill up the object.
Definition at line 423 of file XrdClXRootDResponses.cc.
Referenced by DoStat(), GetModeAsOctString(), 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 415 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(), XrdPosixAdmin::Stat(), and XrdPosixFile::Stat().
| const std::string & XrdCl::StatInfo::GetGroup | ( | ) | const |
Get group.
Definition at line 407 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 ExtendedFormat().
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(), and XrdPosixAdmin::Stat().
| 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(), 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 399 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(), PrintDirListStatInfo(), XrdCl::StatAction::Serialize(), XrdPosixAdmin::Stat(), and XrdPosixFile::Stat().
| bool XrdCl::StatInfo::HasChecksum | ( | ) | const |
Has checksum.
Definition at line 431 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().