The dip.io.storage module implements support for specific storage types.
Base class: BaseStorage
The QIODeviceStorage class is an abstract base class for storage that is accessed via a QIODevice.
Return the implicit storage location for a model.
| Parameter: | model – is the model. |
|---|---|
| Returns: | None as devices typically have explicit locations. |
A storage location is converted to a QIODevice instance. This must be reimplemented by a sub-class.
| Parameter: | location – is the storage location. |
|---|---|
| Returns: | the QIODevice. |
Read a model from a filesystem location.
| Parameters: |
|
|---|---|
| Returns: | the read model. This may be the original model populated from the filesystem location, or it may be a different model (of an appropriate type) created from the filesystem location. If None is returned then it is assumed that the read was abandoned and the user informed appropriately. |
Write a model to a filesystem location.
| Parameters: |
|
|---|