client version added to textclient

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@20 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
bergamaschi 2010-07-02 14:16:16 +00:00
parent a60ac8963c
commit 8d006d5486

View File

@ -465,7 +465,15 @@ string mythenDetector::executeLine(int narg, char *args[], int action) {
}
sprintf(answer,"%llx",getId(DETECTOR_SOFTWARE_VERSION));
return string(answer);
} else if (var.find("digitest")==0) {//else if (var=="digitest") {
} else if (var=="thisversion") {
if (action==PUT_ACTION) {
return string("cannot set ");
}
sprintf(answer,"%llx",getId(THIS_SOFTWARE_VERSION));
return string(answer);
}
else if (var.find("digitest")==0) {//else if (var=="digitest") {
cout << "digitest" << endl;
if (action==PUT_ACTION) {
return string("cannot set ");
@ -903,6 +911,8 @@ string mythenDetector::helpLine( int action) {
os << std::endl;
os << "softwareversion\t Gets the detector software version " << std::endl;
os << std::endl;
os << "thisversion\t Gets the version of this software" << std::endl;
os << std::endl;
os << "digitest\t Makes a digital test of the detector. Returns 0 if it succeeds " << std::endl;
os << std::endl;
os << "bustest\t Makes a test of the detector bus. Returns 0 if it succeeds " << std::endl;