From c7d0330f55a5f92c64f08af60e7060799cae9878 Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Fri, 6 Jan 2012 10:13:16 +0000 Subject: [PATCH] got rid of some parameters in read-write of config file git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@77 951219d9-93cf-4727-9268-0efd64621fa3 --- .../gotthardDetector/gotthardDetector.cpp | 72 ++----------------- 1 file changed, 6 insertions(+), 66 deletions(-) diff --git a/slsDetectorSoftware/gotthardDetector/gotthardDetector.cpp b/slsDetectorSoftware/gotthardDetector/gotthardDetector.cpp index d13d5a712..08cb2b0a2 100644 --- a/slsDetectorSoftware/gotthardDetector/gotthardDetector.cpp +++ b/slsDetectorSoftware/gotthardDetector/gotthardDetector.cpp @@ -73,54 +73,6 @@ int gotthardDetector::readConfigurationFile(string const fname){ #endif } - - /* - //---------------mac address---------- - getline(infile,str); - iline++; -#ifdef VERBOSE - std::cout<< str << std::endl; -#endif - istringstream sstr(str); - sstr >> sargname >> sargname2; -#ifdef VERBOSE - std::cout<< sargname << " is " << sargname2 << std::endl; -#endif - //getting rid of dots - pos = sargname2.find(":"); - while(pos != string::npos) - { - sargname2.erase( pos, 1 ); - pos = sargname2.find(":"); - } - strcpy(thisDetector->clientMacAddress,sargname2.c_str()); - //sprintf(thisDetector->clientMacAddress,"%0llX",atoll(sargname2.c_str())); - cout<<"macaddress:"<clientMacAddress<> sargname >> sargname2; -#ifdef VERBOSE - std::cout<< sargname << " is " << sargname2 << std::endl; -#endif - //getting rid of dots - pos = sargname2.find("."); - while(pos != string::npos) - { - sargname2.erase( pos, 1 ); - pos = sargname2.find("."); - } - strcpy(thisDetector->clientIPAddress,sargname2.c_str()); - cout<<"ipaddress:"<clientIPAddress<