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.
Return the implicit storage location for an object.
| Parameter: | obj – is the object to create the location for. |
|---|---|
| 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 an object from a storage location.
| Parameters: |
|
|---|---|
| Returns: | the read object. This may be the original object populated from the storage location, or it may be a different object (of an appropriate type) created from the storage location. |
Write an object to a filesystem location.
| Parameters: |
|
|---|