CERN -> IPT Group -> FrameMaker at CERN
Information Service User's Guide

12.1 ISCallbackEvent


Synopsis
#include <is/inforeceiver.h>
void user_callback(ISCallbackEvent * isc) { ... }


Description

This class is used to pass the information about changes in the IS repository to the user callback function which has been subscribed for these information using the ISInfoReceiver class. If callback function with this parameter is used for the subscription, then IS will not transfer object values as part of the notification.

This class has no public constructors and can't be created by a user. The pointer to an instance of this class is passed as an argument to the user callback function.


Example
1: void user_callback(ISCallbackInfo * isc){
2: ISInfoInt isi;
3:
4: if ( isc->type() == isi.type() ){
5: isc->value(isi);
6: cout << isc->name() << " : " << isi << endl;
7: }
8: else
9: cout << isc->name() << " has unknown type " << isc->type() << endl;
10: }


Public Member Functions
ISType
type();
Returns type of the changed information.
const char *
name();
Returns name of the changed information.
void *
parameter();
Returns user's parameter that has been provided via the subscribe method of the ISInfoReceiver method.
ISInfoReason
reason();
Returns the reason of notification.


2 July 1998 - WebMaster
Copyright © CERN 1998