12.2 ISCallbackInfo
ISCallbackEvent
#include <is/inforeceiver.h>
void user_callback(ISCallbackInfo * isc) { ... }
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 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.
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: }
ISType
type();
-
Inherited from ISCallbackEvent.
const char *
name();
-
Inherited from ISCallbackEvent.
void *
parameter();
-
Inherited from ISCallbackEvent.
ISInfoReason
reason();
-
Inherited from ISCallbackEvent.
ISInfo::Status
value(ISInfo & info);
-
Puts the new value of the information to the info object. This object must have the same type as the object whose value was changed. Returns ISInfo::IncompatibleType if the type of info is not the same as type of the changed information.
2 July 1998 - WebMaster | Copyright © CERN 1998 |