mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 21:37:13 +02:00
cleaning up slsDetectorCommand
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include "slsDetectorCommand.h"
|
||||
#include "multiSlsDetector.h"
|
||||
#include "string_utils.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
|
@ -1,9 +1,7 @@
|
||||
#include "multiSlsDetectorClient.h"
|
||||
#include "gitInfoLib.h"
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
using namespace std;
|
||||
#include <cstdlib>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@ -11,7 +9,7 @@ int main(int argc, char *argv[])
|
||||
for (int i = 1; i < argc; ++i ) {
|
||||
if (!(strcmp (argv[i],"--version")) || !(strcmp (argv[i],"-v"))) {
|
||||
int64_t tempval = GITDATE;
|
||||
cout << argv[0] << " " << GITBRANCH << " (0x" << hex << tempval << ")" << endl;
|
||||
std::cout << argv[0] << " " << GITBRANCH << " (0x" << std::hex << tempval << ")" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@ -24,23 +22,19 @@ int main(int argc, char *argv[])
|
||||
int action=slsDetectorDefs::GET_ACTION;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef READOUT
|
||||
int action=slsDetectorDefs::READOUT_ACTION;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef HELP
|
||||
int action=slsDetectorDefs::HELP_ACTION;
|
||||
#endif
|
||||
|
||||
multiSlsDetectorClient *cl;
|
||||
if (argc>1)
|
||||
cl=new multiSlsDetectorClient(argc-1, argv+1, action);
|
||||
multiSlsDetectorClient(argc-1, argv+1, action);
|
||||
else
|
||||
cl=new multiSlsDetectorClient(argc-1, argv, action);
|
||||
multiSlsDetectorClient(argc-1, argv, action);
|
||||
|
||||
delete cl;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user