Server API Reference Guide |
Visualization Server Documentation Home |
Set of classes and macros to be used on server side when using dynamic views. More...
Set of classes and macros to be used on server side when using dynamic views.
Classes | |
class | IlsMvEndPoint::ConnectionListener |
Class used to listen disconnections. More... | |
class | IlsAttributeDef |
An IlsAttributeDef object defines the runtime visibility and access to an attribute (usually an entry or a derived data member) of a server object type. More... | |
class | IlsDynModelInterpreter |
This class allows you to declare a dynamic model in a Rogue Wave Server application. More... | |
class | IlsDynMvServer |
This subclass of IlsMvServer runs a dynamic view server with dynamic modeling capabilities. More... | |
class | IlsFunctionDef |
An IlsFunctionDef object defines the runtime visibility and access to a member function of a server object type or a global function. More... | |
class | IlsModelInterpreter |
This class implements the runtime interpreter of server object models. More... | |
class | IlsMvComponentItf |
This class implements the interface of a component that interacts with a dynamic view server. More... | |
class | IlsMvDataType |
Defines the type of attributes that is attached to a representation object model. More... | |
class | IlsMvEndPoint |
This class is the base class for any component connected to a dynamic view server and for the interface of these components as handled by the server. More... | |
class | IlsMvFile |
This class is used to transmit the name and contents of a file from the server to the component. More... | |
class | IlsMvMessage |
This class is internally used by Rogue Wave Server to exchange interaction messages between an object server and application components. More... | |
class | IlsMvProcess |
The class IlsMvProcess implements a set of functions needed by any Rogue Wave Server component or server process. More... | |
class | IlsMvRef |
This class is used to transmit references of representation objects between a component and a server. More... | |
class | IlsMvServer |
This class lets you define dynamic view servers. More... | |
class | IlsMvServerFactory |
This class is a factory class used to create instances of the class IlsMvServer . More... | |
class | IlsMvTimeManager |
This singleton manages the current timer used by the dynamic view that exploits the currentTime view attribute. More... | |
class | IlsMvUser |
Repressents the user of a component connection. More... | |
class | IlsMvUserFactory |
Factory class that applies to instances of the class IlsMvUser . More... | |
class | IlsMvUserType |
This class is the base class for all user-defined types. More... | |
class | IlsMvValue |
This class encapsulates the value of the runtime attributes attached to representation objects. More... | |
class | IlsMvView |
Dynamic view class. More... | |
class | IlsObjectType |
Defines the runtime visibility and access of a server object type (a subtype of the class IlsObject or IlsEntity ). More... | |
class | IlsRelationDef |
An IlsRelationDef object defines the runtime visibility and access to a relation of a server object type. More... | |
class | IlsRTTypes |
Nesting types for AttributeKind and RelationKind . More... | |
class | IlsSvModelObserver |
Model observer. More... | |
class | IlsSvRef |
This class encapsulates a pointer to a server object along with its type, in a non-typed way. More... | |
class | IlsTranslationMng |
API FOR ADVANCED USERS – This class is used to managed the encoding and decoding functions used to translate strings between different locales. More... | |
class | MvArray |
User-defined array class that inherits from IlsMvUserType . More... | |
class | MvDateTime |
This class allows dates and times to be exchanged between processes. More... | |
struct | IlsMvMessage::SvMsg |
This structure enables you to specify a message identifier, a message level and a message description. More... | |
Macros | |
#define | ILS_DERIVED_BOOLEAN(holder, derivedLabel) |
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_CHAR(holder, derivedLabel) |
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_DOUBLE(holder, derivedLabel) |
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_ENUM(holder, derivedType, attrLabel) |
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_FLOAT(holder, derivedLabel) |
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_INT(holder, derivedLabel) |
This macros declare the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_LONG(holder, derivedLabel) |
This macros declare the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_MVVALUE(holder, derivedLabel) |
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_SHORT(holder, derivedLabel) |
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_STRING(holder, derivedLabel) |
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_USERTYPE(holder, derivedType, derivedLabel) |
This macro declares the derived data member specified by derivedLabel as a runtime attribute of the class objType . More... | |
#define | ILS_DERIVED_XXX() |
The macros ILS_DERIVED_XXX() declare server derived data members as being accessible at runtime so that they can be used in view specifications. More... | |
#define | ILS_ENTITY1_BEGIN(typeNm, parent1) |
Macro for declaring an entity that derives from another object type. More... | |
#define | ILS_ENTITY2_BEGIN(typeNm, parent1, parent2) |
Macro for declaring an entity that derives from two other object types. More... | |
#define | ILS_ENTITY_BEGIN(typeNm) |
This macro and IL_ENTITY_END() declare a server object type deriving from IlsEntity to the server model interpreter. More... | |
#define | ILS_ENTITY_DECL(typeNm) |
This macro declares a server object type that derives from IlsEntity to the server model interpreter. More... | |
#define | ILS_ENTITY_END(typeNm) |
This macro and IL_ENTITY_BEGIN() declare a server object type deriving from IlsEntity to the server model interpreter. More... | |
#define | ILS_ENTITY_INIT(typeNm) |
#define | ILS_ENTRY_BOOLEAN(holder, entryLabel) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_CHAR(holder, entryLabel) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_DOUBLE(holder, entryLabel) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_ENUM(holder, entryType, entryLabel) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_FLOAT(holder, entryLabel) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_INT(holder, entryLabel) |
This macros declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_LONG(holder, entryLabel) |
This macros declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_MVVALUE(holder, entryLabel) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_SHORT(holder, entryLabel) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_STRING(holder, entryLabel) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_USERTYPE(holder, entryType, entryLabel) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_ENTRY_XXX() |
The macros ILS_ENTRY_XXX() declare Server entry data members as being accessible at runtime so that they can be used in view specifications. More... | |
#define | ILS_GLOBAL_FUNCTION() |
These macros declare global functions as being accessible at runtime, so that they can be used in dynamic view type specifications. More... | |
#define | ILS_GLOBAL_FUNCTION0(resType, funNm) |
declare global function with no parameter to runtime interpreter. More... | |
#define | ILS_GLOBAL_FUNCTION1(resType, funNm, p1Type) |
declare global function with one parameter to runtime interpreter. More... | |
#define | ILS_GLOBAL_FUNCTION2(resType, funNm, p1Type, p2Type) |
declare global function with two parameters to runtime interpreter. More... | |
#define | ILS_GLOBAL_FUNCTION3(resType, funNm, p1Type, p2Type, p3Type) |
declare global function with three parameters to runtime interpreter. More... | |
#define | ILS_GLOBAL_FUNCTION4(resType, funNm, p1Type, p2Type, p3Type, p4Type) |
declare global function with four parameters to runtime interpreter. More... | |
#define | ILS_GLOBAL_FUNCTION5(resType, funNm, p1Type, p2Type, p3Type, p4Type, p5Type) |
declare global function with five parameters to runtime interpreter. More... | |
#define | ILS_GLOBAL_FUNCTION6(resType, funNm, p1Type, p2Type, p3Type, p4Type, p5Type, p6Type) |
declare global function with six parameters to runtime interpreter. More... | |
#define | ILS_GLOBAL_FUNCTION7(resType, funNm, p1Type, p2Type, p3Type, p4Type, p5Type, p6Type, p7Type) |
declare global function with seven parameters to runtime interpreter. More... | |
#define | ILS_INVERTED_1(target, origin, invRelNm, relNm) |
This macro declares a server relation of type IlsInvertedRelation as being accessible at runtime so that it can be used in view specifications. More... | |
#define | ILS_INVERTED_N(target, origin, invRelNm, relNm) |
This macro declares a server relation of type IlsInvertedRelationList as being accessible at runtime so that it can be used in view specifications. More... | |
#define | ILS_MEMBER_FUNCTION() |
These macros declare member functions of Server classes as being accessible at runtime, so that they can be used in dynamic view type specifications. They also enable a component to invoke the declared functions on server objects. More... | |
#define | ILS_MEMBER_FUNCTION0(resType, objType, funNm) |
declare member function with no parameter to runtime interpreter. More... | |
#define | ILS_MEMBER_FUNCTION1(resType, objType, funNm, p1Type) |
declare member function with one parameter to runtime interpreter. More... | |
#define | ILS_MEMBER_FUNCTION2(resType, objType, funNm, p1Type, p2Type) |
declare member function with two parameters to runtime interpreter. More... | |
#define | ILS_MEMBER_FUNCTION3(resType, objType, funNm, p1Type, p2Type, p3Type) |
declare member function with three parameters to runtime interpreter. More... | |
#define | ILS_MEMBER_FUNCTION4(resType, objType, funNm, p1Type, p2Type, p3Type, p4Type) |
declare member function with four parameters to runtime interpreter. More... | |
#define | ILS_MEMBER_FUNCTION5(resType, objType, funNm, p1Type, p2Type, p3Type, p4Type, p5Type) |
declare member function with five parameters to runtime interpreter. More... | |
#define | ILS_MEMBER_FUNCTION6(resType, objType, funNm, p1Type, p2Type, p3Type, p4Type, p5Type, p6Type) |
declare member function with six parameters to runtime interpreter. More... | |
#define | ILS_MEMBER_FUNCTION7(resType, objType, funNm, p1Type, p2Type, p3Type, p4Type, p5Type, p6Type, p7Type) |
declare member function with seven parameters to runtime interpreter. More... | |
#define | ILS_MVVIEW_BEGIN(typeNm, parent) |
This macro and ILS_MVVIEW_END() declare a subtype of IlsMvView to the view interpreter on the server side. More... | |
#define | ILS_MVVIEW_DECL(typeNm) |
This macro declares a subtype of IlsMvView to the view interpreter on the server side. More... | |
#define | ILS_MVVIEW_END(typeNm) |
This macro and ILS_MVVIEW_BEGIN() declare a subtype of IlsMvView to the view interpreter on the server side. More... | |
#define | ILS_MVVIEW_INIT(typeNm) |
#define | ILS_OBJECT1_BEGIN(typeNm, parent1) |
declare an object type that derives from another server object type to runtime interpreter. More... | |
#define | ILS_OBJECT1_WITH_ID_BEGIN(typeNm, ident, parent1) |
#define | ILS_OBJECT2_BEGIN(typeNm, parent1, parent2) |
declare an object type that derives from two other server object types to runtime interpreter. More... | |
#define | ILS_OBJECT2_WITH_ID_BEGIN(typeNm, ident, parent1, parent2) |
#define | ILS_OBJECT_BEGIN(typeNm) |
This macro with ILS_OBJECT_END() declares a server object class deriving from IlsObject to the server model interpreter. More... | |
#define | ILS_OBJECT_DECL(typeNm) |
This macro declares a server object type deriving from IlsObject to the server model interpreter. More... | |
#define | ILS_OBJECT_END(typeNm) |
This macro with ILS_OBJECT_BEGIN() declares a server object class deriving from IlsObject to the server model interpreter. More... | |
#define | ILS_OBJECT_INIT(typeNm) |
#define | ILS_OBJECT_WITH_ID_BEGIN(typeNm, ident) |
#define | ILS_OWNS_1(origin, target, relNm) |
This macro declares a server relation of type IlsOwns as being accessible at runtime so that it can be used in view specifications. More... | |
#define | ILS_OWNS_N(origin, target, relNm) |
This macro declares a multiple server relation of type IlsOwnsList , IlsOwnsSet , IlsOwnsDynamicArray , or IlsOwnsFixedArray as being accessible at runtime so that it can be used in view specifications. More... | |
#define | ILS_R_ATTRIBUTE_BOOLEAN(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type IlsBoolean and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_CHAR(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type char and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_DOUBLE(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type double and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_ENUM(holder, attrType, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of enum type attrType and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_FLOAT(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type float and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_INT(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type long and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_LONG(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type long and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_MVVALUE(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type IlsMvValue and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_SHORT(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type short and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_STRING(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type IlsString and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_USERTYPE(holder, attrType, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type attrType which derives from IlsMvUserType and cannot be modified. More... | |
#define | ILS_R_ATTRIBUTE_XXX() |
The macros ILS_R_ATTRIBUTE_XXX() declare a read-only runtime attribute for a server object type so that it can be used in dynamic view type specifications. More... | |
#define | ILS_R_INDEXED_ATTR_BOOLEAN(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of type IlsBoolean and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_CHAR(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of type char and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_DOUBLE(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of type double and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_ENUM(holder, attrType, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of enum type attrType and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_FLOAT(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of type float and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_INT(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of type long and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_LONG(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of type long and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_MVVALUE(holder, attrLabel, getValue, isModified, updEagerness) |
his macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of type IlsMvValue and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_SHORT(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of type short and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_STRING(holder, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of type IlsString and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_USERTYPE(holder, attrType, attrLabel, getValue, isModified, updEagerness) |
This macro declares attrLabel as a runtime indexed attribute of the class holder . This attribute is of type attrType which derives from IlsMvUserType and cannot be modified. More... | |
#define | ILS_R_INDEXED_ATTR_XXX() |
The macros ILS_R_INDEXED_ATTR_xxx declare a read-only runtime indexed attribute for a server object type so that it can be used in view specifications. More... | |
#define | ILS_R_RELATION_1(origin, target, relNm, relAccessor, targAccessor) |
This macro declares a server unary relation as being accessible at runtime. More... | |
#define | ILS_R_RELATION_N(origin, target, relNm, relAccessor) |
This macro declares a Server n-ary relation as being accessible at runtime. More... | |
#define | ILS_REVERSE(owner, relNm, revRelNm) |
This macro declares that a relation is the inverse relation of another relation. More... | |
#define | ILS_RW_ATTRIBUTE_BOOLEAN(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type IlsBoolean and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_CHAR(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type char and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_DOUBLE(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type double and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_ENUM(holder, attrType, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is an enum type attrType and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_FLOAT(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type float and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_INT(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type long (int and long are both considered as long in Server) and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_LONG(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type long and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_MVVALUE(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type IlsMvValue and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_SHORT(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type short and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_STRING(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type IlsString and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_USERTYPE(holder, attrType, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . This attribute is of type attrType which derives from IlsMvUserType and can be modified. More... | |
#define | ILS_RW_ATTRIBUTE_XXX() |
The macros ILS_RW_ATTRIBUTE_XXX() declare a read/write runtime attribute for a server object type so that it can be used in view specifications. More... | |
#define | ILS_RW_INDEXED_ATTR_BOOLEAN(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_CHAR(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_DOUBLE(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_ENUM(holder, attrType, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_FLOAT(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_INT(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_LONG(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_MVVALUE(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_SHORT(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_STRING(holder, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_USERTYPE(holder, attrType, attrLabel, getValue, setValue, isModified) |
This macro declares attrLabel as a runtime attribute of the class holder . More... | |
#define | ILS_RW_INDEXED_ATTR_XXX() |
The macros ILS_RW_INDEXED_ATTR_xxx declare a read/write runtime indexed attribute for a server object type so that it can be used in view specifications. More... | |
#define | ILS_RW_RELATION_1(origin, target, relNm, relAccessor, targAccessor, modifier) |
This macro declares a server object relation as being accessible at runtime. More... | |
#define | ILS_RW_RELATION_N(origin, target, relNm, relAccessor, modifier) |
This macro declares multiple server object relation as being accessible at runtime. More... | |
#define | ILS_SV_MEMBER_FUNCTION() |
These macros are similar to the macros ILS_MEMBER_FUNCTION() macros except that they can accept Server types as their arguments. More... | |
#define | ILS_SV_MEMBER_FUNCTION0(resType, objType, funNm) |
declare script member function with zero parameter to runtime interpreter. More... | |
#define | ILS_SV_MEMBER_FUNCTION1(resType, objType, funNm, p1Type) |
declare script member function with one parameter to runtime interpreter. More... | |
#define | ILS_SV_MEMBER_FUNCTION2(resType, objType, funNm, p1Type, p2Type) |
declare script member function with two parameters to runtime interpreter. More... | |
#define | ILS_SV_MEMBER_FUNCTION3(resType, objType, funNm, p1Type, p2Type, p3Type) |
declare script member function with three parameters to runtime interpreter. More... | |
#define | ILS_SV_MEMBER_FUNCTION4(resType, objType, funNm, p1Type, p2Type, p3Type, p4Type) |
declare script member function with four parameters to runtime interpreter. More... | |
#define | ILS_SV_MEMBER_FUNCTION5(resType, objType, funNm, p1Type, p2Type, p3Type, p4Type, p5Type) |
declare script member function with five parameters to runtime interpreter. More... | |
#define | ILS_SV_MEMBER_FUNCTION6(resType, objType, funNm, p1Type, p2Type, p3Type, p4Type, p5Type, p6Type) |
declare script member function with six parameters to runtime interpreter. More... | |
#define | ILS_SV_MEMBER_FUNCTION7(resType, objType, funNm, p1Type, p2Type, p3Type, p4Type, p5Type, p6Type, p7Type) |
declare script member function with seven parameters to runtime interpreter. More... | |
#define | ILS_USERTYPE_DECL(typeNm, parentNm) |
This macro and ILS_USERTYPE_DEF() are used to implement a user-defined type deriving from IlsMvUserType . More... | |
#define | ILS_USERTYPE_DEF(typeNm, parentNm) |
This macro and ILS_USERTYPE_DECL() are used to implement a user-defined type deriving from IlsMvUserType . More... | |
#define | ILS_USES_1(origin, target, relNm) |
This macro declares a server relation of type IlsUses as being accessible at runtime, so that it can be used in view specifications. More... | |
#define | ILS_USES_N(origin, target, relNm) |
This macro declares a server relation of type IlsUsesList , IlsUsesSet , IlsUsesDynamicArray , or IlsUsesFixedArray as being accessible at runtime, so that it can be used in view specifications. More... | |
#define | ILS_W_ENTRY_CHAR(holder, attrLabel, setValue) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_W_ENTRY_DOUBLE(holder, attrLabel, setValue) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_W_ENTRY_FLOAT(holder, attrLabel, setValue) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_W_ENTRY_INT(holder, attrLabel, setValue) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_W_ENTRY_LONG(holder, attrLabel, setValue) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_W_ENTRY_MVVALUE(holder, attrLabel, setValue) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_W_ENTRY_SHORT(holder, attrLabel, setValue) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_W_ENTRY_STRING(holder, attrLabel, setValue) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_W_ENTRY_USERTYPE(holder, attrType, attrLabel, setValue) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder . More... | |
#define | ILS_W_ENTRY_XXX() |
The macros ILS_W_ENTRY_XXX() declare server entry data members as being accessible at runtime so that they can be used in view specifications. More... | |
#define | ILS_W_RELATION_1(origin, target, relNm, modifier) |
This macro declares a simple server relation as being accessible at runtime. More... | |
#define | ILS_W_RELATION_N(origin, target, relNm, modifier) |
This macro declares a multiple server relation as being accessible at runtime. More... | |
Typedefs | |
typedef IlsAttributeAccessorFunctor * | IlsAttributeAccessor |
This type is an accessor functor to the value of a non-indexed attribute. More... | |
typedef IlsAttributeModifTestFunctor * | IlsAttributeModifTest |
This type is a functor used by the server model interpreter to test the modification of a non-indexed attribute. More... | |
typedef IlsMvValue(* | IlsDerivedEvaluatorFunction) (IlsViewed &) |
This function pointer type is used to assign an evaluation function to a derived dynamic attribute. More... | |
typedef IlsIdxAttributeAccessorFunctor * | IlsIdxAttributeAccessor |
This type is an accessor functor to the value of an indexed attribute. More... | |
typedef IlsIdxAttributeModifTestFunctor * | IlsIdxAttributeModifTest |
This type is a functor used by the server model interpreter to test the modification of an indexed attribute. More... | |
typedef char *(* | IlsMsgDecoder) (const char *buf, unsigned long &len) |
This function type is used when a message is expected from the communication layer. More... | |
typedef char *(* | IlsMsgEncoder) (const char *buf, unsigned long &len) |
This function type is used when a message is to be sent over the communication layer. More... | |
typedef MvArray | IlsMvArray |
typedef MvKeyValueTable | IlsMvKeyValueTable |
typedef IlsObjectConstructorFunctor * | IlsObjectConstructor |
This functor is used by the server model interpreter to create a new instance of a server object. More... | |
typedef IlsRelationAccessorFunctor * | IlsRelationAccessor |
This relation accessor is a functor used by the server model interpreter. More... | |
typedef IlsRelationModifierFunctor * | IlsRelationModifier |
This type is a functor used by the server model interpreter to modify a relation. More... | |
typedef unsigned long | IlsRepresentationId |
This numeric type is used to identify a representation. More... | |
typedef short | IlsRpAttributeId |
This numeric type is used to identify a representation object attribute or a representation object model attribute. More... | |
typedef unsigned short | IlsRpModelId |
This numeric type is used to identify a representation model. More... | |
typedef unsigned long | IlsRpObjectId |
This numeric type is used to identify a representation object. More... | |
typedef unsigned short | IlsRpStatus |
This type is used to specify the representation status of a server object in a view. More... | |
typedef int | IlsRpUpdateType |
This type definition is used to indicate what types of editing operations are performed on a server object by a component through a dynamic view. More... | |
typedef IlsRTFunctionFunctor * | IlsRTFunction |
This type is a functor to access member functions or global functions. More... | |
typedef IlsMvValue(* | IlsRTFunctionPtr) (void *, const IlsMvValue *, int dim) |
This type is a pointer to a function that takes a non-typed object as its first parameter and an array of arguments. More... | |
typedef IlsSimpleTargetAccessorFunctor * | IlsSimpleTargetAccessor |
This type is an accessor functor to the target of unary relations. More... | |
typedef unsigned long | IlsTransactionId |
This numeric type is used to identify a component-to-server transaction. More... | |
typedef signed char | IlsMvView::Priority |
View notification priority. More... | |
#define ILS_DERIVED_BOOLEAN | ( | holder, | |
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.
#define ILS_DERIVED_CHAR | ( | holder, | |
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.
#define ILS_DERIVED_DOUBLE | ( | holder, | |
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.
#define ILS_DERIVED_ENUM | ( | holder, | |
derivedType, | |||
attrLabel | |||
) |
This macro declares the derived data member specified by derivedLabel
as a runtime attribute of the class objType
.
The enumType
attribute is of the user-defined enum
type. It cannot be modified.
#define ILS_DERIVED_FLOAT | ( | holder, | |
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.
#define ILS_DERIVED_INT | ( | holder, | |
derivedLabel | |||
) |
This 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, this macro is equivalent to ILS_DERIVED_LONG() and the attribute is of type long
. It cannot be modified.
ILS_DERIVED_LONG()
. #define ILS_DERIVED_LONG | ( | holder, | |
derivedLabel | |||
) |
This 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, this macro is equivalent to ILS_DERIVED_INT() and the attribute is of type long
. It cannot be modified.
ILS_DERIVED_INT()
. #define ILS_DERIVED_MVVALUE | ( | holder, | |
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.
#define ILS_DERIVED_SHORT | ( | holder, | |
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.
#define ILS_DERIVED_STRING | ( | holder, | |
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.
#define ILS_DERIVED_USERTYPE | ( | holder, | |
derivedType, | |||
derivedLabel | |||
) |
This macro declares the derived data member specified by derivedLabel
as a runtime attribute of the class objType
.
This attribute is of the user-defined type derivedType
. For details, see the macros ILS_USERTYPE_DECL()/
It cannot be modified.ILS_USERTYPE_DEF()
.
#define ILS_DERIVED_XXX | ( | ) |
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 IlsDerived::getValue()
, IlsDerived::isModified()
, IlsDerived::incrEagerness()
, IlsDerived::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.
IlsMoveDirective
, ILS_R_ATTRIBUTE_XXX(). #define ILS_ENTITY1_BEGIN | ( | typeNm, | |
parent1 | |||
) |
Macro for declaring an entity that derives from another object type.
ILS_ENTITY_BEGIN()
#define ILS_ENTITY2_BEGIN | ( | typeNm, | |
parent1, | |||
parent2 | |||
) |
Macro for declaring an entity that derives from two other object types.
ILS_ENTITY_BEGIN()
#define ILS_ENTITY_BEGIN | ( | typeNm | ) |
This macro and IL_ENTITY_END()
declare a server object type deriving from IlsEntity
to the server model interpreter.
They must be used with the macro ILS_ENTITY_DECL()
. The Server object types you declare using these macros can then be associated with representations in view specifications.
These macros also let you declare runtime entry data members, derived data members, and relations for the Server object type. These macros are equivalent to the macros ILS_OBJECT_BEGIN
()/ILS_OBJECT_END()
, except that they implicitly declare a runtime attribute identifier as an entry of type IlsString
. This attribute is associated with the accessors and modifiers of the identifier of the class IlsEntity
.
These macros require that a constructor taking an argument of type IlsString
as a parameter be declared on the class objType
(see ILS_ENTITY_DECL()
for details).
The macros ILS_ENTITY_BEGIN()
and ILS_ENTITY_END()
must be added to the source file that defines the member functions of the class objType
. Only macros that let you declare runtime entries, derived data members, and relations can be enclosed between these macros.
If objType
derives from another Server object type, you have to use the macro ILS_ENTITY1_BEGIN()
. In this case, objType
dynamically inherits from the runtime entries, derived data members and relations of the parent type.
If objType derives from two other Server object types, you have to use the macro ILS_ENTITY2_BEGIN()
. In this case, objType
dynamically inherits from the runtime entries, derived data members and relations of the parent type.
#define ILS_ENTITY_DECL | ( | typeNm | ) |
This macro declares a server object type that derives from IlsEntity
to the server model interpreter.
It must be used with the macros ILS_ENTITY_BEGIN()
/ ILS_ENTITY_END()
. The Server object types you declare using this macro can then be associated with representations in view specifications. This macro also lets you declare runtime entry data members, derived data members, and relations for the Server object type.
This macro declares the Server Type typeNm
as being accessible at runtime.
The class typeNm
must derive from IlsEntity
directly or transitively, and contain a constructor that takes an IlsString
argument, as follows:
This argument is the entity identifier.
This constructor is called when the component notifies the server that a new representation object associated with the Server object has been created.
See the second constructor of the class IlsRpObject
.
The argument identifier is set to the value of the first representation attribute that is set by the component on the new representation objects, provided this attribute complies with the following conditions:
IlsRpObject::onUpdate()
).IlsRepresentation::beginC2STransaction()
and IlsRepresentation::commitC2STransaction()
for more information.object
argument. It returns 0 if this argument is not of type objType
or of a derived type.#define ILS_ENTITY_END | ( | typeNm | ) |
This macro and IL_ENTITY_BEGIN()
declare a server object type deriving from IlsEntity
to the server model interpreter.
They must be used with the macro ILS_ENTITY_DECL()
. The Server object types you declare using these macros can then be associated with representations in view specifications.
These macros also let you declare runtime entry data members, derived data members, and relations for the Server object type. These macros are equivalent to the macros ILS_OBJECT_BEGIN
()/ILS_OBJECT_END()
, except that they implicitly declare a runtime attribute identifier as an entry of type IlsString
. This attribute is associated with the accessors and modifiers of the identifier of the class IlsEntity
.
These macros require that a constructor taking an argument of type IlsString
as a parameter be declared on the class objType
(see ILS_ENTITY_DECL()
for details).
The macros ILS_ENTITY_BEGIN()
and ILS_ENTITY_END()
must be added to the source file that defines the member functions of the class objType
. Only macros that let you declare runtime entries, derived data members, and relations can be enclosed between these macros.
If objType
derives from another Server object type, you have to use the macro ILS_ENTITY1_BEGIN()
. In this case, objType
dynamically inherits from the runtime entries, derived data members and relations of the parent type.
If objType derives from two other Server object types, you have to use the macro ILS_ENTITY2_BEGIN()
. In this case, objType
dynamically inherits from the runtime entries, derived data members and relations of the parent type.
#define ILS_ENTITY_INIT | ( | typeNm | ) |
The declaration of a server entity class to the server model interpreter is automatically performed by a static initialization included in the macro ILS_ENTITY_BEGIN()
. If this initialization is embedded into a library, the initialization process may be postponed depending on the platform. To work around this potential problem, the ILS_ENTITY_INIT()
macro is supplied to force the runtime declaration of a server entity class at the beginning of the process. It should be used either isolated in a header or in a source file of the application at the beginning of the main function.
#define ILS_ENTRY_BOOLEAN | ( | holder, | |
entryLabel | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type Boolean
. It can be modified.
#define ILS_ENTRY_CHAR | ( | holder, | |
entryLabel | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type char
. It can be modified.
#define ILS_ENTRY_DOUBLE | ( | holder, | |
entryLabel | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type double
. It can be modified.
#define ILS_ENTRY_ENUM | ( | holder, | |
entryType, | |||
entryLabel | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of user-defined enum
type. It can be modified.
#define ILS_ENTRY_FLOAT | ( | holder, | |
entryLabel | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type float
. It can be modified.
#define ILS_ENTRY_INT | ( | holder, | |
entryLabel | |||
) |
This macros declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
Since Rogue Wave Server does not differentiate between the int
and long
types, this macro is equivalent to ILS_ENTRY_LONG()
and the attribute is of type long
. It cannot be modified.
ILS_ENTRY_LONG()
. #define ILS_ENTRY_LONG | ( | holder, | |
entryLabel | |||
) |
This macros declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
Since Rogue Wave Server does not differentiate between the int
and long
types, this macro is equivalent to ILS_ENTRY_INT()
and the attribute is of type long
. It cannot be modified.
ILS_ENTRY_INT()
. #define ILS_ENTRY_MVVALUE | ( | holder, | |
entryLabel | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type IlsMvValue
. It can be modified.
#define ILS_ENTRY_SHORT | ( | holder, | |
entryLabel | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type short
. It can be modified.
#define ILS_ENTRY_STRING | ( | holder, | |
entryLabel | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type IlsString
or char*
. It can be modified.
#define ILS_ENTRY_USERTYPE | ( | holder, | |
entryType, | |||
entryLabel | |||
) |
This macro declares the entry data member specified by entryLabel as a runtime attribute of the class holder
.
This attribute is of the user-defined type entryType
. For details, see the macros ILS_USERTYPE_DECL()/
It can be modified.ILS_USERTYPE_DEF()
.
#define ILS_ENTRY_XXX | ( | ) |
The macros ILS_ENTRY_XXX()
declare Server entry data members as being accessible at runtime so that they can be used in view specifications.
These runtime attributes use the IlsEntry
member functions IlsEntry::getValue()
, IlsEntry::set()
and IlsEntry::isModified()
.
These macros can only 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.
#define ILS_GLOBAL_FUNCTION | ( | ) |
These macros declare global functions as being accessible at runtime, so that they can be used in dynamic view type specifications.
They MUST NOT be enclosed between the following pairs of macros:
ILS_OBJECT_BEGIN()
/ ILS_OBJECT_END()
ILS_ENTITY_BEGIN()
/ ILS_ENTITY_END()
ILS_MVVIEW_BEGIN()
/ ILS_MVVIEW_END()
ILS_GLOBAL_FUNCTION0(resType,funNm)
ILS_GLOBAL_FUNCTION1(resType,funNm,param1Type)
ILS_GLOBAL_FUNCTION2(resType,funNm,param1Type,param2Type)
ILS_GLOBAL_FUNCTION3(resType,funNm,param1Type,param2Type,param3Type)
ILS_GLOBAL_FUNCTION4(resType,funNm,param1Type,param2Type,param3Type,param4Type)
ILS_GLOBAL_FUNCTION5(resType,funNm,param1Type,param2Type,param3Type,param4Type,param5Type)
ILS_GLOBAL_FUNCTION6(resType,funNm,param1Type,param2Type,param3Type,param4Type,param5Type,param6Type)
These macros take the following arguments, in this order:
All the global runtime functions must have a unique name. The result and the parameters of a global function can be of the following types:
char
char*
IlsString
IlsBoolean
short
int
long
float
double
IlsMvUserType
.When a runtime-accessible global function is called from a component, the result is not sent back to this component, because the callback mechanism is completely asynchronous. However, to allow for the requirements of type macro expansion, such a function cannot have a result of type void
.
#define ILS_GLOBAL_FUNCTION0 | ( | resType, | |
funNm | |||
) |
declare global function with no parameter to runtime interpreter.
resType | type of the returned value |
funNm | function name |
ILS_GLOBAL_FUNCTION()
. #define ILS_GLOBAL_FUNCTION1 | ( | resType, | |
funNm, | |||
p1Type | |||
) |
declare global function with one parameter to runtime interpreter.
resType | type of the returned value |
funNm | function name |
p1Type | type of first parameter |
ILS_GLOBAL_FUNCTION()
. #define ILS_GLOBAL_FUNCTION2 | ( | resType, | |
funNm, | |||
p1Type, | |||
p2Type | |||
) |
declare global function with two parameters to runtime interpreter.
resType | type of the returned value |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
ILS_GLOBAL_FUNCTION()
. #define ILS_GLOBAL_FUNCTION3 | ( | resType, | |
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type | |||
) |
declare global function with three parameters to runtime interpreter.
resType | type of the returned value |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
ILS_GLOBAL_FUNCTION()
. #define ILS_GLOBAL_FUNCTION4 | ( | resType, | |
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type | |||
) |
declare global function with four parameters to runtime interpreter.
resType | type of the returned value |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
ILS_GLOBAL_FUNCTION()
. #define ILS_GLOBAL_FUNCTION5 | ( | resType, | |
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type, | |||
p5Type | |||
) |
declare global function with five parameters to runtime interpreter.
resType | type of the returned value |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
p5Type | type of fifth parameter |
ILS_GLOBAL_FUNCTION()
. #define ILS_GLOBAL_FUNCTION6 | ( | resType, | |
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type, | |||
p5Type, | |||
p6Type | |||
) |
declare global function with six parameters to runtime interpreter.
resType | type of the returned value |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
p5Type | type of fifth parameter |
p6Type | type of sixth parameter |
ILS_GLOBAL_FUNCTION()
. #define ILS_GLOBAL_FUNCTION7 | ( | resType, | |
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type, | |||
p5Type, | |||
p6Type, | |||
p7Type | |||
) |
declare global function with seven parameters to runtime interpreter.
resType | type of the returned value |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
p5Type | type of fifth parameter |
p6Type | type of sixth parameter |
p7Type | type of seventh parameter |
ILS_GLOBAL_FUNCTION()
. #define ILS_INVERTED_1 | ( | target, | |
origin, | |||
invRelNm, | |||
relNm | |||
) |
This macro declares a server relation of type IlsInvertedRelation
as being accessible at runtime so that it can be used in view specifications.
The runtime relation is defined by the accessors and modification test of the Rogue Wave Server inverted-relation template. This means that Rogue Wave Server uses the functions of the class template IlsInvertedRelation
to get the target of the relation and to test if this target has been modified.
A runtime inverse relation declared using the macro ILS_INVERTED_1()
is editable if the direct relation is itself editable – that is, if it is associated with a modifier.
This macro can only be enclosed 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.
target | is the type bearing the inverse relation. |
origin | is the target type for the inverse relation. |
invRelNm | is the name of the inverse relation. |
relNm | is the name of the relation that is inverted. |
#define ILS_INVERTED_N | ( | target, | |
origin, | |||
invRelNm, | |||
relNm | |||
) |
This macro declares a server relation of type IlsInvertedRelationList
as being accessible at runtime so that it can be used in view specifications.
This runtime relation uses the accessors defined in the IlsInvertedRelationList
class template.
A runtime inverse relation declared using the macro ILS_INVERTED_N()
is editable if the direct relation is itself editable – that is, if it is associated with a modifier.
This macro can only be enclosed 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.
target | is the type bearing the inverse relation. |
origin | is the target type for the inverse relation. |
invRelNm | is the name of the inverse relation. |
relNm | is the name of the relation which is inverted. |
#define ILS_MEMBER_FUNCTION | ( | ) |
These macros declare member functions of Server classes as being accessible at runtime, so that they can be used in dynamic view type specifications. They also enable a component to invoke the declared functions on server objects.
This macro can only be enclosed 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.
ILS_MEMBER_FUNCTION0(resType,objType,funNm)
ILS_MEMBER_FUNCTION1(resType,objType,funNm,param1Type)
ILS_MEMBER_FUNCTION2(resType,objType,funNm,param1Type,param2Type)
ILS_MEMBER_FUNCTION3(resType,objType,funNm,param1Type,param2Type,param3Type)
ILS_MEMBER_FUNCTION4(resType,objType,funNm,param1Type,param2Type,param3Type,param4Type)
ILS_MEMBER_FUNCTION5(resType,objType,funNm,param1Type,param2Type,param3Type,param4Type,param5Type)
ILS_MEMBER_FUNCTION6(resType,objType,funNm,param1Type,param2Type,param3Type,param4Type,param5Type,param6Type)
These macros take the following arguments in this order:
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
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
.
#define ILS_MEMBER_FUNCTION0 | ( | resType, | |
objType, | |||
funNm | |||
) |
declare member function with no parameter to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
#define ILS_MEMBER_FUNCTION1 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type | |||
) |
declare member function with one parameter to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
#define ILS_MEMBER_FUNCTION2 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type | |||
) |
declare member function with two parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
#define ILS_MEMBER_FUNCTION3 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type | |||
) |
declare member function with three parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
#define ILS_MEMBER_FUNCTION4 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type | |||
) |
declare member function with four parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
#define ILS_MEMBER_FUNCTION5 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type, | |||
p5Type | |||
) |
declare member function with five parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
p5Type | type of fifth parameter |
#define ILS_MEMBER_FUNCTION6 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type, | |||
p5Type, | |||
p6Type | |||
) |
declare member function with six parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
p5Type | type of fifth parameter |
p6Type | type of sixth parameter |
#define ILS_MEMBER_FUNCTION7 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type, | |||
p5Type, | |||
p6Type, | |||
p7Type | |||
) |
declare member function with seven parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
p5Type | type of fifth parameter |
p6Type | type of sixth parameter |
p7Type | type of seventh parameter |
#define ILS_MVVIEW_BEGIN | ( | typeNm, | |
parent | |||
) |
This macro and ILS_MVVIEW_END()
declare a subtype of IlsMvView
to the view interpreter on the server side.
This declaration lets you specify dynamic view types that will be instantiated by a subtype of IlsMvView
. These macros must be used with the macro ILS_MVVIEW_DECL()
.
Both these macros must be added to the source file that defines the member functions for the class viewType
. The argument parentType
is the view type that is the base class of viewType
. This is usually the type IlsMvView
but it can be another subtype of IlsMvView
, provided this subtype has been declared using the macros ILS_MVVIEW_DECL()
and ILS_MVVIEW_BEGIN()
/ ILS_MVVIEW_END()
. Only macros that declare runtime access to data members and member functions can be enclosed between these macros.
#define ILS_MVVIEW_DECL | ( | typeNm | ) |
This macro declares a subtype of IlsMvView
to the view interpreter on the server side.
This declaration lets you specify dynamic view types that will be instantiated by a subtype of IlsMvView
. It must be used together with the macros ILS_MVVIEW_BEGIN()
/ ILS_MVVIEW_END()
.
For example, the following view specification:
causes an instance of IlsMvView
to be created each time a view NetworkPanel
is opened.
However, the following view specification:
causes an instance of MyMvView
to be created each time a view NetworkPanel
is opened.
This macro declares the constructor of viewType to the view interpreter, which runs on the server side. Just as the macro ILS_OBJECT_DECL()
does for the Server type objType, the macro ILS_MVVIEW_DECL()
also declares viewType as a Server type accessible at runtime. The class typeNm
must inherit from IlsMvView
directly or transitively. It must also declare and define a constructor with the following signature:
This constructor should trigger the corresponding constructor of its parent class. For instance:
The class viewType must also declare a default constructor, which exists only to declare viewType as a Server object type, but is never used.
This macro defines the following function:
This static function performs a safe downcast on view. It returns 0 if view is not of the type viewType or of a derived type.
#define ILS_MVVIEW_END | ( | typeNm | ) |
This macro and ILS_MVVIEW_BEGIN()
declare a subtype of IlsMvView
to the view interpreter on the server side.
This declaration lets you specify dynamic view types that will be instantiated by a subtype of IlsMvView
. These macros must be used with the macro ILS_MVVIEW_DECL()
.
Both these macros must be added to the source file that defines the member functions for the class viewType
. The argument parentType
is the view type that is the base class of viewType
. This is usually the type IlsMvView
but it can be another subtype of IlsMvView
, provided this subtype has been declared using the macros ILS_MVVIEW_DECL()
and ILS_MVVIEW_BEGIN()
/ ILS_MVVIEW_END()
. Only macros that declare runtime access to data members and member functions can be enclosed between these macros.
#define ILS_MVVIEW_INIT | ( | typeNm | ) |
A subtype of the class IlsMvView
is automatically declared to the server dynamic view interpreter by a static initialization of a variable included in the macro ILS_MVVIEW_BEGIN()
/ ILS_MVVIEW_END()
. If this variable is embedded in a library, the initialization may be postponed depending on the platform. To work around this potential problem, the ILS_MVVIEW_INIT()
macro is supplied to force the runtime declaration of an IlsMvView-derived
class at the beginning of the process. It should be used either isolated in a header or in a source file of the application at the beginning of the main function.
#define ILS_OBJECT1_BEGIN | ( | typeNm, | |
parent1 | |||
) |
declare an object type that derives from another server object type to runtime interpreter.
typeNm | object class name |
parent1 | parent class |
ILS_OBJECT_BEGIN()
. #define ILS_OBJECT1_WITH_ID_BEGIN | ( | typeNm, | |
ident, | |||
parent1 | |||
) |
This macro is similar to ILS_OBJECT1_BEGIN()
subject to the same conditions as ILS_OBJECT_WITH_ID_BEGIN()
.
#define ILS_OBJECT2_BEGIN | ( | typeNm, | |
parent1, | |||
parent2 | |||
) |
declare an object type that derives from two other server object types to runtime interpreter.
typeNm | object class name |
parent1 | parent 1 class |
parent2 | parent 2 class |
ILS_OBJECT_BEGIN()
. #define ILS_OBJECT2_WITH_ID_BEGIN | ( | typeNm, | |
ident, | |||
parent1, | |||
parent2 | |||
) |
This macro is similar to ILS_OBJECT2_BEGIN()
subject to the same conditions as ILS_OBJECT_WITH_ID_BEGIN()
.
#define ILS_OBJECT_BEGIN | ( | typeNm | ) |
This macro with ILS_OBJECT_END()
declares a server object class deriving from IlsObject
to the server model interpreter.
It associates a runtime type to the C++ class. They must be used with the macro ILS_OBJECT_DECL()
. The server object types you declare using those macros can then be referred to in dynamic view type specifications. This macro also lets you declare runtime access to data members and member functions for the server object type.
You can use this macro to declare server object types that derive from IlsEntity
if you do not want an implicit declaration of the runtime identifier to be performed, as it is the case with the macro ILS_ENTITY_DECL()
.
The macros ILS_OBJECT_BEGIN()
/ ILS_OBJECT_END()
must be added to the source file that defines the member functions of the class objType
. Only macros that let you declare runtime entries, derived data members and relations can be enclosed between these macros.
If objType derives from another server object type, you have to use the macro ILS_OBJECT1_BEGIN()
. In this case, the runtime type associated to objType
dynamically inherits from the runtime access to data members and member functions of the parent type.
If objType
derives from two other server object types, you have to use the macro ILS_OBJECT2_BEGIN()
. In this case, the runtime type associated to objType
dynamically inherits from the runtime entries, derived data members and relations of the parent types. The pair of macros ILS_OBJECT2_BEGIN()
/ ILS_OBJECT_END()
replaces the static view-related macro ILS_VIEWED2_DEF()
.
ILS_DERIVED_XXX()
, ILS_ENTITY_BEGIN()
/ ILS_ENTITY_END()
, ILS_ENTITY_DECL()
, ILS_ENTRY_XXX()
, IlsObject
, ILS_OBJECT_DECL()
, ILS_OBJECT_INIT()
, IlsRepresentation
, IlsRpObject
, ILS_R_RELATION_1()
, ILS_R_RELATION_N()
, ILS_RW_RELATION_1()
, ILS_RW_RELATION_N()
, ILS_W_RELATION_1()
, ILS_RW_RELATION_N()
. #define ILS_OBJECT_DECL | ( | typeNm | ) |
This macro declares a server object type deriving from IlsObject
to the server model interpreter.
It must be used together with the macros ILS_OBJECT_BEGIN()
/ ILS_OBJECT_END()
. The server object types you declare using that macro can then be associated with representations in view specifications. This macro also lets you declare runtime entry data member, derived data members, and relations for the server object type.
This macro declares the server type objType as being accessible at runtime. The class objType must derive from IlsObject directly or transitively and must contain a default constructor. This constructor is called when the component notifies the server that a new representation object associated with the server object has been created.
This macro also defines the following function:
This static function performs a safe downcast on object. It returns 0 if object is not of type objType or of a derived type.
#define ILS_OBJECT_END | ( | typeNm | ) |
This macro with ILS_OBJECT_BEGIN()
declares a server object class deriving from IlsObject
to the server model interpreter.
It associates a runtime type to the C++ class. They must be used with the macro ILS_OBJECT_DECL()
. The server object types you declare using those macros can then be referred to in dynamic view type specifications. This macro also lets you declare runtime access to data members and member functions for the server object type.
You can use this macro to declare server object types that derive from IlsEntity
if you do not want an implicit declaration of the runtime identifier to be performed, as it is the case with the macro ILS_ENTITY_DECL()
.
The macros ILS_OBJECT_BEGIN()
/ ILS_OBJECT_END()
must be added to the source file that defines the member functions of the class objType
. Only macros that let you declare runtime entries, derived data members and relations can be enclosed between these macros.
If objType derives from another server object type, you have to use the macro ILS_OBJECT1_BEGIN()
. In this case, the runtime type associated to objType
dynamically inherits from the runtime access to data members and member functions of the parent type.
If objType
derives from two other server object types, you have to use the macro ILS_OBJECT2_BEGIN()
. In this case, the runtime type associated to objType
dynamically inherits from the runtime entries, derived data members and relations of the parent types. The pair of macros ILS_OBJECT2_BEGIN()
/ ILS_OBJECT_END()
replaces the static view-related macro ILS_VIEWED2_DEF()
.
ILS_DERIVED_XXX()
, ILS_ENTITY_BEGIN()
/ ILS_ENTITY_END()
, ILS_ENTITY_DECL()
, ILS_ENTRY_XXX()
, IlsObject
, ILS_OBJECT_DECL()
, ILS_OBJECT_INIT()
, IlsRepresentation
, IlsRpObject
, ILS_R_RELATION_1()
, ILS_R_RELATION_N()
, ILS_RW_RELATION_1()
, ILS_RW_RELATION_N()
, ILS_W_RELATION_1()
, ILS_RW_RELATION_N()
. #define ILS_OBJECT_INIT | ( | typeNm | ) |
A server object class is automatically declared to the server model interpreter by a static initialization of a variable included in the macro ILS_OBJECT_BEGIN()
/ ILS_OBJECT_END()
. If this variable is embedded into a library, this initialization may be postponed, depending on the platform. To work around this potential problem, the ILS_OBJECT_INIT()
macro is supplied to force the runtime declaration of a server object class at the beginning of the process. It should be used either isolated in a header or in a source file of the application at the beginning of the main function.
#define ILS_OBJECT_WITH_ID_BEGIN | ( | typeNm, | |
ident | |||
) |
This macro is similar to ILS_OBJECT_BEGIN()
except that it declares the attribute ident
as being the typeNm
type identifier. idAttr
must be declared as a runtime attribute of typeNm
or of a parent type.
Moreover, this macro requires that typeNm
have a constructor taking an IlsString
argument:
This argument is the identifier of the object. This constructor is called when a component creates a representation object using the second constructor of the class IlsRpObject
and only if the model of this representation object is associated to typeNm
.
As in entity construction, the argument passed to the typeNm
constructor will be set to the value of the first representation object attribute that complies with the following conditions:
IlsRpObject::onUpdate()
).rp
object and the attribute update occurs in the same representation transaction (see IlsRepresentation::beginC2STransaction()
and IlsRepresentation::commitC2STransaction()
).If no representation object attribute complies with the above conditions, the argument is set to the null string.
ILS_ENTITY_xxx()
macros to declare an entity – for example, if you need to redefine the accessor and modifier of the entity identifier.ILS_OBJECT_BEGIN()
. #define ILS_OWNS_1 | ( | origin, | |
target, | |||
relNm | |||
) |
This macro declares a server relation of type IlsOwns
as being accessible at runtime so that it can be used in view specifications.
The runtime relation uses the relation accessor, the relation target accessor, and the modifier defined in the IlsOwns
class template.
This macro can only be enclosed 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.
origin | is the class where the relation is declared. |
target | is the class of the relation target. |
relNm | is the name of the relation. |
#define ILS_OWNS_N | ( | origin, | |
target, | |||
relNm | |||
) |
This macro declares a multiple server relation of type IlsOwnsList
, IlsOwnsSet
, IlsOwnsDynamicArray
, or IlsOwnsFixedArray
as being accessible at runtime so that it can be used in view specifications.
This runtime relation uses the accessors and modifiers defined in the IlsOwnsxxx
class template that corresponds to its C++ type.
This macro can only be enclosed 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.
origin | is the class where the relation is declared. |
target | is the class of the relation target. |
relNm | is the name of the relation. |
#define ILS_R_ATTRIBUTE_BOOLEAN | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type IlsBoolean
and cannot be modified.
getValue()
, has the following signature: IlsBoolean
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_CHAR | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type char
and cannot be modified.
getValue()
, has the following signature: char
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_DOUBLE | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type double
and cannot be modified.
getValue()
, has the following signature: double
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_ENUM | ( | holder, | |
attrType, | |||
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of enum
type attrType
and cannot be modified.
getValue()
, has the following signature: attrType
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_FLOAT | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type float
and cannot be modified.
getValue()
, has the following signature: float
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_INT | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type long
and cannot be modified.
getValue()
, has the following signature: long
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_LONG | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type long
and cannot be modified.
getValue()
, has the following signature: long
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_MVVALUE | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type IlsMvValue
and cannot be modified.
getValue()
, has the following signature: IlsMvValue
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_SHORT | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type short
and cannot be modified.
getValue()
, has the following signature: short
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_STRING | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type IlsString
and cannot be modified.
getValue()
, has the following signature: IlsString
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_USERTYPE | ( | holder, | |
attrType, | |||
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type attrType
which derives from IlsMvUserType
and cannot be modified.
getValue()
, has the following signature: attrType
.isModified()
, has the following signature: IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:#define ILS_R_ATTRIBUTE_XXX | ( | ) |
The macros ILS_R_ATTRIBUTE_XXX()
declare a read-only runtime attribute for a server object type so that it can be used in dynamic view type specifications.
Unlike the ILS_DERIVED_XXX()
macros, these macros let you associate an accessor, a modification test and an update eagerness function with the runtime attribute.
isModified()
declared on the class template IlsEntry
or IlsDerived
respectively.IlsDerived::incrEagerness()
or IlsDerived::decrEagerness()
functions declared on the IlsDerived
class template.These macros allow you to declare runtime attributes whose names do not correspond to any data member of the server object type. They 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.
int
being considered an equivalent of long
, both on the server side and on the component side.ILS_R_ATTRIBUTE_CHAR(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_ATTRIBUTE_BOOLEAN(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_ATTRIBUTE_SHORT(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_ATTRIBUTE_INT(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_ATTRIBUTE_LONG(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_ATTRIBUTE_FLOAT(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_ATTRIBUTE_DOUBLE(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_ATTRIBUTE_STRING(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_ATTRIBUTE_MVVALUE(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_ATTRIBUTE_ENUM(objType,attrType,attrLabel,getValue,isModified,updEagerness)
ILS_R_ATTRIBUTE_USERTYPE(objType,attrType,attrLabel,getValue,isModified,updEagerness)
#define ILS_R_INDEXED_ATTR_BOOLEAN | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of type IlsBoolean
and cannot be modified.
getValue()
, has the following signature: IlsBoolean
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_CHAR | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of type char
and cannot be modified.
getValue()
, has the following signature: char
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_DOUBLE | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of type double
and cannot be modified.
getValue()
, has the following signature: double
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_ENUM | ( | holder, | |
attrType, | |||
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of enum
type attrType
and cannot be modified.
getValue()
, has the following signature: attrType
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_FLOAT | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of type float
and cannot be modified.
getValue()
, has the following signature: float
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_INT | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of type long
and cannot be modified.
getValue()
, has the following signature: long
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_LONG | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of type long
and cannot be modified.
getValue()
, has the following signature: long
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_MVVALUE | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
his macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of type IlsMvValue
and cannot be modified.
getValue()
, has the following signature: IlsMvValue
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_SHORT | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of type short
and cannot be modified.
getValue()
, has the following signature: short
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_STRING | ( | holder, | |
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of type IlsString
and cannot be modified.
getValue()
, has the following signature: IlsString
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_USERTYPE | ( | holder, | |
attrType, | |||
attrLabel, | |||
getValue, | |||
isModified, | |||
updEagerness | |||
) |
This macro declares attrLabel
as a runtime indexed attribute of the class holder
. This attribute is of type attrType
which derives from IlsMvUserType
and cannot be modified.
getValue()
, has the following signature: attrType
.IlsBoolean
.increment
argument is set to IlsTrue
, this means that a new view is interested by the atttribute value. Conversely, IlsFalse
means that a view is no longer interested in the attribute value. The signature can be different under the following conditions:ILS_R_INDEXED_ATTR_XXX()
. #define ILS_R_INDEXED_ATTR_XXX | ( | ) |
The macros ILS_R_INDEXED_ATTR_xxx
declare a read-only runtime indexed attribute for a server object type so that it can be used in view specifications.
This attribute is defined by an accessor, a modification test and an update eagerness function.
isModified()
declared on the class template IlsEntry
or IlsDerived
respectively.updEagerness()
function is used by Server to declare that a new view is interested in knowing the attribute value or, conversely, that a view is no longer interested in this attribute. This update eagerness function is especially useful for a runtime attribute associated with a derived data member. In this case, it should call the IlsDerived::incrEagerness()
or IlsDerived::decrEagerness()
functions declared on the IlsDerived
class template.These macros allows you to declare pure runtime attributes, that is attributes whose names do not correspond to any data member of the server object type. They 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.
ILS_R_INDEXED_ATTR_CHAR(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_INDEXED_ATTR_BOOLEAN(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_INDEXED_ATTR_SHORT(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_INDEXED_ATTR_INT(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_INDEXED_ATTR_LONG(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_INDEXED_ATTR_FLOAT(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_INDEXED_ATTR_DOUBLE(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_INDEXED_ATTR_STRING(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_INDEXED_ATTR_MVVALUE(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_INDEXED_ATTR_USERTYPE(objType,attrLabel,getValue,isModified,updEagerness)
ILS_R_INDEXED_ATTR_ENUM(objType,attrType,attrLabel,getValue,isModified,updEagerness)
IlsDerived
, IlsEntry
, ILS_RW_INDEXED_ATTR_XXX()
#define ILS_R_RELATION_1 | ( | origin, | |
target, | |||
relNm, | |||
relAccessor, | |||
targAccessor | |||
) |
This macro declares a server unary relation as being accessible at runtime.
This relation can be of type IlsOwns
, IlsUses
, or IlsInvertedRelation
. It differs from the macros ILS_OWNS_1()
, ILS_USES_1()
, and ILS_INVERTED_1()
, in that the accessors to the relation and the relation target are user-defined. Moreover, no modifier is supplied. A runtime relation declared with this macro cannot be modified.
This macro can only be enclosed 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.
origin | is the class where the relation is declared. |
target | is the target class. |
relNm | is the name of the relation. |
relAccessor | is an accessor to the relation with the following signature: IlsViewedRel* origin::getRelation();
|
targAccessor | is an accessor to the relation target with the following signature: IlsViewed* ownerType::getTarget();
|
The signature of these functions may vary under the following conditions:
origin
or of a parent class.#define ILS_R_RELATION_N | ( | origin, | |
target, | |||
relNm, | |||
relAccessor | |||
) |
This macro declares a Server n-ary relation as being accessible at runtime.
This relation can be of type IlsOwns
, IlsUses
, or IlsInvertedRelation
. It differs from the macros ILS_OWNS_N()
, ILS_USES_N()
, and ILS_INVERTED_N()
, in that the accessors to the relation and the relation target are user-defined. Moreover, no modifier is supplied. A runtime relation declared with this macro cannot be modified.
This macro can only be enclosed 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.
origin | is the class where the relation is declared. |
target | is the target class. |
relNm | is the name of the relation. |
relAccessor | is an accessor to the relation with the following signature: IlsViewedRel* origin::getRelation();
|
The signature of this function may vary under the following conditions:
origin
or of a parent class.IlsViewedRel*
.#define ILS_REVERSE | ( | owner, | |
relNm, | |||
revRelNm | |||
) |
This macro declares that a relation is the inverse relation of another relation.
In most cases, the use of the macros ILS_INVERTED_1()
or ILS_INVERTED_N()
makes this macro unnecessary.
This macro can only be enclosed 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.
ILS_INVERTED_1()
, ILS_INVERTED_N()
. #define ILS_RW_ATTRIBUTE_BOOLEAN | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type IlsBoolean
and can be modified.
getValue()
, has the following signature: IlsBoolean
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_CHAR | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type char
and can be modified.
getValue()
, has the following signature: char
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_DOUBLE | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type double
and can be modified.
getValue()
, has the following signature: double
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_ENUM | ( | holder, | |
attrType, | |||
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is an enum
type attrType
and can be modified.
getValue()
, has the following signature: attrType
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_FLOAT | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type float
and can be modified.
getValue()
, has the following signature: float
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_INT | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type long
(int
and long
are both considered as long
in Server) and can be modified.
getValue()
, has the following signature: long
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_LONG | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type long
and can be modified.
getValue()
, has the following signature: long
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_MVVALUE | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type IlsMvValue
and can be modified.
getValue()
, has the following signature: IlsMvValue
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_SHORT | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type short
and can be modified.
getValue()
, has the following signature: short
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_STRING | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type IlsString
and can be modified.
getValue()
, has the following signature: IlsString
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_USERTYPE | ( | holder, | |
attrType, | |||
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
. This attribute is of type attrType
which derives from IlsMvUserType
and can be modified.
getValue()
, has the following signature: attrType
, andIts modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See section Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andisModified()
, has the following signature: IlsBoolean
, andILS_RW_ATTRIBUTE_XXX()
. #define ILS_RW_ATTRIBUTE_XXX | ( | ) |
The macros ILS_RW_ATTRIBUTE_XXX()
declare a read/write runtime attribute for a server object type so that it can be used in view specifications.
This attribute is defined by an accessor, a modifier and a modification test.
IlsFalse
and the rollback mode is enabled by the component, the current transaction is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See the Transaction Control sections in the IlsMvComponent
and IlsMvServer
class descriptions for more information.IlsEntry::isModified()
declared on the class template IlsEntry
.These macros allow you to declare runtime attributes whose names do not correspond to any data member of the Server object type. They 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.
int
being considered an equivalent of long
, both on the server side and on the component side.ILS_RW_ATTRIBUTE_CHAR(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_ATTRIBUTE_BOOLEAN(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_ATTRIBUTE_SHORT(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_ATTRIBUTE_INT(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_ATTRIBUTE_LONG(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_ATTRIBUTE_FLOAT(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_ATTRIBUTE_DOUBLE(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_ATTRIBUTE_STRING(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_ATTRIBUTE_USERTYPE(holder,attrType,attrLabel,getValue,setValue,isModified)
ILS_RW_ATTRIBUTE_ENUM(holder,attrType,attrLabel,getValue,setValue,isModified)
#define ILS_RW_INDEXED_ATTR_BOOLEAN | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is of type IlsBoolean
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:IlsBoolean
.setValue()
, has the following signature: IlsBoolean
, andIlsBoolean
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_CHAR | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is of type char
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:char
.setValue()
, has the following signature: IlsBoolean
, andchar
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_DOUBLE | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is of type double
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:double
.setValue()
, has the following signature: IlsBoolean
, anddouble
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_ENUM | ( | holder, | |
attrType, | |||
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is an enum
type attrType
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:attrType
.setValue()
, has the following signature: IlsBoolean
, andattrType
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_FLOAT | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is of type float
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:float
.setValue()
, has the following signature: IlsBoolean
, andfloat
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_INT | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is of type long
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:long
.setValue()
, has the following signature: IlsBoolean
, andlong
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_LONG | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is of type long
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:long
.setValue()
, has the following signature: IlsBoolean
, andlong
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_MVVALUE | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is of type IlsMvValue
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:IlsMvValue
.setValue()
, has the following signature: IlsBoolean
, andIlsMvValue
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_SHORT | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is of type short
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:attrType
.setValue()
, has the following signature: IlsBoolean
, andattrType
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_STRING | ( | holder, | |
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is of type IlsString
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:IlsString
.setValue()
, has the following signature: IlsBoolean
, andIlsString
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_USERTYPE | ( | holder, | |
attrType, | |||
attrLabel, | |||
getValue, | |||
setValue, | |||
isModified | |||
) |
This macro declares attrLabel
as a runtime attribute of the class holder
.
This attribute is of type attrType
which derives from IlsMvUserType
and can be modified.
getValue()
, has the following signature: IlsFalse
, the attribute cannot be set to this value. In that case the current transaction is rolled back by the server and a rollback transaction is sent to the component having requested the modification. See Transaction Control in the IlsMvComponent
class description. The function signature can be different under the following conditions:attrType
.setValue()
, has the following signature: IlsBoolean
, andattrType
as arguments.isModified()
, has the following signature: IlsBoolean
, andILS_RW_INDEXED_ATTR_XXX()
. #define ILS_RW_INDEXED_ATTR_XXX | ( | ) |
The macros ILS_RW_INDEXED_ATTR_xxx
declare a read/write runtime indexed attribute for a server object type so that it can be used in view specifications.
This attribute is defined by an accessor, a modifier and a modification test.
IlsFalse
and if the rollback is enabled by the component, the current transaction is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See the Transaction Control sections in the IlsMvComponent
and IlsMvServer
class descriptions for more information. IlsViewed::forceModify()
.IlsEntry::isModified()
declared on the class template IlsEntry
.These macros allow you to declare pure runtime attributes whose names do not correspond to any data member of the Server object type.
These macros can be enclosed only between the pairs of macros:
ILS_OBJECT_BEGIN()
/ ILS_OBJECT_END()
ILS_ENTITY_BEGIN()
/ ILS_ENTITY_END()
ILS_MVVIEW_BEGIN()
/ ILS_MVVIEW_END()
or their derivatives.
ILS_RW_INDEXED_ATTR_CHAR(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_INDEXED_ATTR_BOOLEAN(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_INDEXED_ATTR_SHORT(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_INDEXED_ATTR_INT(holder,attrLabel,getValuesetValue,isModified)
ILS_RW_INDEXED_ATTR_LONG(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_INDEXED_ATTR_FLOAT(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_INDEXED_ATTR_DOUBLE(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_INDEXED_ATTR_STRING(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_INDEXED_ATTR_MVVALUE(holder,attrLabel,getValue,setValue,isModified)
ILS_RW_INDEXED_ATTR_USERTYPE(holder,userType,attrLabel,getValue,setValue,isModified)
ILS_RW_INDEXED_ATTR_ENUM(holder,attrType,attrLabel,getValue,setValue,isModified)
IlsEntry
, IlsMvComponent
, ILS_R_INDEXED_ATTR_XXX()
. #define ILS_RW_RELATION_1 | ( | origin, | |
target, | |||
relNm, | |||
relAccessor, | |||
targAccessor, | |||
modifier | |||
) |
This macro declares a server object relation as being accessible at runtime.
This relation can be of type IlsOwns
or IlsUses
. It differs from the relations declared with the macros ILS_OWNS_1
and ILS_USES_1
in that its accessor, the accessor to its target, and its modifiers are user-defined.
This macro can only be enclosed 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.
IlsOwns
, ILS_OWNS_1()
, ILS_R_RELATION_1()
, IlsUses
, ILS_USES_1()
, ILS_W_RELATION_1()
. #define ILS_RW_RELATION_N | ( | origin, | |
target, | |||
relNm, | |||
relAccessor, | |||
modifier | |||
) |
This macro declares multiple server object relation as being accessible at runtime.
This type of relation differs from the runtime relations declared with the macros ILS_OWNS_N()
, ILS_USES_N()
and ILS_W_RELATION_N()
in that its accessors and its modifier (that is, the member function used to add or remove target objects) are user-defined.
This macro can only be enclosed 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.
IlsOwns
, ILS_OWNS_N()
, ILS_R_RELATION_N()
, IlsUses
, ILS_USES_N()
, ILS_W_RELATION_N()
. #define ILS_SV_MEMBER_FUNCTION | ( | ) |
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 IlsMvValue
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 Guide for more information.
These macros take the following arguments in this order:
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
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
.
ILS_MEMBER_FUNCTION()
, IlsSvRef
. #define ILS_SV_MEMBER_FUNCTION0 | ( | resType, | |
objType, | |||
funNm | |||
) |
declare script member function with zero parameter to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
#define ILS_SV_MEMBER_FUNCTION1 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type | |||
) |
declare script member function with one parameter to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
#define ILS_SV_MEMBER_FUNCTION2 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type | |||
) |
declare script member function with two parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
#define ILS_SV_MEMBER_FUNCTION3 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type | |||
) |
declare script member function with three parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
#define ILS_SV_MEMBER_FUNCTION4 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type | |||
) |
declare script member function with four parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
#define ILS_SV_MEMBER_FUNCTION5 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type, | |||
p5Type | |||
) |
declare script member function with five parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
p5Type | type of fifth parameter |
#define ILS_SV_MEMBER_FUNCTION6 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type, | |||
p5Type, | |||
p6Type | |||
) |
declare script member function with six parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
p5Type | type of fifth parameter |
p6Type | type of sixth parameter |
#define ILS_SV_MEMBER_FUNCTION7 | ( | resType, | |
objType, | |||
funNm, | |||
p1Type, | |||
p2Type, | |||
p3Type, | |||
p4Type, | |||
p5Type, | |||
p6Type, | |||
p7Type | |||
) |
declare script member function with seven parameters to runtime interpreter.
resType | type of the returned value |
objType | Server type to which the member function belongs |
funNm | function name |
p1Type | type of first parameter |
p2Type | type of second parameter |
p3Type | type of third parameter |
p4Type | type of fourth parameter |
p5Type | type of fifth parameter |
p6Type | type of sixth parameter |
p7Type | type of seventh parameter |
#define ILS_USERTYPE_DECL | ( | typeNm, | |
parentNm | |||
) |
This macro and ILS_USERTYPE_DEF()
are used to implement a user-defined type deriving from IlsMvUserType
.
Library: mvserver
and mvcomp
The macro ILS_USERTYPE_DECL()
must be added to any classes deriving from IlsMvUserType
. As its first argument, this macro takes the name of the class where it is declared. The second argument, classNm
, is either the type IlsMvUserType
or the base class of classNm
, which should itself derive from IlsMvUserType
.
The macro ILS_USERTYPE_DECL()
declares the following functions:
This constructor is called when a component executes a callback on a server runtime function that taking a user-defined type as a parameter, such as the virtual callbacks to member functions in the IlsRpObject
class and the function IlsMvComponent::execUserAsyncCallback()
).
This constructor must be implemented by the user and should be written as follows:
This static function returns 0 if the real type of v
is neither of the type typeNm
nor of a derived type. Otherwise, it returns a pointer to v
after it has been converted to typeNm.
This virtual function is used by ILOG Server to insert an object of the type typeNm
into an IlsMvMessage
.
This static function is used to extract an object of the type typeNm
from an IlsMvMessage
.
ilsEncode()
and IlsDecode()
must be implemented by the user.ILS_USERTYPE_DEF()
, IlsMvMessage
, IlsMvUserType
. #define ILS_USERTYPE_DEF | ( | typeNm, | |
parentNm | |||
) |
This macro and ILS_USERTYPE_DECL()
are used to implement a user-defined type deriving from IlsMvUserType
.
The macro ILS_USERTYPE_DEF()
must be added to the typeNm
definition file. It implements the static function typeNm::Narrow()
and declares the function typeNm::IlsDecode()
in an ILOG Server library table.
ilsEncode()
and IlsDecode()
must be implemented by the user.ILS_USERTYPE_DECL()
, IlsMvMessage
, IlsMvUserType
. #define ILS_USES_1 | ( | origin, | |
target, | |||
relNm | |||
) |
This macro declares a server relation of type IlsUses
as being accessible at runtime, so that it can be used in view specifications.
The runtime relation uses the accessors and the modifier defined in the class template IlsUses
.
This macro can only be enclosed 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.
origin | is the class where the relation is declared. |
target | is the class of the relation target. |
relNm | is the name of the relation. |
IlsUses
, ILS_W_RELATION_1()
. #define ILS_USES_N | ( | origin, | |
target, | |||
relNm | |||
) |
This macro declares a server relation of type IlsUsesList
, IlsUsesSet
, IlsUsesDynamicArray
, or IlsUsesFixedArray
as being accessible at runtime, so that it can be used in view specifications.
This runtime relation uses the accessors and modifiers defined in the IlsUsesXXX
class template that corresponds to its C++ type.
This macro can only be enclosed 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.
origin | is the class where the relation is declared. |
target | is the class of the relation target. |
relNm | is the name of the relation. |
#define ILS_W_ENTRY_CHAR | ( | holder, | |
attrLabel, | |||
setValue | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type char
.
Its modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, any current transaction on the server side is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andILS_W_ENTRY_XXX()
. #define ILS_W_ENTRY_DOUBLE | ( | holder, | |
attrLabel, | |||
setValue | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type double
.
Its modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, any current transaction on the server side is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, anddouble
as argument.ILS_W_ENTRY_XXX()
. #define ILS_W_ENTRY_FLOAT | ( | holder, | |
attrLabel, | |||
setValue | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type float
.
Its modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, any current transaction on the server side is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andfloat
as argument.ILS_W_ENTRY_XXX()
. #define ILS_W_ENTRY_INT | ( | holder, | |
attrLabel, | |||
setValue | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type long
.
Its modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, any current transaction on the server side is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andlong
as argument.ILS_W_ENTRY_XXX()
. #define ILS_W_ENTRY_LONG | ( | holder, | |
attrLabel, | |||
setValue | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type long
.
Its modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, any current transaction on the server side is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andlong
as argument.ILS_W_ENTRY_XXX()
. #define ILS_W_ENTRY_MVVALUE | ( | holder, | |
attrLabel, | |||
setValue | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type IlsMvValue
.
Its modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, any current transaction on the server side is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andIlsMvValue
as argument.ILS_W_ENTRY_XXX()
. #define ILS_W_ENTRY_SHORT | ( | holder, | |
attrLabel, | |||
setValue | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type short
.
Its modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, any current transaction on the server side is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andshort
as argument.ILS_W_ENTRY_XXX()
. #define ILS_W_ENTRY_STRING | ( | holder, | |
attrLabel, | |||
setValue | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type IlsString
.
Its modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, any current transaction on the server side is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andIlsString
as argument.ILS_W_ENTRY_XXX()
. #define ILS_W_ENTRY_USERTYPE | ( | holder, | |
attrType, | |||
attrLabel, | |||
setValue | |||
) |
This macro declares the entry data member specified by entryLabel
as a runtime attribute of the class holder
.
This attribute is of type attrType
which derives from IlsMvUserType
.
Its modifier, setValue()
, has the following signature:
When the function returns IlsFalse
, the attribute cannot be set to this value. In that case, any current transaction on the server side is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See Transaction Control in the IlsMvComponent
class description.
The signature of the function can be different under the following conditions:
IlsBoolean
, andattrType
as argument.ILS_W_ENTRY_XXX()
. #define ILS_W_ENTRY_XXX | ( | ) |
The macros ILS_W_ENTRY_XXX()
declare server entry data members as being accessible at runtime so that they can be used in view specifications.
The runtime entry data members declared with these macros differ from those declared with the ILS_ENTRY_XXX()
macros, in that the modifier is user-defined.
The modifier is used by Rogue Wave Server during a component-to-server transaction to modify the attribute value. When the modifier returns IlsFalse
and the rollback mode is enabled by the component, the current transaction is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See the Transaction Control sections in the IlsMvComponent
and IlsMvServer
class descriptions for more information.
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.
ILS_W_ENTRY_CHAR(holder,entryLabel,setValue)
ILS_W_ENTRY_BOOLEAN(holder,entryLabel,setValue)
ILS_W_ENTRY_SHORT(holder,entryLabel,setValue)
ILS_W_ENTRY_INT(holder,entryLabel,setValue)
ILS_W_ENTRY_LONG(holder,entryLabel,setValue)
ILS_W_ENTRY_FLOAT(holder,entryLabel,setValue)
ILS_W_ENTRY_DOUBLE(holder,entryLabel,setValue)
ILS_W_ENTRY_STRING(holder,entryLabel,setValue)
ILS_W_ENTRY_USERTYPE(holder,userType,entryLabel,setValue)
ILS_W_ENTRY_ENUM(holder,enumType,attrLabel,setValue)
IlsEntry
, ILS_ENTRY_XXX()
. #define ILS_W_RELATION_1 | ( | origin, | |
target, | |||
relNm, | |||
modifier | |||
) |
This macro declares a simple server relation as being accessible at runtime.
This relation can be of type IlsOwns
or IlsUses
. It differs from the relations declared with the macros ILS_OWNS_1()
or ILS_USES_1()
in that its modifier is user-defined.
This macro 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.
origin | is the class where the relation is declared. |
target | is the target class. |
relNm | is the name of the relation. |
modifier | is the target modifier. Its signature is the following: IlsBoolean origin::setTarget(target*);
|
#define ILS_W_RELATION_N | ( | origin, | |
target, | |||
relNm, | |||
modifier | |||
) |
This macro declares a multiple server relation as being accessible at runtime.
This type of relation differs from the runtime relations declared with the macros ILS_OWNS_N()
and ILS_USES_N()
in that its modifier (that is, the member function used to add or remove target objects) is user-defined. This macro 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.
This macro takes the following arguments:
origin | designates the class where the relation is declared. |
target | specifies the class of the relation target. |
relNm | stands for the name of the relation. |
modifier | is an editing function with the following signature: IlsBoolean origin::modifier(target&,IlsBoolean);
IlsBoolean value that indicates whether that object should be added (IlsTrue ) or removed (IlsFalse ). The signature of this function can vary under the following conditions:
|
When the modifier returns IlsFalse
and if the rollback is enabled by the component, the current transaction is rolled back by the server and a rollback transaction is sent to the component that requested the modification. See the Transaction Control sections in the IlsMvComponent
and IlsMvServer
class descriptions for more information.
IlsOwns
, ILS_OWNS_N()
, ILS_R_RELATION_N()
, ILS_RW_RELATION_N()
, IlsUses
, ILS_USES_N()
. typedef IlsAttributeAccessorFunctor* IlsAttributeAccessor |
This type is an accessor functor to the value of a non-indexed attribute.
The parameter owner
is the owner of the attribute. It is used by the server model interpreter.
Library: server, mvcomp
IlsAttributeDef
, IlsModelInterpreter
. typedef IlsAttributeModifTestFunctor* IlsAttributeModifTest |
This type is a functor used by the server model interpreter to test the modification of a non-indexed attribute.
The parameter owner
is the owner of the attribute.
Library: server
, mvcomp.
IlsAttributeDef
, IlsModelInterpreter
. typedef IlsMvValue(* IlsDerivedEvaluatorFunction) (IlsViewed &) |
This function pointer type is used to assign an evaluation function to a derived dynamic attribute.
Library: server
.
typedef IlsIdxAttributeAccessorFunctor* IlsIdxAttributeAccessor |
This type is an accessor functor to the value of an indexed attribute.
It takes the following parameters:
owner
is the owner of the attribute.index
is the index of the attribute.Library: server
, mvcomp.
IlsAttributeDef
, IlsModelInterpreter
. typedef IlsIdxAttributeModifTestFunctor* IlsIdxAttributeModifTest |
This type is a functor used by the server model interpreter to test the modification of an indexed attribute.
It takes the following parameters:
owner
is the owner of the attribute.index
is the index of the attribute.Library: server
, mvcomp.
IlsAttributeDef
, IlsModelInterpreter
. typedef char*(* IlsMsgDecoder) (const char *buf, unsigned long &len) |
This function type is used when a message is expected from the communication layer.
The incoming message of length len
is in the buf
argument and this function should return the new buffer that will be received and assign the new length to the len
argument.
Library: server
IlsInvertedRelationList
, IlsOwnsList
, IlsUsesList
. typedef char*(* IlsMsgEncoder) (const char *buf, unsigned long &len) |
This function type is used when a message is to be sent over the communication layer.
The outcoming message of length len is in the buf argument and this function should return the new buffer that will be sent and assigned the new length to the len argument.
Library: server
IlsInvertedRelationList
, IlsOwnsList
, IlsUsesList
. typedef MvArray IlsMvArray |
As a user type, IlsMvArray
is available under the name MvArray
to be compliant with the Java API naming conventions.
typedef MvKeyValueTable IlsMvKeyValueTable |
As a user type, IlsMvKeyValueTable
is available under the name MvKeyValueTable
to be compliant with the Java API naming conventions.
typedef IlsObjectConstructorFunctor* IlsObjectConstructor |
This functor is used by the server model interpreter to create a new instance of a server object.
The string passed as a parameter is null if the object type has no associated identifier attribute or if this identifier has not been assigned when the constructor is requested.
Library: server
, mvcomp.
typedef IlsRelationAccessorFunctor* IlsRelationAccessor |
This relation accessor is a functor used by the server model interpreter.
It takes the object owning the relation as a parameter.
Library: server
, mvcomp.
IlsModelInterpreter
, IlsRelationDef
. typedef IlsRelationModifierFunctor* IlsRelationModifier |
This type is a functor used by the server model interpreter to modify a relation.
It takes the following parameters:
owner
is the owner of the relation.target
is a pointer to the new target (unary relation) or to a target to be inserted or extracted (n-ary relations).Library: server
, mvcomp.
IlsModelInterpreter
, IlsRelationDef
. typedef unsigned long IlsRepresentationId |
This numeric type is used to identify a representation.
Library: mvserver
and mvcomp
IlsRepresentation
, IlsRpObjectId
. typedef short IlsRpAttributeId |
This numeric type is used to identify a representation object attribute or a representation object model attribute.
Library: mvserver
and mvcomp
IlsRpObject
, IlsRpObjModel
. typedef unsigned short IlsRpModelId |
This numeric type is used to identify a representation model.
Library: mvserver
and mvcomp
IlsRpModel
, IlsRpObjModel
. typedef unsigned long IlsRpObjectId |
This numeric type is used to identify a representation object.
Library: mvserver
and mvcomp
IlsRpObjModel
, IlsRpModelId
. typedef unsigned short IlsRpStatus |
This type is used to specify the representation status of a server object in a view.
Library: mvserver
and mvcomp
IlsMvView
, Chapter 2. typedef int IlsRpUpdateType |
This type definition is used to indicate what types of editing operations are performed on a server object by a component through a dynamic view.
Its possible values are obtained by using OR
expressions with the values of the enumerated type IlsRpUpdateEnum
. See the member functions IlsViewed::beginEdition()
and IlsViewed::endEdition()
for details.
Library: server
.
IlsViewed
. typedef IlsRTFunctionFunctor* IlsRTFunction |
This type is a functor to access member functions or global functions.
It is used by the server model interpreter and takes the following parameters:
ptr
is a pointer to the object on which the member function applied or a null pointer if the function is a global function.values
is a pointer to an array of values that are used to assign the function parameters.dim
is the dimension of this array.Library: server
, mvcomp.
IlsFunctionDef
, IlsModelInterpreter
typedef IlsMvValue(* IlsRTFunctionPtr) (void *, const IlsMvValue *, int dim) |
This type is a pointer to a function that takes a non-typed object as its first parameter and an array of arguments.
Functions of this type are registered with the server model interpreter to provide dynamic methods with a C++ implementation.
See the static function IlsModelInterpreter::DeclFunImplementation()
.
Library: server
, mvcomp.
IlsModelInterpreter
. typedef IlsSimpleTargetAccessorFunctor* IlsSimpleTargetAccessor |
This type is an accessor functor to the target of unary relations.
It is used by the server model interpreter and takes the following parameters:
owner
is the owner of the relation.id
is the identifier of the relation target type (see IlsViewed::getTypeId).Library: server
, mvcomp.
IlsModelInterpreter
, IlsRelationDef
, IlsViewed
. typedef unsigned long IlsTransactionId |
This numeric type is used to identify a component-to-server transaction.
Library: mvserver
and mvcomp
IlsMvComponent
. typedef signed char IlsMvView::Priority |
View notification priority.
Library: mvserver
This type corresponds to a signed char
. A priority value must range between PriorityMin
and PriorityMax
. The default value is PriorityDefault
.
This enumerated type lists the various types of server attributes.
Library: mvserver
It is used as a member of the class IlsAttributeDef
.
IlsAttributeDef
, ILS_DERIVED_XXX()
, ILS_ENTRY_XXX()
, ILS_RW_ATTRIBUTE_XXX()
, ILS_RW_INDEXED_ATTR_XXX()
, ILS_W_ENTRY_XXX()
. Enumerator | |
---|---|
EntryValue | Defines an entry attribute. Use the function |
DerivedValue | Defines a derived attribute. Use the function |
AttrValue | Defines a pure or simple attribute. Use the function |
enum IlsRpUpdateEnum |
This enumerated type is used to indicate the type of editing operation to be performed on a server object by a component through a dynamic view.
See the member functions IlsViewed::beginEdition()
and IlsViewed::endEdition()
for details.
This enumerated type contains also not documented values that are only used internally by the dynamic view server protocol.
Library: server
.
IlsViewed
Enumerator | |
---|---|
ILS_RP_CREATION | The server object has been created. |
ILS_RP_DELETION | The server object has been removed. |
ILS_RP_MODIFICATION | The server object has been modified. |
enum IlsMvDataType::Kind |
Specifies the type of an attribute attached to a representation object model.
Library: mvserver
and mvcomp
IlsMvDataType::getKind()
. This enumerated type lists the various types of server relations.
Library: mvserver
It is used as a member of the class IlsRelationDef
.
IlsRelationDef
, ILS_RW_RELATION_1()
, ILS_RW_RELATION_N()
, ILS_W_RELATION_1()
, ILS_W_RELATION_N()
. Specifies the type of trace attached to interactions between an object server and its components. See the trace functions of the class IlsMvEndPoint
for more information.
Library: mvserver
and mvcomp
IlsMvEndPoint::trace()
, IlsMvEndPoint::Trace()
. Enumerator | |
---|---|
NO_TRACE | No trace required. |
TRACE_TRANS | Tracing input and output transaction. |
TRACE_MSG | Tracing Server protocol messages. |
TRACE_TAG_ERR |
|
TRACE_TAG_PRINT | Same as |