Server
API Reference Guide
Product Documentation:

Rogue Wave Server
Documentation Home
List of all members | Public Types | Public Member Functions | Protected Member Functions | Friends
IlsMvView Class Reference

Dynamic view class. More...

#include <ilserver/mvview.h>

Inheritance diagram for IlsMvView:
IlsObject

Public Types

typedef signed char Priority
 View notification priority. More...
 

Public Member Functions

IlsBoolean isOpened () const
 Returns true if the view is opened, which means that a first notification cycle has been performed for this view.
 
virtual void onSetInteractingView ()
 Called by Rogue Wave Server when the view begins to process incoming requests from its associated component.
 
virtual void onUnsetInteractingView ()
 Called by Rogue Wave Server when the view finishes to process incoming requests from its associated component.
 
virtual void setAckContext (const IlsMvValue *ackArgv, IlsCbArgNb ackArgc, IlsBoolean delOld=IlsTrue)
 Called after the view has been instantiated. More...
 
void setTrace (IlsBoolean status=IlsTrue)
 Puts the view in trace mode if the status argument is true, otherwise, its cancels the trace mode. More...
 
View Parameters

The following functions handle the parameters of a dynamic view type. Note that these parameters are indexed starting from 0.

int getParamIndex (IlsString label)
 Return the view parameter's index. More...
 
IlsBoolean isParamModified (int id)
 Check parameter's modification since last notification phase. More...
 
IlsMvValue getParamValue (int id)
 Get a parameter's value. More...
 
virtual IlsBoolean setParamValue (int id, IlsMvValue &v)
 Sets a parameter's value. More...
 
Accessors
IlsMvComponentItfgetComponent () const
 Returns the interface of the component that owns the representation associated with the view.
 
IlsRepresentationId getRpId () const
 Returns the identifier of the representation * associated with the view.
 
IlsRpModelgetRpModel ()
 Returns a pointer to the dynamic representation model associated with the view. More...
 
virtual IlsMvUsergetUser ()
 Returns a pointer to the user object associated with the application component that opened the view.
 
Mapping
const IlsMvRefgetCurrentRef ()
 Returns a reference to the reference of the representation object that provoked the current editing operation. More...
 
IlsRpObjectId getRpObjectId (IlsViewed &obj, IlsRpObjModelId modelId) const
 Gets representation object id associated with a server object. More...
 
IlsMvRef getReference (IlsViewed &svrObj, IlsRpObjModelId modelId) const
 Gets a reference to a representation object of a server object. More...
 
IlsRpObjModelId getObjModelId (IlsTypeId objTypeId, IlsString roModelNm) const
 Gets the identifier of the representationi object of a server object. More...
 
IlsSmartViewed getSvObject (IlsRpObjectId rpId, IlsRpObjModelId modelId)
 
IlsSmartViewed getSvObject (IlsRpObjectId objId, IlsRpObjModelId modelId, IlsRpAttributeId attrId)
 Retrieves the Server object associated with an attribute of type reference or hyper-reference attached to a representation object. More...
 
IlsBoolean isSubscribedObj (IlsViewed &o)
 Returns IlsTrue if the view subscribes to the object either directly or through relations.
 
IlsBoolean isSubscribedRel (IlsViewedRel &r)
 Returns IlsTrue if the view subscribes to the relation.
 
IlsBoolean unsubscribeObj (IlsViewed &o)
 Cancels the subscription of the view to the object.
 
IlsBoolean unsubscribeRel (IlsViewedRel &r)
 Cancels the subscription of the view to the relation and to its target objects, if these objects are not subscribed to directly or through another relation.
 
View Origin
IlsViewedgetMainOrigin ()
 Returns the main origin of the view. More...
 
virtual IlsBoolean setMainOrigin (IlsViewed *obj, IlsBoolean keepOldOrig=IlsFalse)
 Sets the main origin of the view. More...
 
IlsBoolean isMainOrigin (IlsViewed &o)
 Checks if an object is the view main origin. More...
 
