mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
chaning return type of getSettingsDir and setSettingsDir to std::string
This commit is contained in:
@ -483,9 +483,9 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
|
||||
/* I/O */
|
||||
|
||||
/** returns the detector trimbit/settings directory \sa sharedSlsDetector */
|
||||
char* getSettingsDir() {return thisDetector->settingsDir;};
|
||||
std::string getSettingsDir() {return std::string(thisDetector->settingsDir);};
|
||||
/** sets the detector trimbit/settings directory \sa sharedSlsDetector */
|
||||
char* setSettingsDir(string s) {sprintf(thisDetector->settingsDir, s.c_str()); return thisDetector->settingsDir;};
|
||||
std::string setSettingsDir(string s) {sprintf(thisDetector->settingsDir, s.c_str()); return thisDetector->settingsDir;};
|
||||
|
||||
|
||||
|
||||
|
@ -3031,9 +3031,9 @@ string slsDetectorCommand::cmdSettingsDir(int narg, char *args[], int action){
|
||||
if (action==PUT_ACTION) {
|
||||
myDet->setSettingsDir(string(args[1]));
|
||||
}
|
||||
if (myDet->getSettingsDir()==NULL)
|
||||
if (myDet->getSettingsDir()=="")
|
||||
return string("undefined");
|
||||
return string(myDet->getSettingsDir());
|
||||
return myDet->getSettingsDir();
|
||||
}
|
||||
|
||||
|
||||
|
@ -405,10 +405,10 @@ class slsDetectorUtils : public slsDetectorActions, public postProcessing {
|
||||
/**
|
||||
returns the detector trimbit/settings directory
|
||||
*/
|
||||
virtual char* getSettingsDir()=0;
|
||||
virtual std::string getSettingsDir()=0;
|
||||
|
||||
/** sets the detector trimbit/settings directory */
|
||||
virtual char* setSettingsDir(std::string s)=0;
|
||||
virtual std::string setSettingsDir(std::string s)=0;
|
||||
|
||||
/**
|
||||
returns the location of the calibration files
|
||||
|
Reference in New Issue
Block a user