The dip.io.storage module implements support for specific storage types.
Base class: Model
The QIODeviceStorage class is an abstract base class for storage that is accessed via a QIODevice.
The number of bytes to read at a time.
Return the implicit storage location for a model.
| Parameters: | 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.
| Parameters: | 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. |
Write a model to a filesystem location.
| Parameters: |
|
|---|