virtual IlsBoolean addOrigin (IlsViewed &o)
 Adds the viewed o to the set of origins defined for the view. More...
 
virtual IlsBoolean removeOrigin (IlsViewed &o)
 Removes the viewed object from the set of origins defined for the view. More...
 
IlsBoolean isOrigin (IlsViewed &o) const
 Checks if an object is an origin of the view. More...
 
IlsViewed ** getOrigins (int &nb)
 Gets all the origins of the view. More...
 
Notification
void notifyBegin ()
 Called before notification. More...
 
void notifyEnd ()
 Called after notification. More...
 
virtual void notifyBeginSubCycle ()
 Called before a notification subcycle. More...
 
virtual void notifyEndSubCycle ()
 Called after a notification subcycle. More...
 
IlsBoolean enableNotification ()
 Enables notification. More...
 
IlsBoolean disableNotification ()
 Disables notification. More...
 
IlsBoolean isNotificationEnabled ()
 Checks if notification is enabled. More...
 
Priority
IlsBoolean setPriority (Priority pri)
 Sets the priority level of a view for notification. More...
 
Priority getPriority ()
 Returns the current priority level of a view. More...
 
Representation Status

The representation status is used to modify the representation of a Server object in a view. It can be referenced in a dynamic view type specification via the rpStatus runtime attribute, which is implicitly declared in each class of a Server object model. However, this status is not stored as a data member of these classes since it varies from one instance of a view to another and is therefore handled by each view.

IlsRpStatus getRpStatus (IlsViewed &obj)
 Returns the representation status of a Server object in a view. More...
 
void setRpStatus (IlsViewed &, IlsRpStatus status)
 Changes the representation status of a server object. More...
 
IlsBoolean isRpStatusModified (IlsViewed &)
 Checks the modification of the representation status of a server object. More...
 
Buffer Mode
IlsBoolean getBufferMode () const
 Returns IlsTrue if the view is in buffer mode.
 
IlsBoolean setBufferMode (IlsBoolean incremental=IlsTrue)
 Puts the dynamic view in buffer mode. More...
 
IlsBoolean resetBufferMode (IlsBoolean notify=IlsFalse)
 Cancels buffer mode when it has been previously set for the view. More...
 
IlsBoolean synchronize ()
 Cancels the buffer mode until the end of the next notification cycle for this view. More...
 
IlsRepresentationUpdate * getBufferedUpdates ()
 Returns the number of buffered updates for this view.
 
Closing a View
void close (IlsBoolean notify=IlsTrue)
 Requests that the view be closed. More...
 
virtual IlsBoolean closeIfNoOrigin ()
 Called when the last origin of a view has been removed. More...
 
- Public Member Functions inherited from IlsObject
virtual ~IlsObject ()
 Virtual destructor.
 
virtual void cut (ILS_CUT_DIRECTIVE=ILS_ALL)
 
IlsBoolean isInserted ()
 Indicates whether the object is owned or not.
 
IlsBoolean remove ()
 
virtual IlsBoolean lock ()
 Locks the object.
 
virtual IlsBoolean trylock ()
 
virtual IlsBoolean unlock ()
 Unlocks the object.
 
virtual IlsBoolean isUpdateAllowed ()
 
virtual IlsBoolean isUsePossible ()
 Locks the object.
 
virtual IlsBoolean isAlreadyInHierarchy (void *)
 Locks the object.
 
virtual IlsEntitygetEntity ()
 
void setEntityContext (IlsEntityContext &)
 Locks the object.
 
void unsetEntityContext (IlsEntityContext &)
 Locks the object.
 
IlsBoolean isOwnerModified ()
 During a notification phase, this member function returns IlsTrue if the owner of the object has changed since the last notification phase.
 
IlsBoolean areUsersModified ()
 During a notification phase, this member function returns IlsTrue if a use relation has been added or removed since the last notification phase.
 

