added silent mode in receiver during real time acquisition, doesnt print packet loss regularly or file name created each time

This commit is contained in:
Dhanya Maliakal
2017-09-27 10:11:31 +02:00
parent 11d58beec2
commit 6a8aad4c2b
20 changed files with 214 additions and 26 deletions

View File

@ -13,7 +13,8 @@ using namespace std;
File::File(int ind, uint32_t maxf, const uint32_t* ppf,
int* nd, char* fname, char* fpath, uint64_t* findex,
bool* frindexenable, bool* owenable,
int* dindex, int* nunits, uint64_t* nf, uint32_t* dr, uint32_t* portno):
int* dindex, int* nunits, uint64_t* nf, uint32_t* dr, uint32_t* portno,
bool* smode):
index(ind),
maxFramesPerFile(maxf),
packetsPerFrame(ppf),
@ -28,7 +29,8 @@ File::File(int ind, uint32_t maxf, const uint32_t* ppf,
numUnitsPerDetector(nunits),
numImages(nf),
dynamicRange(dr),
udpPortNumber(portno)
udpPortNumber(portno),
silentMode(smode)
{
master = index?false:true;
@ -59,7 +61,8 @@ void File::PrintMembers() {
<< "Dynamic Range: " << *dynamicRange << endl
<< "UDP Port number: " << *udpPortNumber << endl
<< "Master File Name: " << masterFileName << endl
<< "Current File Name: " << currentFileName;
<< "Current File Name: " << currentFileName << endl
<< "Silent Mode: " << silentMode;
}