IOLink
IOL_v1.6.1_release
|
Extension used to access view's origins if it exists. More...
#include <iolink/view/ViewOriginExtension.h>
Public Member Functions | |
virtual uint64_t | uid () const =0 |
Returns an unique identifier for current view. More... | |
virtual size_t | parentCount () const =0 |
Returns the count of parents used to create the current view. More... | |
virtual std::shared_ptr< ViewOriginExtension > | parent (size_t idx) const =0 |
Returns, for the given index, the viewOrigin extension of the parent used to create the current view. More... | |
virtual ViewDataOrigin | dataOrigin () const =0 |
Returns the data origin of current view. More... | |
virtual std::string | displayName () const =0 |
Returns the name of the current view to display. More... | |
std::string | toString () const |
String representation of the extension. | |
Static Public Attributes | |
static constexpr size_t | EXTENSION_ID = 0x3 |
Identifier used to load the extension using the View::extension method. | |
Extension used to access view's origins if it exists.
Views can be created from scratch, but also from one or many other views. This extension provides methods which allow to build the dependency tree of current view. It also helps to retrieve information to know data origin and to identify a view between others.
|
pure virtual |
Returns the data origin of current view.
Error | if data origin is not available |
|
pure virtual |
Returns the name of the current view to display.
Error | if display name is not available |
|
pure virtual |
Returns, for the given index, the viewOrigin extension of the parent used to create the current view.
idx | index of parent to retrieve |
Error | if the index is out of range |
|
pure virtual |
Returns the count of parents used to create the current view.
|
pure virtual |
Returns an unique identifier for current view.