Protected Member Functions

 IlsMvView (IlsMvComponentItf &compItf, IlsViewed *obj, const IlsMvViewType &vt, IlsMvValue *params, int nbParams)
 Constructor. More...
 
virtual ~IlsMvView ()
 Destructor. More...
 
virtual void onClose ()
 Called after the view has been closed. More...
 

Friends

class IlsMvServer
 
class IlsMvTimeManager
 

Buffer Size

The following member functions enable a component to be notified in several messages instead of a single message at the end of the cycle. This is especially interesting to prevent the size of the server process from increasing significantly when notifying a view with a huge number of objects (especially during creation notification).

void setUpdateBufferSize (unsigned int value)
 Sets the maximum number of object updates and attribute updates that can be buffered in the view during a notification cycle. More...
 
unsigned int getUpdateBufferSize ()
 Returns the maximum number of object updates and attribute updates that can be buffered in the view during a notification cycle.
 
static void SetUpdateBufferSize (unsigned int value)
 Sets the default number of object updates and attribute updates that can be buffered in views during a notification cycle. More...
 
static unsigned int GetUpdateBufferSize ()
 Returns the default maximum number of object updates and attribute updates that can be buffered in a view during a notification cycle.
 

Detailed Description

Dynamic view class.

Library: mvserver

Instances of the class IlsMvView or of a derived class are called dynamic views. Each instance of IlsMvView is configured by a dynamic view type specification and has an associated representation on the component side (see IlsRepresentation). The class IlsMvView is generally transparent to the user. It serves as an internal interface between the object system managed by the server and a representation managed by a component. It is documented to make it possible for you to subtype it (see the macros ILS_MVVIEW_DECL() and ILS_MVVIEW_BEGIN()/ILS_MVVIEW_END()).

The class IlsMvView implements notification functions whose purpose is to update the associated representation according to the contents of the dynamic view type specification. Notification functions use internal tables that map server objects to representation objects. IlsMvView also handles the runtime parameters attached to the view, as well as the representation status of each Server object the view subscribes to.

See also
IlsMvView, IlsMvValue, IlsRepresentation, IlsRpModel, IlsRpObject, IlsViewed.

Constructor & Destructor Documentation

◆ IlsMvView()

IlsMvView::IlsMvView ( IlsMvComponentItf compItf,
IlsViewed obj,
const IlsMvViewType &  vt,
IlsMvValue params,
int  nbParams 
)
protected

Constructor.

Usually, the IlsMvView constructor is not called directly by the user. It is called by Rogue Wave Server when a new dynamic view is opened either explicitly or implicitly when a hyper-reference is selected.

(See the functions IlsMvComponent::openView(), IlsMvServer::OpenView(), IlsRpObject::openView(), and IlsRpObject::onDereference() for details).

However, Rogue Wave Server allows you to associate an IlsMvView subtype with a dynamic view type specification (see Dynamic View Types and C++ View Types in Chapter 2, Semantics of Dynamic View Type Specifications). In this case, the constructor of the IlsMvView subtype must include the same parameters as above and pass their values to the IlsMvView constructor.

Note
You can add or remove origins to a view using the member functions IlsMvView::addOrigin() and IlsMvView::removeOrigin().
Parameters
compItfreferences the interface of the component that will create the representation of the view.
obja pointer to the Server objects to which the view will subscribe as its main origin. If this pointer is null, the view will be created with no origin, and thus no representation will be associated with it until it subscribes to one origin object at least.
vtreferences the dynamic view type. This view type is an object created by Rogue Wave Server from a dynamic view type specification. The type IlsMvViewType is not documented because it is only used internally by Rogue Wave Server.
paramsan IlsMvValue value array. It can be null. The values contained in this array, if any, are sequentially assigned to the dynamic view parameters. If a value is void, it is discarded.
nbParamsthe number of parameters in the params value array.

◆ ~IlsMvView()

virtual IlsMvView::~IlsMvView ( )
protectedvirtual

Destructor.

