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 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. |
Write a model to a filesystem location.
Parameters: |
|
---|