ILS_R_RELATION_N
 
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:
*ILS_OBJECT_BEGIN/ILS_OBJECT_END
*ILS_ENTITY_BEGIN/ILS_ENTITY_END
*ILS_MVVIEW_BEGIN/ILS_MVVIEW_END
or their derivatives.
Header File 
#include <ilserver/rtmodel.h>
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 
IlsInvertedRelation, ILS_INVERTED_N, IlsOwns, ILS_OWNS_N, ILS_RW_RELATION_N, IlsUses, ILS_USES_N, ILS_W_RELATION_N

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.