The destructor of this class or of a derived class should never be called explicitly.

Member Function Documentation

◆ addOrigin()

IlsBoolean IlsMvView::addOrigin ( IlsViewed o)
virtual

Adds the viewed o to the set of origins defined for the view.

The view will notify its associated application component about the creation of a new origin during the next notification phase. This function always returns IlsTrue unless it is called at exit. This member function has no effect if it is called within a transaction that is rolled back.

Parameters
othe object to add as origin
Returns
always IlsTrue unless it is called at exit.

◆ close()

void IlsMvView::close ( IlsBoolean  notify = IlsTrue)

Requests that the view be closed.

  • If the Boolean value notify is set to IlsTrue, the view is closed by the Rogue Wave Server notification engine during the next notification phase. Notification is carried out for each origin of the view. All objects to which the view subscribes is assigned the notification state ILS_NOTIFY_DELETION. Once this notification phase is complete, mappings between Server objects and representation objects are removed and the virtual function IlsView::onClose is called.
  • If notify is set to IlsFalse, the view is immediately closed and the mappings are removed.

If the close() member function is called during a transaction that has its notify argument set to IlsTrue and the transaction is rolled back, the member function has no effect. A view that is closed is automatically stopped.

Parameters
notify- If set to IlsTrue, the view is closed by the Rogue Wave Server notification engine during the next notification phase. Notification is carried out for each origin of the view. All objects to which the view subscribes is assigned the notification state ILS_NOTIFY_DELETION. Once this notification phase is complete, mappings between Server objects and representation objects are removed and the virtual function IlsView::onClose() is called.
  • If set to IlsFalse, the view is immediately closed and the mappings are removed.

◆ closeIfNoOrigin()

virtual IlsBoolean IlsMvView::closeIfNoOrigin ( )
virtual

Called when the last origin of a view has been removed.

If it returns IlsTrue – its default value – the view is closed.

◆ disableNotification()

IlsBoolean IlsMvView::disableNotification ( )

Disables notification.

This member function prevents the notification engine from calling the specific notification functions defined for the view. However, subscription to objects is updated as if the notification functions had been executed and had returned IlsTrue.

◆ enableNotification()

IlsBoolean IlsMvView::enableNotification ( )

Enables notification.

This member function enables the notification engine to call the specific notification functions defined for the view. By default, notification is enabled.

◆ getCurrentRef()

const IlsMvRef& IlsMvView::getCurrentRef ( )

Returns a reference to the reference of the representation object that provoked the current editing operation.

This reference can be used as a parameter for a callback to a function previously declared on representation objects. See Callbacks to Member Functions and Callbacks to Global Functions in the class IlsMvEndPoint, as well as the macro ILS_RP_MEMBER_FUNCTION() for details.

Returns
a reference to the reference of the representation object that provoked the current editing operation. When no representation object is found, this function returns a null reference (see IlsMvRef::isNull()).

◆ getMainOrigin()

IlsViewed * IlsMvView::getMainOrigin ( )

Returns the main origin of the view.

It is used to return the value of the runtime attribute origin, which is defined for any dynamic views. See View Specification in Chapter 2, Semantics of Dynamic View Type Specifications.

◆ getObjModelId()

IlsRpObjModelId IlsMvView::getObjModelId ( IlsTypeId  objTypeId,
IlsString  roModelNm 
) const

Gets the identifier of the representationi object of a server object.

This function browses through the view specification abstract structure. Since this may noticeably affect the runtime cost, it is recommended to store the returned value rather that re-execute this function again and again with the same arguments.

Parameters
objTypeIdserver object type identifier
roModelNmname in the specification of the view type
Returns
the identifier of the representation object model associated with the Server object type identified by the parameter objTypeId and whose name is rpModelNm in the specification of the view type. This function returns 0 if no such model is found.

◆ getOrigins()

IlsViewed** IlsMvView::getOrigins ( int &  nb)

Gets all the origins of the view.

