mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-22 01:01:41 +01:00
removed pointer in multiSlsDetectorClient
This commit is contained in:
@@ -1,40 +1,33 @@
|
||||
#include "multiSlsDetectorClient.h"
|
||||
#include "gitInfoLib.h"
|
||||
|
||||
#include "multiSlsDetectorClient.h"
|
||||
#include <cstdlib>
|
||||
|
||||
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;
|
||||
std::cout << argv[0] << " " << GITBRANCH << " (0x" << std::hex << tempval << ")" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
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;
|
||||
std::cout << argv[0] << " " << GITBRANCH << " (0x" << std::hex << tempval << ")" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef PUT
|
||||
int action=slsDetectorDefs::PUT_ACTION;
|
||||
int action = slsDetectorDefs::PUT_ACTION;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef GET
|
||||
int action=slsDetectorDefs::GET_ACTION;
|
||||
int action = slsDetectorDefs::GET_ACTION;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef READOUT
|
||||
int action=slsDetectorDefs::READOUT_ACTION;
|
||||
int action = slsDetectorDefs::READOUT_ACTION;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef HELP
|
||||
int action=slsDetectorDefs::HELP_ACTION;
|
||||
int action = slsDetectorDefs::HELP_ACTION;
|
||||
#endif
|
||||
|
||||
if (argc>1)
|
||||
multiSlsDetectorClient(argc-1, argv+1, action);
|
||||
else
|
||||
multiSlsDetectorClient(argc-1, argv, action);
|
||||
|
||||
if (argc > 1)
|
||||
argv++;
|
||||
multiSlsDetectorClient(argc - 1, argv, action);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user