Describes a data source, that manages and opens DataAccess instances.
More...
#include <iolink/storage/DataStorage.h>
Describes a data source, that manages and opens DataAccess instances.
◆ openRandomAccess()
Open an array-like accessor to a given resource.
- Parameters
-
resourceId | The resource name |
capabilities | The capabilities you want the accessor to support |
- Returns
- The opened random-access accessor.
- Exceptions
-
Error | if the storage can not access to the resource. |
Error | if the resource does not support the request capabilities. |
- See also
- DataAccess::resourceId for more info on this identifier.
◆ openStreamAccess()
Open a stream-like accessor to a given resource.
- Parameters
-
resourceId | The resource name |
capabilities | The capabilities you want the accessor to support |
- Returns
- The opened stream accessor.
- Exceptions
-
Error | if the storage can not access to the resource. |
Error | if the resource does not support the requested capabilities. |
- See also
- DataAccess::resourceId for more info on this identifier.
◆ source()
virtual const std::string& iolink::DataStorage::source |
( |
| ) |
const |
|
pure virtual |
Return a string that describe the storage's source of data.
Usually has the form of an URI, for example:
- "file:/home/user/folder" for a filesystem storage
- "http://amazing.website.net" for an HTTP storage
The documentation for this class was generated from the following file: