Go to the source code of this file.
Functions | |
| int | dataCallback (detectorData *pData, int iframe, int isubframe, void *pArg) |
| int | main (int argc, char **argv) |
This file is an example of how to implement the slsDetectorUsers class You can compile it linking it to the slsDetector library
g++ mainClient.cpp -L lib -lSlsDetector -L/usr/lib64/ -L lib2 -lzmq -pthread -lrt -lm -lstdc++
where,
lib is the location of libSlsDetector.so
lib2 is the location of the libzmq.a. [ libzmq.a is required only when using data call backs and enabling data streaming from receiver to client. It is linked in manual/manual-api from slsReceiverSoftware/include ]
Definition in file mainClient.cpp.
| int dataCallback | ( | detectorData * | pData, |
| int | iframe, | ||
| int | isubframe, | ||
| void * | pArg | ||
| ) |
Data Call back function defined
| pData | pointer to data structure received from the call back |
| iframe | frame number of data passed |
| isubframe | sub frame number of data passed ( only valid for EIGER in 32 bit mode) |
| pArg | pointer to object |
Definition at line 32 of file mainClient.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Example of a main program using the slsDetectorUsers class
Definition at line 49 of file mainClient.cpp.
1.8.5