more of sendToDetector

This commit is contained in:
Erik Frojdh
2019-04-24 14:39:08 +02:00
parent 834b1e58ea
commit dbf927901f
5 changed files with 230 additions and 331 deletions

View File

@ -3,6 +3,9 @@ using dt = slsDetectorDefs::detectorType;
using di = slsDetectorDefs::dacIndex;
using ti = slsDetectorDefs::timerIndex;
using ro = slsDetectorDefs::readOutFlags;
using sv = slsDetectorDefs::speedVariable;
using defs = slsDetectorDefs;
extern std::string hostname;
extern std::string detector_type;
extern dt type;
extern dt type;
extern std::string my_ip;

View File

@ -14,16 +14,20 @@ using dt = slsDetectorDefs::detectorType;
std::string hostname;
std::string detector_type;
std::string my_ip;
dt type;
int main(int argc, char *argv[]) {
Catch::Session session;
my_ip = "undefined";
Catch::Session session;
auto cli = session.cli() |
Opt(hostname, "hostname")["-hn"]["--hostname"](
"Detector hostname for integration tests") |
Opt(detector_type, "detector_type")["-dt"]["--detector_type"](
"Detector type for integration tests");
"Detector type for integration tests") |
Opt(my_ip, "my_ip")["-hip"]["--host_ip"](
"Host ip address");
session.cli(cli);