Parameters
nbreceive the size of the returned array
Returns
an array of smart pointers to the origins of the view. You must explicitly destroy this array when you no longer need it. To do so, use delete [].

◆ getParamIndex()

int IlsMvView::getParamIndex ( IlsString  label)

Return the view parameter's index.

This member function takes a view parameter's label as its argument and returns the view parameter's index (the label of a view parameter is the one that appears in the dynamic view type specification). It returns -1 if no parameter was specified.

Parameters
labelparameter's label
Returns
parameter's index. -1 if no parameter was specified.

◆ getParamValue()

IlsMvValue IlsMvView::getParamValue ( int  id)

Get a parameter's value.

Parameters
idparameter's index
Returns
value of paramters id. The return value is empty if idx corresponds to no parameter.

◆ getPriority()

Priority IlsMvView::getPriority ( )

Returns the current priority level of a view.

Returns
current priority level of a view

◆ getReference()

IlsMvRef IlsMvView::getReference ( IlsViewed svrObj,
IlsRpObjModelId  modelId 
) const

Gets a reference to a representation object of a server object.

Parameters
svrObjserver object the representation object is mapped to
modelIdrepresentation object model identifier
Returns
the reference of the representation object that is mapped to the server object srvObj and that has modelId as its representation object model identifier. It returns a null reference is no mapping has been declared.

◆ getRpModel()

IlsRpModel* IlsMvView::getRpModel ( )

Returns a pointer to the dynamic representation model associated with the view.

This pointer is never null, unless the view is being deleted.

◆ getRpObjectId()

IlsRpObjectId IlsMvView::getRpObjectId ( IlsViewed obj,
IlsRpObjModelId  modelId 
) const

Gets representation object id associated with a server object.

Parameters
objserver object
modelIdrepresentation object model identifier
Returns
the identifier of the representation object associated with the Server object obj and the representation object model identifier modelId. It returns 0 if no association is found.

◆ getRpStatus()

IlsRpStatus IlsMvView::getRpStatus ( IlsViewed obj)

Returns the representation status of a Server object in a view.

Parameters
objthe server object
Returns
the representation status of a Server object in a view. By default, it returns 0 if the view does not subscribe to the object or 1 otherwise.

◆ getSvObject() [1/2]

IlsSmartViewed IlsMvView::getSvObject ( IlsRpObjectId  objId,
IlsRpObjModelId  modelId,
IlsRpAttributeId  attrId 
)

Retrieves the Server object associated with an attribute of type reference or hyper-reference attached to a representation object.

Parameters
objIdspecifies the identifier of the representation object
modelIdthe identifier of the representation object model
attrIdthe identifier of the attribute.
Returns
a smart pointer to the server object associated with te attribute. 0 if the attribute is neither a reference nor a hyper-reference, or if no association is found

◆ getSvObject() [2/2]

IlsSmartViewed IlsMvView::getSvObject ( IlsRpObjectId  rpId,
IlsRpObjModelId  modelId 
)

/short Gets server object associated with a representation object.

Parameters
rpIdrepresentation object identifier
modelIdobject model identifier
Returns
the Server object associated with the representation object identifier rpId and with the object model identifier modelId. It returns 0 if no association is found.

◆ isMainOrigin()

IlsBoolean IlsMvView::isMainOrigin ( IlsViewed o)

Checks if an object is the view main origin.

Parameters
othe object
Returns
IlsTrue if the argument o is the view main origin. Otherwise, it returns IlsFalse.

◆ isNotificationEnabled()

IlsBoolean IlsMvView::isNotificationEnabled ( )

Checks if notification is enabled.

Returns
IlsTrue if notification is enabled.

◆ isOrigin()

IlsBoolean IlsMvView::isOrigin ( IlsViewed o) const

Checks if an object is an origin of the view.

Parameters
othe object to check
Returns
IlsTrue if the viewed object currently belongs to the set of origins defined for the view. Otherwise, it returns IlsFalse.

◆ isParamModified()

