/********************************************************************\ ProcessIO.cc Main class processing user input Sebastian Commichau, Sabrina Stark-Schneebeli, Oliver Grimm \********************************************************************/ #include "ProcessIO.h" static const char* state_str[] = {"active", "stopped", "n.a."}; // Branch table for command evaluation static const struct CL_Struct { const char *Name; void (ProcessIO::*CommandPointer)(); unsigned int MinNumParameter; const char *Parameters; const char *Help; } CommandList[] = {{"board", &ProcessIO::cmd_board, 1, "||" ,"Address board i, boards i-j or all boards or list boards"}, {"hv", &ProcessIO::cmd_hv, 2, "|| ", "Change bias of pixel or (all) chan. of active boards"}, {"status", &ProcessIO::cmd_status, 0, "[dac]", "Show status information (DAC values if requested)"}, {"config", &ProcessIO::cmd_config, 0, "", "Print configuration"}, {"load", &ProcessIO::cmd_load, 1, "", "Load and set bias settings from file"}, {"save", &ProcessIO::cmd_save, 1, "", "Save current bias settings to file"}, {"exit", &ProcessIO::cmd_exit, 0, "", "Exit program"}, {"rate", &ProcessIO::cmd_rate, 1, "", "Set status refresh rate in Hz"}, {"timeout", &ProcessIO::cmd_timeout, 1, "