ILS_R_RELATION_N
Category
Dynamic view-related class (server side)
Description
This macro declares a Server n-ary relation as being accessible at runtime. This relation can be of type
IlsOwns,
IlsUses, or
IlsInvertedRelation. It differs from the macros
ILS_OWNS_N,
ILS_USES_N, and
ILS_INVERTED_N, in that the accessors to the relation and the relation target are user-defined. Moreover, no modifier is supplied.
A runtime relation declared with this macro cannot be modified.
This macro can only be enclosed between the following pairs of macros:
or their derivatives.
Synopsis
ILS_R_RELATION_N(originType,targetType,relation,getRelation)
Arguments
This macro takes the following arguments:
originType is the class where the relation is declared.
targetType is the target class.
relation is the name of the relation.
getRelation is an accessor to the relation with the following signature:
IlsViewedRel* originType::getRelation();
The signature of this function may vary under the following conditions:
The function is a member of the class
originType or of a parent class.
Its result implicitly converts to
IlsViewedRel*.
It can be invoked without argument.
See Also
Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.