ILS_ENTITY_BEGIN/ILS_ENTITY_END
 
ILS_ENTITY_BEGIN/ILS_ENTITY_END
Category 
Dynamic view-related macros (server side)
Description 
These macros 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.
Header File 
#include <ilserver/rtmodel>
Synopsis 
ILS_ENTITY_BEGIN(objType)
ILS_ENTITY1_BEGIN(objType,parentType)
ILS_ENTITY2_BEGIN(objType,parentType1,parentType2)
ILS_ENTITY_END(objType)
Macros 
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/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.
See Also 
ILS_DERIVED_XXX, IlsEntity, ILS_ENTITY_BEGIN/ILS_ENTITY_END, ILS_ENTITY_INIT, IlsEntry, ILS_OBJECT_BEGIN/ILS_OBJECT_END, ILS_OBJECT_DECL, IlsRepresentation, IlsRpObject, ILS_R_RELATION_1, ILS_R_RELATION_N, ILS_W_RELATION_1, ILS_RW_RELATION_1, ILS_W_RELATION_N

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