IlsBoolean IlsMvView::isParamModified ( int  id)

Check parameter's modification since last notification phase.

Parameters
idparameter's index
Returns
IlsTrue if the parameter's id has been modified since the last notification phase. Otherwise, it returns IlsFalse.

◆ isRpStatusModified()

IlsBoolean IlsMvView::isRpStatusModified ( IlsViewed )

Checks the modification of the representation status of a server object.

This member function returns IlsTrue if the representation status of object has been modified since the last notification phase.

◆ notifyBegin()

void IlsMvView::notifyBegin ( )

Called before notification.

During an interaction cycle, Rogue Wave Server calls this virtual member function before the first notification is executed by the view. This function must be called by the notifyBegin() overloaded function of any class derived from IlsMvView before its own processing. If this function is not called at the beginning of the derived class overloaded function, the behavior is undefined.

◆ notifyBeginSubCycle()

virtual void IlsMvView::notifyBeginSubCycle ( )
virtual

Called before a notification subcycle.

A notification cycle performs a set of steps and loops until all object updates are notified to the components (see IlsMvServer::Notify()). Rogue Wave Server calls this virtual member function before the first notification operation is executed by the view in a notification subcycle.

This function is empty but it can be overridden.

◆ notifyEnd()

void IlsMvView::notifyEnd ( )

Called after notification.

During an interaction cycle, Rogue Wave Server calls this virtual member function after the last notification operation has been executed by the view. This function must be called by the notifyEnd() overloaded function of any class derived from IlsMvView after its own processing. If this function is not called at the end of the derived class overloaded function, the behavior is undefined.

◆ notifyEndSubCycle()

virtual void IlsMvView::notifyEndSubCycle ( )
virtual

Called after a notification subcycle.

This virtual member function is called by Rogue Wave Server after the last notification operation is executed by the view in a notification subcycle.

This function is empty but it can be overridden. It is useful if you have set view priorities (see IlsMvView::setPriority()). It lets you complete a logical set of feedbacks on a representation without waiting for the end of the notification phase.

◆ onClose()

virtual void IlsMvView::onClose ( )
protectedvirtual

Called after the view has been closed.

By default, it does nothing. For example, you can redefine this function to destroy a view after it has been closed, unless the view is running in its own thread. In this case, you can delete the view by overriding the virtual function onStop().

If you wish to override the function IlsMvView::onClose() , you must call it from the overriding function.

◆ removeOrigin()

IlsBoolean IlsMvView::removeOrigin ( IlsViewed o)
virtual

Removes the viewed object from the set of origins defined for the view.

The view will notify its associated application component about the deletion of this origin during the next notification phase. This member function always returns IlsTrue unless it is called at exit. This function has no effect if it is called within a transaction that is rolled back.

Parameters
othe object to remove from origins
Returns
always IlsTrue unless it is called at exit.

◆ resetBufferMode()

IlsBoolean IlsMvView::resetBufferMode ( IlsBoolean  notify = IlsFalse)

Cancels buffer mode when it has been previously set for the view.

Buffered updates will be sent to the component at the end of the next notification cycle concerning this view.

Parameters
notifyif set to IlsTrue, the view is marked as modified so that a notification cycle for this view will be triggered during the next interaction cycle
Returns
always IlsTrue

◆ setAckContext()

virtual void IlsMvView::setAckContext ( const IlsMvValue ackArgv,
IlsCbArgNb  ackArgc,
IlsBoolean  delOld = IlsTrue 
)
virtual

Called after the view has been instantiated.

It receives the contextual arguments ackArgv and ackArgc passed to the member function IlsMvComponent::openView() on the component side. Rogue Wave Server resets these parameters after the method has been called. You should therefore override the method and copy the parameters if you want to keep them.

◆ setBufferMode()

IlsBoolean IlsMvView::setBufferMode ( IlsBoolean  incremental = IlsTrue)

Puts the dynamic view in buffer mode.

