This class implements the runtime interpreter of server object models. More...
#include <ilserver/rtmodel.h>
Static Public Member Functions | |
static IlsBoolean | DeclDerivedEvaluator (const IlsString &typeNm, const IlsString &attributeNm, IlsDerivedEvaluatorFunction f) |
Assigns an evaluation function f to a derived dynamic attribute attributeNm of the server object type typeNm. | |
static IlsBoolean | DeclFunImplementation (const IlsString &typeNm, const IlsString &cbNm, IlsRTFunctionPtr f) |
Assigns a new implementation function to the function funNm declared to the server model interpreter for the class typeNm. More... | |
static IlsBoolean | DeclFunParameter (const IlsString &typeNm, const IlsString &cbNm, const IlsString ¶mType) |
This static member function declares a new parameter of type paramType for the method cbNm of type tpNm. More... | |
static IlsBoolean | DeclIdxAttributeMap (const IlsString &typeNm, const IlsString &attributeNm, const IlsString &strIdx, int numIdx) |
Associates the string strIdx with the numeric index value numIdx of the indexed attribute attributeNm of the server object type named typeNm. More... | |
static const IlsFunctionDef * | GetGlobalFunction (const IlsString &name) |
Returns a pointer to the runtime definition of the global function named funName, or a null pointer if no such function is declared in the interpreter. More... | |
static IlsFunctionDef const ** | GetGlobalFunctions (int &dim) |
Returns an array of the global functions declared in the server. | |
static int | GetIdxAttributeMap (const IlsString &typeNm, const IlsString &attributeNm, const IlsString &strIdx) |
Returns the index value associated between the string strIdx and the indexed attribute attributeNm of the server object type named typeNm. More... | |
static const IlsObjectType ** | GetObjectTypes (int &dim) |
Returns an array of constant pointers to the server object types for which runtime access has been declared. More... | |
static const IlsObjectType * | GetType (const IlsString &typeNm) |
Returns a pointer to the server object type named typeNm, or the null pointer if this type has not been declared as accessible at runtime. | |
static IlsBoolean | UndeclIdxAttributeMap (const IlsString &typeNm, const IlsString &attributeNm, const IlsString &strIdx) |
Retracts the association declared between the string strIdx and the indexed attribute attributeNm of the server object type named typeNm. More... | |
This class implements the runtime interpreter of server object models.
Library: mvserver
A server object model defines object types with their attributes, relations, and functions. It is implicitly declared to the interpreter via the initialization of data encapsulated in macros such as ILS_OBJECT_BEGIN()
/ILS_OBJECT_END()
, ILS_ENTITY_BEGIN()
/ILS_ENTITY_END()
, ILS_OWNS_XXX()
,ILS_USES_XXX()
,ILS_INVERTED_XXX()
,ILS_ENTRY_XXX()
, ILS_DERIVED_XXX()
, etc.
The interpreter is used internally by Rogue Wave Server to check and pre-process dynamic view types. It is transparent to the developer. However, it can be used when an application needs to introspect the server model at runtime.
|
static |
Assigns a new implementation function to the function funNm declared to the server model interpreter for the class typeNm.
If the typeNm argument is empty, the implementation of the global function funNm is assigned.
When this method is called, the function f is invoked.
Use this member function when you choose to work with dynamic modeling services to assign a C++ function to a dynamic member function declared to the server model interpreter.
|
static |
This static member function declares a new parameter of type paramType for the method cbNm of type tpNm.
If typeNm is null, the parameter is added to the global function cbNm. The new parameter is added to the list of parameters for the corresponding function.
Use this function if you have declared a new dynamic member function using the IlsDynModelInterpreter
API.
|
static |
Associates the string strIdx with the numeric index value numIdx of the indexed attribute attributeNm of the server object type named typeNm.
This label can be used instead of the numeric value in dynamic view type specifications. Thus, if an association is declared between the string "second" and the index value "2" for the Server attribute attr, the following two expressions:
and
refer to the same Server indexed attribute value in a dynamic view type specification.
IlsMvValue
).The function returns IlsFalse
if:
Otherwise it returns IlsTrue
.
|
static |
Returns a pointer to the runtime definition of the global function named funName, or a null pointer if no such function is declared in the interpreter.
ILS_GLOBAL_FUNCTION()
.
|
static |
Returns the index value associated between the string strIdx and the indexed attribute attributeNm of the server object type named typeNm.
It returns -1 if no such association was previously declared. Otherwise, it returns the mapped index value.
|
static |
Returns an array of constant pointers to the server object types for which runtime access has been declared.
The reference argument dim is assigned to the dimension of the array. It is up to the caller to delete the returned array.
|
static |
Retracts the association declared between the string strIdx and the indexed attribute attributeNm of the server object type named typeNm.
It returns IlsFalse
if no such association was previously declared. Otherwise, it returns IlsTrue
.