ILS_R_RELATION_1
Category
Dynamic view-related class (server side)
Description
This macro declares a server unary relation as being accessible at runtime. This relation can be of type
IlsOwns,
IlsUses, or
IlsInvertedRelation. It differs from the macros
ILS_OWNS_1,
ILS_USES_1, and
ILS_INVERTED_1, 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_1(originType,
targetType,
relation,
getRelation,
getTarget)
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* ownerType::getRelation();
getTarget is an accessor to the relation target with the following signature:
IlsViewed* ownerType::getTarget();
The signature of these functions 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 the result specified in the model.
It can be invoked with the arguments specified in the model.
See Also
Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.