mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
opened client command interface to the users class
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
#include "slsDetectorUsers.h"
|
||||
#include "detectorData.h"
|
||||
#include "multiSlsDetector.h"
|
||||
#include "multiSlsDetectorCommand.h"
|
||||
|
||||
|
||||
slsDetectorUsers::slsDetectorUsers(int id) : myDetector(NULL){
|
||||
|
||||
myDetector=new multiSlsDetector(id);
|
||||
|
||||
myCmd=new multiSlsDetectorCommand(myDetector);
|
||||
};
|
||||
|
||||
|
||||
@ -303,5 +305,18 @@ void slsDetectorUsers::registerGetI0Callback( double (*func)(int,void*),void *ar
|
||||
}
|
||||
|
||||
|
||||
string slsDetectorUsers::putCommand(int narg, char *args[], int pos){
|
||||
if(narg < 2)
|
||||
return string("Error: Insufficient Parameters");
|
||||
return myCmd->putCommand(narg, args, pos);
|
||||
}
|
||||
|
||||
|
||||
string slsDetectorUsers::getCommand(int narg, char *args[], int pos){
|
||||
if(narg < 1)
|
||||
return string("Error: Insufficient Parameters");
|
||||
return myCmd->getCommand(narg, args, pos);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user