IOLink  IOL_v1.1.0_release
iolink::RandomAccessProvider Class Reference

Utility class to check and convert a DataAccess into a RandomAccess. More...

#include <iolink/storage/RandomAccessProvider.h>

Static Public Member Functions

static bool isRandomAccess (std::shared_ptr< DataAccess > randomAccess) noexcept
 Checks if DataAccess supports RandomAccess interface.
 
static std::shared_ptr< RandomAccesstoRandom (std::shared_ptr< DataAccess > accessor) noexcept
 Return the RandomAccess interface if the accessor supports it. More...
 

Detailed Description

Utility class to check and convert a DataAccess into a RandomAccess.

Member Function Documentation

◆ toRandom()

static std::shared_ptr<RandomAccess> iolink::RandomAccessProvider::toRandom ( std::shared_ptr< DataAccess accessor)
inlinestaticnoexcept

Return the RandomAccess interface if the accessor supports it.

If it does not support this interface, returns null.


The documentation for this class was generated from the following file: