Information about an RFile object's Key.
Every object inside a ROOT file has an associated "Key" which contains metadata on the object, such as its name, type etc. Querying this information can be done via RFile::ListKeys(). Reading an object's Key doesn't deserialize the full object, so it's a relatively lightweight operation.
Public Types | |
| enum class | ECategory : std::uint16_t { kInvalid , kObject , kDirectory } |
Public Member Functions | |
| RKeyInfo ()=default | |
| std::string | GetBaseName () const |
| Returns the base name of this key, i.e. the name of the object without the directory part. | |
| ECategory | GetCategory () const |
| const std::string & | GetClassName () const |
| std::uint16_t | GetCycle () const |
| std::uint64_t | GetLenObj () const |
| Returns the in-memory size of the uncompressed object. | |
| std::uint64_t | GetNBytesKey () const |
| Returns the on-disk size of this object's key. | |
| std::uint64_t | GetNBytesObj () const |
| Returns the on-disk size of the (potentially compressed) object, excluding its key. | |
| const std::string & | GetPath () const |
| Returns the absolute path of this key, i.e. the directory part plus the object name. | |
| std::uint64_t | GetSeekKey () const |
| Returns the on-disk offset of this object's key. | |
| std::uint64_t | GetSeekParentDir () const |
| Returns the on-disk offset of this object's parent directory key. | |
| const std::string & | GetTitle () const |
Private Member Functions | |
| RKeyInfo (const TKey &key) | |
Private Attributes | |
| ECategory | fCategory = ECategory::kInvalid |
| std::string | fClassName |
| std::uint16_t | fCycle = 0 |
| std::uint64_t | fLenObj = 0 |
| std::uint64_t | fNBytesKey = 0 |
| std::uint64_t | fNBytesObj = 0 |
| std::string | fPath |
| std::uint64_t | fSeekKey = 0 |
| std::uint64_t | fSeekParentDir = 0 |
| std::string | fTitle |
Friends | |
| class | ROOT::Experimental::RFile |
| class | ROOT::Experimental::RFileKeyIterable |
#include <ROOT/RFile.hxx>
|
strong |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |