// // 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[] = {{"pixel", &User::cmd_hv, 2, " ", "Change bias of pixel"}, {"channel", &User::cmd_hv, 2, " ", "Change bias of (all) channels of active crate"}, {"gs", &User::cmd_gs, 1, "[crate] ", "Global voltage set active crate"}, {"reset", &User::cmd_reset, 0, "", "Reset active crate"}, {"synch", &User::cmd_synch, 0, "", "Synchronize active crate"}, {"crate", &User::cmd_crate, 1, "", "Select active crate"}, {"status", &User::cmd_status, 0, "[dac|current]", "Show status information (DAC values if requested)"}, {"mode", &User::cmd_mode, 1, "", "Set voltage stabilization mode (experimental)"}, {"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, "