IOLink
IOL_v1.6.1_release
Changes
ChangeLog
API ChangeLog
User guide
Capacities
Overview
Installation
Getting started
View concept
Storage concept
Fundamentals
Custom implementation
Serialization
Extensions
Data Frames
Namespaces
Namespace List
Namespace Members
All
a
c
d
i
l
m
o
p
r
s
v
Functions
Typedefs
a
d
i
m
p
r
s
v
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
Typedefs
Related Functions
Files
File List
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
StreamAccessProvider.h
1
#pragma once
2
3
#include <iolink/IOLinkAPI.h>
4
#include <iolink/storage/StreamAccess.h>
5
6
#include <memory>
7
8
namespace
iolink
9
{
10
14
class
IOLINK_INTERFACE_API
StreamAccessProvider
15
{
16
public
:
20
inline
static
bool
isStreamAccess
(std::shared_ptr<DataAccess> accessor) noexcept
21
{
22
return
(
dynamic_cast<
const
StreamAccess
*
>
(accessor.get()) !=
nullptr
);
23
}
24
30
inline
static
std::shared_ptr<StreamAccess>
toStream
(std::shared_ptr<DataAccess> storage) noexcept
31
{
32
return
std::dynamic_pointer_cast<StreamAccess>(storage);
33
}
34
};
35
36
}
// end namespace iolink
iolink::StreamAccess
Mother interface for all stream-like data accessors.
Definition:
StreamAccess.h:59
iolink
All IOLink symbols are enclosed in this namespace.
Definition:
ArrayX.h:7
iolink::StreamAccessProvider
Utility class to check and convert a DataAccess into a StreamAccess.
Definition:
StreamAccessProvider.h:14
iolink::StreamAccessProvider::isStreamAccess
static bool isStreamAccess(std::shared_ptr< DataAccess > accessor) noexcept
Checks if DataAccess is a StreamAccess.
Definition:
StreamAccessProvider.h:20
iolink::StreamAccessProvider::toStream
static std::shared_ptr< StreamAccess > toStream(std::shared_ptr< DataAccess > storage) noexcept
Definition:
StreamAccessProvider.h:30
iolink
public
include
iolink
storage
StreamAccessProvider.h
Generated on Thu Sep 7 2023 08:17:19 for IOLink by
1.8.17