UHD
003.000.c6c4b01e0
|
Typedefs | |
typedef boost::function< void(std::string)> | handler_t |
Callback function type for a message handler. More... | |
Functions | |
UHD_API void | post (const std::string &msg) |
UHD_API void | register_handler (const std::string &name, const handler_t &handler) |
UHD_API handler_t | unregister_handler (const std::string &name) |
UHD_API const std::vector< std::string > | registry_names (void) |
typedef boost::function<void(std::string)> uhd::warning::handler_t |
Callback function type for a message handler.
UHD_API void uhd::warning::post | ( | const std::string & | msg | ) |
Post a warning message to all registered handlers.
msg | the multiline warning message |
Register a new handler with this name. If the name was already registered for this name, the old registered handler will be replaced.
name | a unique name for this handler |
handler | the callback handler function |
UHD_API const std::vector<std::string> uhd::warning::registry_names | ( | void | ) |
Get a list of registered handler names.