Server
API Reference Guide
Product Documentation:

Visualization Server
Documentation Home
List of all members | Public Member Functions | Protected Member Functions
IlsViewedRel Class Referenceabstract

This class is the parent class for all classes that declare relations. More...

#include <ilserver/viewed.h>

Inheritance diagram for IlsViewedRel:
IlsInvertedRelation< TargetType, OriginType > IlsInvertedRelation< IlsDynObject, IlsUsed > IlsSimpleRelation IlsOwns< OwnerType, OwnedType > IlsOwns< IlsDynObject, IlsObject > IlsUses< UserType, UsedType > IlsUses< IlsDynObject, IlsUsed >

Public Member Functions

virtual IlsViewedgetIdentifiedElement (const IlsString &id) const
 This virtual member function is used to retrieve an identified object from the relation. More...
 
virtual IlsBoolean hasElement (IlsViewed &) const
 This virtual member function returns IlsTrue if the element is a target of the relation or IlsFalse otherwise.
 
IlsBoolean isViewed ()
 This member function returns IlsTrue if at least one regular view (as opposed to a multithreaded view) subscribes to the relation. More...
 
virtual void onSubscribe (IlsView &)
 This empty virtual member function is called each time a view subscribes to the relation.
 
virtual void onUnsubscribe (IlsView &)
 This empty virtual member function is called each time the subscription of a view to the relation is canceled.
 

Protected Member Functions

 IlsViewedRel ()
 This is the protected constructor of the class.
 

Detailed Description

This class is the parent class for all classes that declare relations.

Library: server

It is used as an argument in some member functions of the class IlsMvView.

See also
IlsMvView, IlsOwns, IlsOwnsDynamicArray, IlsOwnsFixedArray, IlsOwnsList, IlsUses, IlsUsesDynamicArray, IlsUsesFixedArray, IlsUsesList.

Member Function Documentation

◆ getIdentifiedElement()

virtual IlsViewed* IlsViewedRel::getIdentifiedElement ( const IlsString id) const
virtual

◆ isViewed()

IlsBoolean IlsViewedRel::isViewed ( )

This member function returns IlsTrue if at least one regular view (as opposed to a multithreaded view) subscribes to the relation.

This function is supplied to maintain upward compatibility. For efficiency reasons, multithreaded views do not update this information. However, you can have it updated by overriding the virtual member functions onSubscribe() and onUnsubscribe().