ILS_DERIVED_XXX
 
ILS_DERIVED_XXX
Category 
Dynamic view-related macros (server side)
Description 
The macros ILS_DERIVED_XXX declare server derived data members as being accessible at runtime so that they can be used in view specifications. These runtime attributes use the IlsDerived member functions getValue, isModified, incrEagerness, decrEagerness.
These macros can be enclosed only 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_DERIVED_BOOLEAN(objType,derivedLabel)
ILS_DERIVED_CHAR(objType,derivedLabel)
ILS_DERIVED_SHORT(objType,derivedLabel)
ILS_DERIVED_INT(objType,derivedLabel)
ILS_DERIVED_LONG(objType,derivedLabel)
ILS_DERIVED_FLOAT(objType,derivedLabel)
ILS_DERIVED_DOUBLE(objType,derivedLabel)
ILS_DERIVED_STRING(objType,derivedLabel)
ILS_DERIVED_USERTYPE(objType,derivedType,derivedLabel)
ILS_DERIVED_MVVALUE(objType,derivedLabel)
ILS_DERIVED_ENUM(objType,enumType,attrLabel)
Macros 
ILS_DERIVED_BOOLEAN(objType,derivedLabel)
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType. This attribute is of type Boolean. It cannot be modified.
ILS_DERIVED_CHAR(objType,derivedLabel)
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType. This attribute is of type char. It cannot be modified.
ILS_DERIVED_SHORT(objType,derivedLabel)
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType. This attribute is of type short. It cannot be modified.
ILS_DERIVED_INT(objType,derivedLabel)
ILS_DERIVED_LONG(objType,derivedLabel)
These macros declare the derived data member specified by derivedLabel as a runtime attribute of the class objType. Since Rogue Wave Server does not differentiate between the int and long types, these macros are equivalent and the attribute is of type long. It cannot be modified.
ILS_DERIVED_FLOAT(objType,derivedLabel)
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType. This attribute is of type float. It cannot be modified.
ILS_DERIVED_DOUBLE(objType,derivedLabel)
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType. This attribute is of type double. it cannot be modified.
ILS_DERIVED_STRING(objType,derivedLabel)
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType. This attribute is of type IlsString or char*. It cannot be modified.
ILS_DERIVED_USERTYPE(objType,derivedType,derivedLabel)
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType. It cannot be modified. This attribute is of the user-defined type derivedType. For details, see the macros IILS_USERTYPE_DECL/ILS_USERTYPE_DEF.
It cannot be modified.
ILS_DERIVED_MVVALUE(objType,derivedLabel)
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType. This attribute is of type IlsMvValue. It cannot be modified.
ILS_DERIVED_ENUM(objType,enumType,derivedLabel)
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType. The enumType attribute is a of the user-defined enum type. It cannot be modified.
See Also 
IlsMoveDirective, ILS_R_ATTRIBUTE_XXX

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