18 #ifndef INCLUDED_UHD_UTILS_MSG_HPP 19 #define INCLUDED_UHD_UTILS_MSG_HPP 30 #define UHD_MSG(type) \ 31 uhd::msg::_msg(uhd::msg::type)() 35 UHD_MSG(status) << __FILE__ << ":" << __LINE__ << std::endl 38 #define UHD_VAR(var) \ 39 UHD_MSG(status) << #var << " = " << var << std::endl; 41 namespace uhd{
namespace msg{
65 _msg(
const type_t type);
67 std::ostream &operator()(
void);
void(* handler_t)(type_t, const std::string &)
Typedef for a user-registered message handler.
Definition: msg.hpp:52
UHD_API void register_handler(const handler_t &handler)
type_t
Possible message types.
Definition: msg.hpp:44
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
#define UHD_PIMPL_DECL(_name)
Definition: pimpl.hpp:42
Internal message object (called by UHD_MSG macro)
Definition: msg.hpp:63