| IOLink 1.11.0

Loading...
Searching...
No Matches
DataAccess.h
1#pragma once
2
3#include <memory>
4#include <string>
5
6#include <iolink/IOLinkAPI.h>
7
8 namespace iolink
9{
10
11 class DataStorage;
12
19 class IOLINK_API DataAccess
20{
21 public:
22 virtual ~DataAccess() = default;
23
27 virtual std::shared_ptr<DataStorage> storage() const = 0;
28
32 virtual const std::string& resourceId() const = 0;
33};
34
35} // namespace iolink
iolink::DataAccess
Parent interface of interfaces used to manipulate raw bytes.
Definition DataAccess.h:20
iolink::DataAccess::resourceId
virtual const std::string & resourceId() const =0
Return the resource identifier of this data accessor.
iolink::DataAccess::storage
virtual std::shared_ptr< DataStorage > storage() const =0
Get the storage to which this data accessor belong.
iolink
All IOLink symbols are enclosed in this namespace.
Definition ArrayX.h:8