tdaq-develop-2025-02-12
|
Public Member Functions | |
ots_mm_udp_interface (const char *mm_ip, int mm_port) | |
const std::string & | getFrontendMacroInfo (void) |
returns CSV list of Front-end interface UIDs | |
std::string | getFrontendList (void) |
returns CSV list of Front-end interface UIDs | |
std::string | getCommandList (const std::string &targetFE) |
int | getCommandInputCount (const std::string &targetFE, const std::string &command) |
int | getCommandOutputCount (const std::string &targetFE, const std::string &command) |
std::string | getCommandInputName (const std::string &targetFE, const std::string &command, int inputIndex) |
std::string | getCommandOutputName (const std::string &targetFE, const std::string &command, int outputIndex) |
Note: if std::map does not complicate interface too much for ROOT/pyton, could make this const std::string& and leverage cache solution. | |
std::string | runCommand (const std::string &targetFE, const std::string &command, const std::string &inputs) |
Static Public Member Functions | |
static std::string | decodeURIComponent (const std::string &data) |
static std::string | encodeURIComponent (const std::string &data) |
static std::string | decodeHTMLEntities (const std::string &data) |
Definition at line 81 of file ots_mm_udp_interface.h.
ots_mm_udp_interface::ots_mm_udp_interface | ( | const char * | mm_ip, |
int | mm_port | ||
) |
, mm_p_(nullptr) , mm_servinfo_(nullptr)
Definition at line 167 of file ots_mm_udp_interface.cpp.
|
static |
decodeURIComponent converts all %## to the ascii character
Definition at line 403 of file ots_mm_udp_interface.cpp.
std::string ots_mm_udp_interface::runCommand | ( | const std::string & | targetFE, |
const std::string & | command, | ||
const std::string & | inputs | ||
) |
inputs should be ;-separated and URI encoded (to avoid commas and semicolons) outputs will be ;-separated and URI encoded
Definition at line 975 of file ots_mm_udp_interface.cpp.