flag for saving both compressed and normal files

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@746 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2014-03-04 09:34:04 +00:00
parent 42cb3a02bb
commit dd1f4ca250
3 changed files with 219 additions and 86 deletions

View File

@ -270,9 +270,10 @@ private:
/**
* Creates new file
* @param ithr thread number
*\returns OK for succces or FAIL for failure
*/
int createNewFile();
int createNewFile(int ithr = 0);
/**
* Static function - Thread started which listens to packets.
@ -307,8 +308,9 @@ private:
* Writing to file without compression
* @param buf is the address of buffer popped out of fifo
* @param num
* @param ithr thread number
*/
void writeToFile_withoutCompression(char* buf,int numpackets);
void writeToFile_withoutCompression(char* buf,int numpackets,int ithr = 0);
@ -529,7 +531,13 @@ private:
/** File Descriptor */
FILE *sfilefd;
#ifdef ALLFILE
/** File Descriptor */
FILE *sfilefdAll[MAX_NUM_WRITER_THREADS];
/** Pckets currently in current file, starts new file when it reaches max for the current thread*/
int packetsInAllFile[MAX_NUM_WRITER_THREADS];
#endif
/**