ILS_RP_DEFAULT_XXX
 
ILS_RP_DEFAULT_XXX
Category 
Dynamic view-related macros (component side)
Description 
The macros ILS_RP_DEFAULT_XXX let you associate a default editing function with runtime representation attributes. These editing functions are called when a runtime representation attribute is updated and has not declared any editing function for its value type (see the macros ILS_RP_ATTR_XXX for details). These macros have the same semantics and are used in the same way as the ILS_RP_ATTR_XXX macros, except that:
*These macros do not take any attrLabel argument.
*The associated editing function takes a string that is the label of the attribute as its first argument.
For instance, the editing function has the following signature, or a derivative, for attributes of type long:
void rpType::modifier(IlsString attrLabel,long value);
Header File 
#include <ilserver/rpmoditp.h>
Synopsis 
ILS_RP_DEFAULT_BOOLEAN(rpType,modifier)
ILS_RP_DEFAULT_CHAR(rpType,modifier)
ILS_RP_DEFAULT_INT(rpType,modifier)
ILS_RP_DEFAULT_LONG(rpType,modifier)
ILS_RP_DEFAULT_FLOAT(rpType,modifier)
ILS_RP_DEFAULT_DOUBLE(rpType,modifier)
ILS_RP_DEFAULT_STRING(rpType,modifier)
ILS_RP_DEFAULT_USERTYPE(rpType,userType,modifier)
ILS_RP_DEFAULT_HREF(rpType,modifier)
ILS_RP_DEFAULT_REF(rpType,modifier)
ILS_RP_DEFAULT_FILE(rpType,modifier)
ILS_RP_DEFAULT_MVVALUE(rpType,modifier)
Note: Rogue Wave Server does not differentiate between the “integer” and “long” types, “int” being considered an equivalent of “long”, both on the server side and on the component side. As a consequence, the macros ILS_RP_DEFAULT_INT and ILS_RP_DEFAULT_LONG are mutually exclusive.
See Also 
IlsMvFile, IlsRepresentation, ILS_RP_ATTR_XXX, ILS_RP_INDEXED_DEFAULT_XXX, IlsRpObject, IlsString

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