mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
changed type of getCalDir to std::string
This commit is contained in:
@ -493,12 +493,12 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
|
||||
returns the location of the calibration files
|
||||
\sa sharedSlsDetector
|
||||
*/
|
||||
char* getCalDir() {return thisDetector->calDir;};
|
||||
std::string getCalDir() {return thisDetector->calDir;};
|
||||
/**
|
||||
sets the location of the calibration files
|
||||
\sa sharedSlsDetector
|
||||
*/
|
||||
char* setCalDir(string s) {sprintf(thisDetector->calDir, s.c_str()); return thisDetector->calDir;};
|
||||
std::string setCalDir(string s) {sprintf(thisDetector->calDir, s.c_str()); return thisDetector->calDir;};
|
||||
|
||||
|
||||
|
||||
|
@ -3061,9 +3061,9 @@ string slsDetectorCommand::cmdCalDir(int narg, char *args[], int action){
|
||||
if (action==PUT_ACTION) {
|
||||
myDet->setCalDir(string(args[1]));
|
||||
}
|
||||
if (myDet->getCalDir()==NULL)
|
||||
if ( (myDet->getCalDir()).empty() )
|
||||
return string("undefined");
|
||||
return string(myDet->getCalDir());
|
||||
return myDet->getCalDir();
|
||||
}
|
||||
|
||||
|
||||
|
@ -413,12 +413,12 @@ class slsDetectorUtils : public slsDetectorActions, public postProcessing {
|
||||
/**
|
||||
returns the location of the calibration files
|
||||
*/
|
||||
virtual char* getCalDir()=0;
|
||||
virtual std::string getCalDir()=0;
|
||||
|
||||
/**
|
||||
sets the location of the calibration files
|
||||
*/
|
||||
virtual char* setCalDir(std::string s)=0;
|
||||
virtual std::string setCalDir(std::string s)=0;
|
||||
|
||||
/** Frees the shared memory - should not be used except for debugging*/
|
||||
virtual int freeSharedMemory()=0;
|
||||
|
Reference in New Issue
Block a user