mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 00:58:01 +02:00
changed the getdetectorstype function to return type and not string
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@178 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -1265,9 +1265,8 @@ int slsDetector::setDetectorType(string const stype){
|
||||
return setDetectorType(getDetectorType(stype));
|
||||
};
|
||||
|
||||
string slsDetector::getDetectorsType(int pos){
|
||||
return getDetectorType(thisDetector->myDetectorType);
|
||||
|
||||
slsDetectorDefs::detectorType slsDetector::getDetectorsType(int pos){
|
||||
return thisDetector->myDetectorType;
|
||||
}
|
||||
|
||||
|
||||
|
@ -602,9 +602,9 @@ typedef struct sharedSlsDetector {
|
||||
/**
|
||||
gets detector type
|
||||
normally the detector knows what type of detector it is
|
||||
\param type is the string where the detector type will be written ("Mythen", "Pilatus", "XFS", "Gotthard", Agipd")
|
||||
\returns returns detector type index (1 GENERIC, 2 MYTHEN, 3 PILATUS, 4 XFS, 5 GOTTHARD, 6 AGIPD, -1 command failed)
|
||||
*/
|
||||
string getDetectorsType(int pos=-1);
|
||||
detectorType getDetectorsType(int pos=-1);
|
||||
|
||||
|
||||
// Detector configuration functions
|
||||
|
@ -115,7 +115,7 @@ class slsDetectorUtils : public slsDetectorActions, public slsDetectorBase {
|
||||
\param pos position in the multi detector structure (is -1 returns type of detector with id -1)
|
||||
\returns type
|
||||
*/
|
||||
virtual string getDetectorsType(int pos=-1)=0;
|
||||
virtual detectorType getDetectorsType(int pos=-1)=0;
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user