It means that all subsequent updates will be stored by the view until buffer mode is canceled by a call to the function resetBufferMode() or synchronize().

Note
Rollback transactions are never buffered.
Parameters
incrementalif set to IlsTrue, only the latest update is kept. Otherwise, all updates are stored.
Returns
always IlsTrue

◆ setMainOrigin()

virtual IlsBoolean IlsMvView::setMainOrigin ( IlsViewed obj,
IlsBoolean  keepOldOrig = IlsFalse 
)
virtual

Sets the main origin of the view.

Parameters
objIf not null, the function assigns the view main origin to the object pointed to by obj. Also, this object is added to the set of origins of the view (see IlsMvView::addOrigin()). If this pointer is null, it only unsets the main origin.
keepOldOrigIf set to IlsTrue, the old origin is kept as an origin of the view. If it is set to IlsFalse, the old origin is removed from the set of origins of the view (see IlsMvView::removeOrigin()).
Returns
IlsTrue on success.

◆ setParamValue()

virtual IlsBoolean IlsMvView::setParamValue ( int  id,
IlsMvValue v 
)
virtual

Sets a parameter's value.

This member function sets the value of parameter idx to a copy of v.

Parameters
idparameter's index
vvalue copied into the parameter
Returns
IlsTrue on success.

◆ setPriority()

IlsBoolean IlsMvView::setPriority ( Priority  pri)

Sets the priority level of a view for notification.

This priority level must range from PriorityMin to PriorityMax. The default value for a view is PriorityDefault. The priority is used by the notification engine to determine the notification precedence order among views.

Let us assume we have three views V1, V2, V3 with respective priorities P1, P2, P3 such as P1 > P2 > P3. Notification takes place as follows:

  • At each notification phase, Rogue Wave Server first executes a notification subcycle for view V1.
  • At the end of this subcycle, a new subcycle is executed for view V1 if new objects have been updated. This process iterates with view V1 until there are no more updates.
  • Similarly, the notification is then executed for view V2, then for view V3. However, if new objects are updated for view V1 during the notification of V2 or V3, a new subcycle is performed for view V1 and subsequently for views V2 and V3.
  • The functions IlsMvView::notifyBeginSubCycle() and IlsViewServer::notifyEndSubCycle() are called respectively at the beginning and at the end of each subcycle on the views involved, except on those that do not execute any notification operation.

Since assigning priority levels increases the number of notification subcycles, it is recommended that this be done only when necessary.

Parameters
pripriority
Returns
IlsFalse if called during notification. In that case, the priority is not changed.

◆ setRpStatus()

void IlsMvView::setRpStatus ( IlsViewed ,
IlsRpStatus  status 
)

Changes the representation status of a server object.

This member function assigns value to the representation status of a Server object. If value equals 0, subscription to the Server object is canceled automatically and the representations associated with this object is destroyed.

◆ setTrace()

void IlsMvView::setTrace ( IlsBoolean  status = IlsTrue)

Puts the view in trace mode if the status argument is true, otherwise, its cancels the trace mode.

Parameters
statustrace mode

◆ setUpdateBufferSize()

void IlsMvView::setUpdateBufferSize ( unsigned int  value)

Sets the maximum number of object updates and attribute updates that can be buffered in the view during a notification cycle.

When that limit is reached, the updates are automatically sent, triggering a notification transaction on the component side. The default value of 0 means no limit.

Parameters
valuemaximum number of possible buffered updates

◆ SetUpdateBufferSize()

static void IlsMvView::SetUpdateBufferSize ( unsigned int  value)
static

Sets the default number of object updates and attribute updates that can be buffered in views during a notification cycle.

This number is used at view creation.

Parameters
valuedefault number of maximum buffered updates.

◆ synchronize()

IlsBoolean IlsMvView::synchronize ( )

Cancels the buffer mode until the end of the next notification cycle for this view.

The view is marked as modified so that a notification cycle for this view will be triggered during the next interaction cycle.

Returns
always IlsTrue