mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
added checkonline command
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@246 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -2248,11 +2248,13 @@ string slsDetectorCommand::cmdOnline(int narg, char *args[], int action) {
|
|||||||
sprintf(ans,"%d",myDet->setOnline());
|
sprintf(ans,"%d",myDet->setOnline());
|
||||||
}//"checkonline"
|
}//"checkonline"
|
||||||
else{
|
else{
|
||||||
|
if (action==PUT_ACTION)
|
||||||
|
return string("cannot set");
|
||||||
strcpy(ans,myDet->checkOnline().c_str());
|
strcpy(ans,myDet->checkOnline().c_str());
|
||||||
if(!strlen(ans))
|
if(!strlen(ans))
|
||||||
strcpy(ans,"All online");
|
strcpy(ans,"All online");
|
||||||
else
|
else
|
||||||
strcat(ans," :not online");
|
strcat(ans," :Not online");
|
||||||
}
|
}
|
||||||
return ans;
|
return ans;
|
||||||
}
|
}
|
||||||
@ -2266,6 +2268,7 @@ string slsDetectorCommand::helpOnline(int narg, char *args[], int action) {
|
|||||||
}
|
}
|
||||||
if (action==GET_ACTION || action==HELP_ACTION) {
|
if (action==GET_ACTION || action==HELP_ACTION) {
|
||||||
os << "online \n gets the detector online (1) or offline (0) mode"<< std::endl;
|
os << "online \n gets the detector online (1) or offline (0) mode"<< std::endl;
|
||||||
|
os << "checkonline \n returns the hostnames of all detectors in offline mode"<< std::endl;
|
||||||
}
|
}
|
||||||
return os.str();
|
return os.str();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user