Definition at line 46 of file RFile.cxx.
|
| RFileSharedPtrCtor (std::unique_ptr< RFileStorageInterface > &&storage) |
|
| ~RFile () |
| Must not call Write() of all attached objects: some might not be needed to be written or writing might be aborted due to an exception; require explicit Write().
|
|
void | Close () |
| Flush() and make the file non-writable: close it.
|
|
void | Flush () |
| Save all objects associated with this directory (including file header) to the storage medium.
|
|
template<class T > |
std::unique_ptr< T > | Read (std::string_view name) |
| Read the object for a key.
|
|
void | Write (std::string_view name) |
| Write an object that is already lifetime managed by this RFileImplBase.
|
|
template<class T > |
void | Write (std::string_view name, const T &obj) |
| Write an object that is not lifetime managed by this RFileImplBase.
|
|
template<class T > |
void | Write (std::string_view name, const T *obj) |
| Write an object that is not lifetime managed by this RFileImplBase.
|
|
template<class T > |
void | Write (std::string_view name, std::shared_ptr< T > &&obj) |
| Hand over lifetime management of an object to this RFileImplBase, and write it.
|
|
template<class T > |
void | Add (std::string_view name, const std::shared_ptr< T > &ptr) |
| Add an existing object (rather a shared_ptr to it) to the RDirectory.
|
|
template<class T , class... ARGS> |
std::shared_ptr< ToContentType_t< T > > | Create (std::string_view name, ARGS &&... args) |
| Create an object of type T (passing some arguments to its constructor).
|
|
Internal::RDirectoryEntry | Find (std::string_view name) const |
| Find the RDirectoryEntry associated to the name.
|
|
template<class T > |
std::pair< Internal::RDirectoryEntry, EFindStatus > | Find (std::string_view name) const |
| Find the RDirectoryEntry associated with the name.
|
|
template<class T > |
std::shared_ptr< ToContentType_t< T > > | Get (std::string_view name) |
| Get the object for a key.
|
|
bool | Remove (std::string_view name) |
| Remove entry from RDirectory (if exists)
|
|