ILS_SV_MEMBER_FUNCTION
 
ILS_SV_MEMBER_FUNCTION
Category 
Dynamic view-related macros
Description 
These macros are similar to the macros ILS_MEMBER_FUNCTION macros except that they can accept Server types as their arguments. When a member function is declared through these macros, that function cannot be used from a dynamic-view type specification file nor from the execCallback API. These macros are meant to be used only from scripts whithin the context of Rogue Wave Views Script integration.
Even if a Server type appears as an argument to this function, the implementation function must declare an IlsMvFile object in its signature. When the member function is called from a script file, Rogue Wave Server encapsulates the pointer to the server object into an IlsMvValue of type IlsSvRef. See section Dynamic Member Functions of Chapter Rogue Wave Views Script Integration in the User’s Manual for more information.
Header File 
#include <ilserver/rtmodel.h>
Synopsis 
ILS_SV_MEMBER_FUNCTION0(resType,objType,funNm)
ILS_SV_MEMBER_FUNCTION1(resType,objType,funNm,param1Type)
ILS_SV_MEMBER_FUNCTION2(resType,objType,funNm,param1Type,
param2Type)
ILS_SV_MEMBER_FUNCTION3(resType,objType,funNm,
param1Type,param2Type,param3Type)
ILS_SV_MEMBER_FUNCTION4(resType,objType,funNm,param1Type,
param2Type,param3Type,param4Type)
ILS_SV_MEMBER_FUNCTION5(resType,objType,funNm,param1Type,
param2Type,param3Type,param4Type,param5Type)
ILS_SV_MEMBER_FUNCTION6(resType,objType,funNm,param1Type,
param2Type,param3Type,param4Type,
param5Type,param6Type)
Arguments 
These macros take the following arguments in this order:
*the type of the function return value,
*the Server type to which the member function belongs,
*the function name,
*the types of the function parameters.
All the runtime member functions of a same class must have a unique name. The result and the parameters of a member function can be of the following types:
*char
*IlsString
*IlsBoolean
*short
*int
*long
*float
*double
*Any type that derives from IlsMvUserType.
When a runtime-accessible member function is called from the component, the result
is not sent back to this component, since the callback mechanism is completely asynchronous. However, to allow for macro expansion requirements, such a function cannot have a result of type void.
See Also 
ILS_MEMBER_FUNCTION, IlsSvRef

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