const string&

This commit is contained in:
Erik Frojdh
2018-10-11 15:25:29 +02:00
parent 316ba01297
commit f806759af3
2 changed files with 10 additions and 10 deletions

View File

@ -468,7 +468,7 @@ public:
* @param fname configuration file name
* @return OK or FAIL
*/
int readConfigurationFile(std::string const fname);
int readConfigurationFile(const std::string& fname);
/**
* Write current configuration to a file
@ -929,7 +929,7 @@ public:
* @param detPos -1 for all detectors in list or specific detector position
* @returns OK or FAIL
*/
int loadImageToDetector(imageType index,std::string const fname, int detPos = -1);
int loadImageToDetector(imageType index, const std::string& fname, int detPos = -1);
/**
* Writes the counter memory block from the detector (Gotthard)
@ -938,7 +938,7 @@ public:
* @param detPos -1 for all detectors in list or specific detector position
* @returns OK or FAIL
*/
int writeCounterBlockFile(std::string const fname,int startACQ=0, int detPos = -1);
int writeCounterBlockFile(const std::string& fname,int startACQ=0, int detPos = -1);
/**
* Resets counter in detector (Gotthard)
@ -1516,7 +1516,7 @@ public:
* from files with default extensions as generated by dumpDetectorSetup
* @returns OK or FAIL
*/
int retrieveDetectorSetup(std::string const fname, int level=0);
int retrieveDetectorSetup(const std::string& fname, int level=0);
/**
* Saves the detector setup to file
@ -1525,7 +1525,7 @@ public:
* and writes them to files with automatically added extension
* @returns OK or FAIL
*/
int dumpDetectorSetup(std::string const fname, int level=0);
int dumpDetectorSetup(const std::string& fname, int level=0);
/**
* register callback for accessing acquisition final data