# slsReceiverUsers.h Source File

# slsReceiverUsers.h

Go to the documentation of this file.

    00001
    00002 #ifndef SLS_RECEIVER_USERS_H
    00003 #define SLS_RECEIVER_USERS_H
    00004
    00005 #include <stdio.h>
    00006 #include <stdint.h>
    00007
    00008 class slsReceiverTCPIPInterface;
    00009
    00021 class slsReceiverUsers {
    00022
    00023 public:
    00031   slsReceiverUsers(int argc, char *argv[], int &success);
    00032
    00033
    00035         ~slsReceiverUsers();
    00036
    00038         void closeFile(int p);
    00039
    00044         int start();
    00045
    00047         void stop();
    00048
    00053         int64_t getReceiverVersion();
    00054
    00064         void registerCallBackStartAcquisition(int (*func)(char* filepath, char* filename,int fileindex, int datasize, void*),void *arg);
    00065
    00066
    00074         void registerCallBackAcquisitionFinished(void (*func)(int nf, void*),void *arg);
    00075
    00076
    00077
    00084         void registerCallBackRawDataReady(void (*func)(int framenumber, char* datapointer, int datasize, FILE* filedescriptor, char* guidatapointer, void*),void *arg);
    00085
    00086         // made static to close thread files with ctrl+c
    00087         static slsReceiverTCPIPInterface* receiver;
    00088 };
    00089
    00090
    00091 #endif