r_framesperfile configurable to have infinite frames in file with option 0

This commit is contained in:
2018-05-18 16:35:50 +02:00
parent 94ce042401
commit f393751771
6 changed files with 26 additions and 12 deletions

View File

@ -98,7 +98,7 @@ class UDPBaseImplementation : protected virtual slsReceiverDefs, public UDPInter
uint64_t getFileIndex() const;
/**
* Get Frames per File
* Get Frames per File (0 means infinite)
* @return Frames per File
*/
uint32_t getFramesPerFile() const;
@ -363,7 +363,7 @@ class UDPBaseImplementation : protected virtual slsReceiverDefs, public UDPInter
void setFileIndex(const uint64_t i);
/**
* Set Frames per File
* Set Frames per File (0 means infinite)
* @param i Frames per File
*/
void setFramesPerFile(const uint32_t i);
@ -751,7 +751,7 @@ class UDPBaseImplementation : protected virtual slsReceiverDefs, public UDPInter
char filePath[MAX_STR_LENGTH];
/** File Index */
uint64_t fileIndex;
/** Frames per file */
/** Frames per file (0 means infinite) */
uint32_t framesPerFile;
/** Scan Tag */
int scanTag;

View File

@ -186,7 +186,7 @@ class UDPInterface {
virtual uint64_t getFileIndex() const = 0;
/**
* Get Frames per File
* Get Frames per File (0 means infinite)
* @return Frames per File
*/
virtual uint32_t getFramesPerFile() const = 0;
@ -450,7 +450,7 @@ class UDPInterface {
virtual void setFileIndex(const uint64_t i) = 0;
/**
* Set Frames per File
* Set Frames per File (0 means infinite)
* @param i Frames per File
*/
virtual void setFramesPerFile(const uint32_t i) = 0;

View File

@ -15,6 +15,8 @@
#define DO_NOTHING 0
#define DO_EVERYTHING 1
#define STATISTIC_FRAMENUMBER_INFINITE 20000
//binary
#define FILE_BUFFER_SIZE (16*1024*1024) //16mb