From 8d006d548681b1f293c5a0d601bfe68731752e82 Mon Sep 17 00:00:00 2001 From: bergamaschi Date: Fri, 2 Jul 2010 14:16:16 +0000 Subject: [PATCH] client version added to textclient git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@20 951219d9-93cf-4727-9268-0efd64621fa3 --- .../mythenDetector/mythenDetector.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/slsDetectorSoftware/mythenDetector/mythenDetector.cpp b/slsDetectorSoftware/mythenDetector/mythenDetector.cpp index ae7114be8..56ed4b62d 100644 --- a/slsDetectorSoftware/mythenDetector/mythenDetector.cpp +++ b/slsDetectorSoftware/mythenDetector/mythenDetector.cpp @@ -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;