An IlsFunctionDef object defines the runtime visibility and access to a member function of a server object type or a global function.
More...
#include <ilserver/rtmodel.h>
Inherits IlsPropertyManager.
Inherited by IlsSvFunctionDef.
Public Member Functions | |
| IlsMvValue | execute (void *obj, const IlsMvValue *args, int dim) const |
| Executes the function registered in this definition object. More... | |
| IlsRTFunction | getImplementation () const |
| Returns a wrapper on the user function registered in this definition object. More... | |
| const IlsString & | getName () const |
| Returns the name of the function. | |
| IlsMvDataType *const * | getParameters (int &dim) const |
| Returns an array of the parameter types of of the user function. More... | |
| int | getParamsNb () const |
| Returns the number of parameters of the user function. | |
| const IlsMvDataType & | getResType () const |
| Returns the type of the result yielded by the function. | |
| IlsString | getSignature () const |
| Returns a string containing the signature of the function. | |
| IlsBoolean | isExported () const |
Returns IlsTrue if this element of the server model interpreter is exported. More... | |
| IlsBoolean | isImplicit () const |
Returns IlsTrue if the function has been implicitly declared by Rogue Wave Server. More... | |
| void | setExported (IlsBoolean b) |
| Use this member function to export an element of the server model interpreter or to cancel exportation. More... | |
An IlsFunctionDef object defines the runtime visibility and access to a member function of a server object type or a global function.
Library: mvserver
and mvcomp
It is implicitly created in the server model interpreter via static initialization data declared in macros such as or ILS_MEMBER_FUNCTION()ILS_GLOBAL_FUNCTION().
| IlsMvValue IlsFunctionDef::execute | ( | void * | obj, |
| const IlsMvValue * | args, | ||
| int | dim | ||
| ) | const |
Executes the function registered in this definition object.
The argument obj is the Server object on which the user function should be called. It should be cast to void*. This method also takes an array of arguments and returns the return value of the user function.
| IlsRTFunction IlsFunctionDef::getImplementation | ( | ) | const |
Returns a wrapper on the user function registered in this definition object.
See the definition of IlsRTFunction.
| IlsMvDataType* const* IlsFunctionDef::getParameters | ( | int & | dim | ) | const |
Returns an array of the parameter types of of the user function.
The returned array must not be destroyed.
| IlsBoolean IlsFunctionDef::isExported | ( | ) | const |
Returns IlsTrue if this element of the server model interpreter is exported.
By default, all model interpreter elements are exported.
| IlsBoolean IlsFunctionDef::isImplicit | ( | ) | const |
Returns IlsTrue if the function has been implicitly declared by Rogue Wave Server.
It is the case, for instance, of the member function isOriginfunction(), which is implicitly declared on Server object types.
| void IlsFunctionDef::setExported | ( | IlsBoolean | b | ) |
Use this member function to export an element of the server model interpreter or to cancel exportation.
Non-exported elements are not seen in Rogue Wave Server Studio.