|
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... | |
| StatInfo (const StatInfo &info) | |
| Copy constructor. More... | |
| ~StatInfo () | |
| Destructor. 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... | |
| void | SetFlags (uint32_t flags) |
| Set 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... | |
| uint64_t | GetChangeTime () const |
| Get change time (in seconds since epoch) More... | |
| std::string | GetChangeTimeAsString () const |
| Get change time. More... | |
| uint64_t | GetAccessTime () const |
| Get change time (in seconds since epoch) More... | |
| std::string | GetAccessTimeAsString () const |
| Get change time. More... | |
| const std::string & | GetModeAsString () const |
| Get mode. More... | |
| const std::string | GetModeAsOctString () const |
| Get mode. More... | |
| const std::string & | GetOwner () const |
| Get owner. More... | |
| const std::string & | GetGroup () const |
| Get group. More... | |
| bool | ParseServerResponse (const char *data) |
| Parse server response and fill up the object. More... | |
| bool | ExtendedFormat () const |
| Parse server response and fill up the object. More... | |
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 |
Parse server response and fill up the object.
| uint64_t XrdCl::StatInfo::GetAccessTime | ( | ) | const |
Get change time (in seconds since epoch)
| std::string XrdCl::StatInfo::GetAccessTimeAsString | ( | ) | const |
Get change time.
| uint64_t XrdCl::StatInfo::GetChangeTime | ( | ) | const |
Get change time (in seconds since epoch)
| std::string XrdCl::StatInfo::GetChangeTimeAsString | ( | ) | const |
Get change time.
| uint32_t XrdCl::StatInfo::GetFlags | ( | ) | const |
Get flags.
| const std::string& XrdCl::StatInfo::GetGroup | ( | ) | const |
Get group.
| const std::string& XrdCl::StatInfo::GetId | ( | ) | const |
Get id.
| const std::string XrdCl::StatInfo::GetModeAsOctString | ( | ) | const |
Get mode.
| const std::string& XrdCl::StatInfo::GetModeAsString | ( | ) | const |
Get mode.
| uint64_t XrdCl::StatInfo::GetModTime | ( | ) | const |
Get modification time (in seconds since epoch)
| std::string XrdCl::StatInfo::GetModTimeAsString | ( | ) | const |
Get modification time.
| const std::string& XrdCl::StatInfo::GetOwner | ( | ) | const |
Get owner.
| uint64_t XrdCl::StatInfo::GetSize | ( | ) | const |
Get size (in bytes)
|
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.
| bool XrdCl::StatInfo::TestFlags | ( | uint32_t | flags | ) | const |
Test flags.
|
inlinestaticprivate |
|
private |