ILS_RW_RELATION_N
 
ILS_RW_RELATION_N
Category 
Dynamic view-related macro (server side)
Description 
This macro declares multiple server object relation as being accessible at runtime. This type of relation differs from the runtime relations declared with the macros ILS_OWNS_N, ILS_USES_N and ILS_W_RELATION_N in that its accessors and its modifier (that is, the member function used to add or remove target objects) are user-defined.
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_RW_RELATION_N(origin,target,relNm,relAccessor,modifier)
This macro takes the following arguments:
*origin designates the class where the relation is declared.
*target specifies the class of the relation target.
*relNm stands for the name of the relation.
*relAccessor is an accessor to the relation with the following signature:
IlsViewedRel* ownerType::relAccessor();
*modifier is an editing function that has the following signature:
IlsBoolean ownerType::modifier(targetType&,IlsBoolean);
Its first argument specifies the object to be added to or removed from the relation. The second argument is a Boolean value that indicates whether that object should be added (IlsTrue) or removed (IlsFalse).
When the modifier returns IlsFalse) and the rollback mode is enabled by the component, the current transaction is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See the “Transaction Control” sections in the IlsMvComponent and IlsMvServer class descriptions for more information.
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 the result specified in the model.
*It can be invoked with arguments specified in the model.
See Also 
IlsOwns, ILS_OWNS_N, ILS_R_RELATION_N, IlsUses, ILS_USES_N, ILS_W_RELATION_N

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