33#include <NDEVR/ResourceListener.h>
52 lib_assert(
m_callback !=
nullptr,
"Cannot have null resource listener callback");
BasicResourceListener(const std::function< void()> &callback)
Constructs a BasicResourceListener with the given callback function.
const std::function< void()> m_callback
The callback function invoked when the Resource value changes.
virtual ~BasicResourceListener()
Destructor.
void onValueChanged() override final
Called when the listened Resource value changes.
ResourceListener()
Constructs a default ResourceListener.
The primary namespace for the NDEVR SDK.