| IOLink 1.11.0

Loading...
Searching...
No Matches
Public Member Functions | List of all members
iolink::View Class Reference

Interface representing a generic view on data. More...

`#include <iolink/view/View.h>`

Inheritance diagram for iolink::View:

## Public Member Functions
virtual std::shared_ptr< Extension > | extension (size_t id)
| Get an extension of the view, corresponding to the given identifier.
template<typename T >
std::shared_ptr< T > | extension ()
| Get an extension of the view, corresponding to the given type.
std::shared_ptr< ViewOriginExtension > | viewOrigin ()
| Shortcut to access to ViewOrigin extension.

## Detailed Description

Interface representing a generic view on data.

## Member Function Documentation

## ◆ extension() [1/2]

template<typename T >

std::shared_ptr< T > iolink::View::extension | ( |  | ) |
| inline

Get an extension of the view, corresponding to the given type.

Template Parameters

  T | The extension type.

Examples
  customImageView.cpp.

## ◆ extension() [2/2]

virtual std::shared_ptr< Extension > iolink::View::extension | ( | size_t | id | ) |
| virtual

Get an extension of the view, corresponding to the given identifier.

Parameters

  id | The extension identifier.

Exceptions

  Error | When the required extension is not available.

See also
  Extension

Reimplemented in CheckerboardImageView.

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

- iolink/public/include/iolink/view/View.h