UHD
003.001.000
|
Typedefs | |
typedef boost::function< void(std::string)> | handler_t |
Callback function type for a message handler. More... | |
Functions | |
UHD_API UHD_DEPRECATED void | post (const std::string &msg) |
UHD_API UHD_DEPRECATED void | register_handler (const std::string &name, const handler_t &handler) |
UHD_API UHD_DEPRECATED handler_t | unregister_handler (const std::string &name) |
UHD_API UHD_DEPRECATED 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 UHD_DEPRECATED void uhd::warning::post | ( | const std::string & | msg | ) |
Post a warning message to all registered handlers.
msg | the multiline warning message |
UHD_API UHD_DEPRECATED void uhd::warning::register_handler | ( | const std::string & | name, |
const handler_t & | handler | ||
) |
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 UHD_DEPRECATED const std::vector<std::string> uhd::warning::registry_names | ( | void | ) |
Get a list of registered handler names.
UHD_API UHD_DEPRECATED handler_t uhd::warning::unregister_handler | ( | const std::string & | name | ) |
Unregister a handler for this name.
name | a unique name for a registered handler |
error | when the name was not found in the registry |