mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-01 04:34:56 +01:00
from private to protected
This commit is contained in:
@@ -110,8 +110,11 @@ void UDPStandardImplementation::initializeMembers(){
|
||||
strcpy(detHostname,"");
|
||||
strcpy(guiFileName,"");
|
||||
strcpy(savefilename,"");
|
||||
strcpy(filePath,"");
|
||||
strcpy(fileName,"run");
|
||||
|
||||
setFileName("run");
|
||||
setFilePath("");
|
||||
//strcpy(filePath,"");
|
||||
//strcpy(fileName,"run");
|
||||
|
||||
|
||||
//status
|
||||
@@ -122,16 +125,17 @@ void UDPStandardImplementation::initializeMembers(){
|
||||
}
|
||||
|
||||
|
||||
UDPStandardImplementation::UDPStandardImplementation():
|
||||
thread_started(0),
|
||||
eth(NULL),
|
||||
latestData(NULL),
|
||||
guiFileName(NULL),
|
||||
guiFrameNumber(0),
|
||||
tengigaEnable(0){
|
||||
UDPStandardImplementation::UDPStandardImplementation(){
|
||||
|
||||
cout << "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa" << endl;
|
||||
|
||||
thread_started = 0;
|
||||
eth = NULL;
|
||||
latestData = NULL;
|
||||
guiFileName = NULL;
|
||||
guiFrameNumber = 0;
|
||||
tengigaEnable = 0;
|
||||
|
||||
for(int i=0;i<MAX_NUM_LISTENING_THREADS;i++){
|
||||
udpSocket[i] = NULL;
|
||||
server_port[i] = DEFAULT_UDP_PORTNO+i;
|
||||
@@ -364,7 +368,6 @@ char* UDPStandardImplementation::getFilePath() const{
|
||||
return (char*)filePath;
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
char* UDPStandardImplementation::setFilePath(const char c[]){
|
||||
if(strlen(c)){
|
||||
@@ -1234,6 +1237,9 @@ int UDPStandardImplementation::createNewFile(){
|
||||
else
|
||||
sprintf(savefilename, "%s/%s_f%012d_%d.raw", filePath,fileName,(packetsCaught/packetsPerFrame),fileIndex);
|
||||
|
||||
|
||||
cout << filePath << " + " << fileName << endl;
|
||||
|
||||
//if filewrite and we are allowed to write
|
||||
if(enableFileWrite && cbAction > DO_NOTHING){
|
||||
//close
|
||||
|
||||
Reference in New Issue
Block a user