15.2 ISCallbackInfo
ISCallbackEvent
#include <is/callbackinfo.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. If callback function with the ISCallbackInfo parameter is used for the subscription, then IS will supply the new object value 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: }
const char *
name();
-
Inherited from ISCallbackEvent.
void *
parameter();
-
Inherited from ISCallbackEvent.
ISInfo::Reason
reason();
-
Inherited from ISCallbackEvent.
int
tag();
-
Inherited from ISCallbackEvent.
const OWLTime &
time();
-
Inherited from ISCallbackEvent.
ISType
type();
-
Inherited from ISCallbackEvent.
void
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. Throws daq::is::InfoNotCompatible if the type of info is not the same as type of the changed information.
| 2 July 1998 - WebMaster | Copyright © CERN 1998 |