Context to import, export, or remove snapshots. More...
#include <ibridge_server.h>
Public Member Functions | |
virtual neuraylib::IImport_result * | import_snapshot (neuraylib::ITransaction *transaction, const char *snapshot_id, const IMap *importer_options=nullptr)=0 |
Imports a previously saved snapshot from the disk cache. More... | |
virtual Sint32 | remove_snapshot (const char *snapshot_id)=0 |
Removes a snapshot from the disk cache. More... | |
virtual neuraylib::IExport_result * | export_snapshot (neuraylib::ITransaction *transaction, const IArray *elements, const IMap *exporter_options, IString *snapshot_id)=0 |
Exports a set of elements to the disk cache. More... | |
![]() | |
virtual Uint32 | retain () const =0 |
Increments the reference count. More... | |
virtual Uint32 | release () const =0 |
Decrements the reference count. More... | |
virtual const IInterface * | get_interface (const Uuid &interface_id) const =0 |
Acquires a const interface from another. More... | |
template<class T> | |
const T * | get_interface () const |
Acquires a const interface from another. More... | |
virtual IInterface * | get_interface (const Uuid &interface_id)=0 |
Acquires a mutable interface from another. More... | |
template<class T> | |
T * | get_interface () |
Acquires a mutable interface from another. More... | |
virtual Uuid | get_iid () const =0 |
Returns the interface ID of the most derived interface. More... | |
Additional Inherited Members | |
![]() | |
using | Self = Interface_declare< id1, ... > |
Own type. More... | |
using | IID = Uuid_t< id1, ... > |
Declares the interface ID (IID) of this interface. More... | |
![]() | |
using | IID = Uuid_t<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0> |
Declares the interface ID (IID) of this interface. More... | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface. More... | |
Context to import, export, or remove snapshots.
|
pure virtual |
Exports a set of elements to the disk cache.
This method is similar to using mi::neuraylib::IExport_api::export_elements(), but will save a snapshot in the disk cache specified.
The following optional exporter options are supported:
"recurse"
of type mi::IBoolean: If true
, any elements referenced by the elements in the elements
array are exported as well. Default: true
.transaction | The transaction to use for the export. | |
elements | The elements to export. Only supports element names as IString. | |
exporter_options | The exporter options. | |
[in,out] | snapshot_id | The ID of the snapshot to use. If an empty string is passed an automatically generated unique identifier will be assigned to this string. |
|
pure virtual |
Imports a previously saved snapshot from the disk cache.
This method is similar to using mi::neuraylib::IImport_api::import_elements(), but will load a previously saved snapshot from the disk cache.
In the case of incremental snapshots the base snapshot must be loaded first, and then each incremental snapshot in sequence.
Currently no importer options are supported.
transaction | The transaction into which to import the elements. |
snapshot_id | The ID of the snapshot to import. |
importer_options | Optional importer options. |
|
pure virtual |
Removes a snapshot from the disk cache.
snapshot_id | The ID of the snapshot to remove. |