// // Class processing user input // #include "User.h" #include using namespace std; // Branch table for command evaluation static const struct CL_Struct { const char *Name; void (User::*CommandPointer)(); unsigned int MinNumParameter; const char *Parameters; const char *Help; } CommandList[] = {{"synch", &User::cmd_synch, 0, "", "Synchronize board"}, {"hv", &User::cmd_hv, 2, "|| ", "Change bias of pixel or (all) chan. of active boards"}, {"gs", &User::cmd_gs, 1, "[crate] ", "Global voltage set"}, {"status", &User::cmd_status, 0, "[dac|current]", "Show status information (DAC values if requested)"}, {"ccal", &User::cmd_ccal, 1, "", "Calibrate current measurement at given voltage"}, {"mode", &User::cmd_mode, 1, "", "Set voltage stabilization mode"}, {"load", &User::cmd_load, 1, "", "Load and set bias settings from file"}, {"save", &User::cmd_save, 1, "", "Save current bias settings to file"}, {"rate", &User::cmd_rate, 1, "", "Set refresh rate in Hz"}, {"timeout", &User::cmd_timeout, 1, "